From aabb7f01d220ee805e9cafbfc3beb050eaabf32a Mon Sep 17 00:00:00 2001 From: tibonihoo <{actor}@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:54:05 +0000 Subject: [PATCH] [230726] Automatic update of SDK. --- sdks/marketingsolutions_2022-07/README.md | 6 +- .../__init__.py | 4 +- .../api/advertiser_api.py | 2 +- .../api/analytics_api.py | 2 +- .../api/audience_api.py | 2 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- .../model/ad_set_category_bid.py | 2 +- .../ad_set_category_bid_list_response.py | 2 +- .../model/ad_set_category_bid_resource.py | 2 +- .../model/ad_set_delivery_limitations.py | 2 +- .../model/ad_set_display_multiplier.py | 2 +- ...ad_set_display_multiplier_list_response.py | 2 +- .../ad_set_display_multiplier_resource.py | 2 +- .../model/ad_set_frequency_capping.py | 2 +- .../model/ad_set_geo_location.py | 2 +- .../model/ad_set_search_filter.py | 2 +- .../model/ad_set_targeting.py | 2 +- .../model/ad_set_targeting_rule.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/audience.py | 2 +- .../model/audience_attributes.py | 2 +- .../model/audience_error.py | 2 +- .../model/audience_name_description.py | 2 +- .../model/audience_warning.py | 2 +- .../model/basic_audience_definition.py | 2 +- .../model/campaign.py | 2 +- .../model/campaign_list_response.py | 2 +- .../model/campaign_read_resource.py | 2 +- .../model/campaign_response.py | 2 +- .../model/campaign_search_filters.py | 2 +- .../model/campaign_search_request.py | 2 +- .../model/campaign_spend_limit.py | 2 +- .../model/common_problem.py | 2 +- .../model/contactlist_amendment.py | 2 +- .../model/contactlist_amendment_attributes.py | 7 +- .../model/contactlist_amendment_request.py | 2 +- .../model/contactlist_operation.py | 2 +- .../model/contactlist_operation_attributes.py | 8 +- .../model/criteo_api_error.py | 2 +- .../model/criteo_api_warning.py | 2 +- .../delete_audience_contact_list_response.py | 2 +- .../model/delete_audience_response.py | 2 +- .../model/entity_of_portfolio_message.py | 2 +- .../model/error_code_response.py | 2 +- .../model/get_audiences_response.py | 2 +- .../model/get_portfolio_response.py | 2 +- .../model/modify_audience_response.py | 2 +- .../model/new_audience.py | 2 +- .../model/new_audience_attributes.py | 2 +- .../model/new_audience_request.py | 2 +- .../model/new_audience_response.py | 2 +- .../model/nillable_ad_set_targeting_rule.py | 16 +- .../nillable_ad_set_targeting_rule_value.py | 2 +- .../model/nillable_date_time.py | 2 +- .../model/nillable_decimal.py | 2 +- .../model/patch_ad_set.py | 2 +- .../model/patch_ad_set_bidding.py | 2 +- .../model/patch_ad_set_budget.py | 2 +- .../model/patch_ad_set_category_bid.py | 2 +- .../patch_ad_set_category_bid_list_request.py | 2 +- .../patch_ad_set_category_bid_resource.py | 2 +- ...d_set_category_bid_result_list_response.py | 2 +- ...tch_ad_set_category_bid_result_resource.py | 2 +- .../model/patch_ad_set_display_multiplier.py | 2 +- ..._ad_set_display_multiplier_list_request.py | 2 +- ...atch_ad_set_display_multiplier_resource.py | 2 +- ...display_multiplier_result_list_response.py | 2 +- ..._set_display_multiplier_result_resource.py | 2 +- .../model/patch_ad_set_scheduling.py | 2 +- .../model/patch_campaign.py | 2 +- .../model/patch_campaign_list_request.py | 2 +- .../model/patch_campaign_spend_limit.py | 2 +- .../model/patch_campaign_write_resource.py | 2 +- .../patch_result_campaign_list_response.py | 2 +- .../patch_result_campaign_read_resource.py | 2 +- .../placements_report_query_data_message.py | 2 +- .../placements_report_query_entity_message.py | 2 +- .../model/placements_report_query_message.py | 2 +- .../model/portfolio_message.py | 2 +- .../model/problem_details.py | 2 +- .../model/problems_details.py | 2 +- .../model/read_ad_set.py | 2 +- .../model/read_ad_set_bidding.py | 2 +- .../model/read_ad_set_budget.py | 2 +- .../model/read_ad_set_schedule.py | 2 +- .../model/read_model_ad_set_id.py | 2 +- .../model/read_model_read_ad_set.py | 2 +- .../model/replace_audience.py | 2 +- .../model/replace_audience_request.py | 2 +- .../model/replace_audience_response.py | 2 +- .../model/request_ad_set_search.py | 2 +- .../model/requests_ad_set_id.py | 2 +- .../model/requests_patch_ad_set.py | 2 +- .../model/response_ad_set_id.py | 2 +- .../model/response_read_ad_set.py | 2 +- .../model/responses_ad_set_id.py | 2 +- .../model/responses_read_ad_set.py | 2 +- .../model/statistics_report_query_message.py | 2 +- .../transactions_report_query_data_message.py | 2 +- ...ransactions_report_query_entity_message.py | 2 +- .../transactions_report_query_message.py | 2 +- .../model/transparency_query_message.py | 2 +- .../model/transparency_report_attributes.py | 2 +- .../model/transparency_report_data_message.py | 2 +- .../transparency_report_entity_message.py | 2 +- .../model/transparency_report_file.py | 2 +- .../model/write_model_ad_set_id.py | 2 +- .../model/write_model_patch_ad_set.py | 2 +- .../model_utils.py | 2 +- .../rest.py | 2 +- .../docs/AudienceApi.md | 1 - .../docs/ContactlistAmendmentAttributes.md | 1 - .../docs/ContactlistOperationAttributes.md | 2 +- .../docs/NillableAdSetTargetingRule.md | 2 +- sdks/marketingsolutions_2022-07/setup.py | 6 +- sdks/marketingsolutions_2022-10/README.md | 6 +- .../__init__.py | 4 +- .../api/advertiser_api.py | 2 +- .../api/analytics_api.py | 2 +- .../api/audience_api.py | 2 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- .../model/ad_set_category_bid.py | 2 +- .../ad_set_category_bid_list_response.py | 2 +- .../model/ad_set_category_bid_resource.py | 2 +- .../model/ad_set_delivery_limitations.py | 2 +- .../model/ad_set_display_multiplier.py | 2 +- ...ad_set_display_multiplier_list_response.py | 2 +- .../ad_set_display_multiplier_resource.py | 2 +- .../model/ad_set_frequency_capping.py | 2 +- .../model/ad_set_geo_location.py | 2 +- .../model/ad_set_search_filter.py | 2 +- .../model/ad_set_targeting.py | 2 +- .../model/ad_set_targeting_rule.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/audience.py | 2 +- .../model/audience_attributes.py | 2 +- .../model/audience_error.py | 2 +- .../model/audience_name_description.py | 2 +- .../model/audience_warning.py | 2 +- .../model/basic_audience_definition.py | 2 +- .../model/campaign.py | 2 +- .../model/campaign_list_response.py | 2 +- .../model/campaign_read_resource.py | 2 +- .../model/campaign_response.py | 2 +- .../model/campaign_search_filters.py | 2 +- .../model/campaign_search_request.py | 2 +- .../model/campaign_spend_limit.py | 2 +- .../model/common_problem.py | 2 +- .../model/contactlist_amendment.py | 2 +- .../model/contactlist_amendment_attributes.py | 7 +- .../model/contactlist_amendment_request.py | 2 +- .../model/contactlist_operation.py | 2 +- .../model/contactlist_operation_attributes.py | 8 +- .../model/criteo_api_error.py | 2 +- .../model/criteo_api_warning.py | 2 +- .../delete_audience_contact_list_response.py | 2 +- .../model/delete_audience_response.py | 2 +- .../model/entity_of_portfolio_message.py | 2 +- .../model/error_code_response.py | 2 +- .../model/get_audiences_response.py | 2 +- .../model/get_portfolio_response.py | 2 +- .../model/modify_audience_response.py | 2 +- .../model/new_audience.py | 2 +- .../model/new_audience_attributes.py | 2 +- .../model/new_audience_request.py | 2 +- .../model/new_audience_response.py | 2 +- .../model/nillable_ad_set_targeting_rule.py | 16 +- .../nillable_ad_set_targeting_rule_value.py | 2 +- .../model/nillable_date_time.py | 2 +- .../model/nillable_decimal.py | 2 +- .../model/patch_ad_set.py | 2 +- .../model/patch_ad_set_bidding.py | 2 +- .../model/patch_ad_set_budget.py | 2 +- .../model/patch_ad_set_category_bid.py | 2 +- .../patch_ad_set_category_bid_list_request.py | 2 +- .../patch_ad_set_category_bid_resource.py | 2 +- ...d_set_category_bid_result_list_response.py | 2 +- ...tch_ad_set_category_bid_result_resource.py | 2 +- .../model/patch_ad_set_display_multiplier.py | 2 +- ..._ad_set_display_multiplier_list_request.py | 2 +- ...atch_ad_set_display_multiplier_resource.py | 2 +- ...display_multiplier_result_list_response.py | 2 +- ..._set_display_multiplier_result_resource.py | 2 +- .../model/patch_ad_set_scheduling.py | 2 +- .../model/patch_campaign.py | 2 +- .../model/patch_campaign_list_request.py | 2 +- .../model/patch_campaign_spend_limit.py | 2 +- .../model/patch_campaign_write_resource.py | 2 +- .../patch_result_campaign_list_response.py | 2 +- .../patch_result_campaign_read_resource.py | 2 +- .../placements_report_query_data_message.py | 2 +- .../placements_report_query_entity_message.py | 2 +- .../model/placements_report_query_message.py | 2 +- .../model/portfolio_message.py | 2 +- .../model/problem_details.py | 2 +- .../model/problems_details.py | 2 +- .../model/read_ad_set.py | 2 +- .../model/read_ad_set_bidding.py | 2 +- .../model/read_ad_set_budget.py | 2 +- .../model/read_ad_set_schedule.py | 2 +- .../model/read_model_ad_set_id.py | 2 +- .../model/read_model_read_ad_set.py | 2 +- .../model/replace_audience.py | 2 +- .../model/replace_audience_request.py | 2 +- .../model/replace_audience_response.py | 2 +- .../model/request_ad_set_search.py | 2 +- .../model/requests_ad_set_id.py | 2 +- .../model/requests_patch_ad_set.py | 2 +- .../model/response_ad_set_id.py | 2 +- .../model/response_read_ad_set.py | 2 +- .../model/responses_ad_set_id.py | 2 +- .../model/responses_read_ad_set.py | 2 +- .../model/statistics_report_query_message.py | 2 +- .../transactions_report_query_data_message.py | 2 +- ...ransactions_report_query_entity_message.py | 2 +- .../transactions_report_query_message.py | 2 +- .../model/transparency_query_message.py | 2 +- .../model/transparency_report_attributes.py | 2 +- .../model/transparency_report_data_message.py | 2 +- .../transparency_report_entity_message.py | 2 +- .../model/transparency_report_file.py | 2 +- .../model/write_model_ad_set_id.py | 2 +- .../model/write_model_patch_ad_set.py | 2 +- .../model_utils.py | 2 +- .../rest.py | 2 +- .../docs/AudienceApi.md | 1 - .../docs/ContactlistAmendmentAttributes.md | 1 - .../docs/ContactlistOperationAttributes.md | 2 +- .../docs/NillableAdSetTargetingRule.md | 2 +- sdks/marketingsolutions_2022-10/setup.py | 6 +- sdks/marketingsolutions_2023-01/README.md | 6 +- .../__init__.py | 4 +- .../api/advertiser_api.py | 2 +- .../api/analytics_api.py | 2 +- .../api/audience_api.py | 2 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- .../model/ad_set_category_bid.py | 2 +- .../ad_set_category_bid_list_response.py | 2 +- .../model/ad_set_category_bid_resource.py | 2 +- .../model/ad_set_delivery_limitations.py | 2 +- .../model/ad_set_display_multiplier.py | 2 +- ...ad_set_display_multiplier_list_response.py | 2 +- .../ad_set_display_multiplier_resource.py | 2 +- .../model/ad_set_frequency_capping.py | 2 +- .../model/ad_set_geo_location.py | 2 +- .../model/ad_set_search_filter.py | 2 +- .../model/ad_set_targeting.py | 2 +- .../model/ad_set_targeting_rule.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/audience.py | 2 +- .../model/audience_attributes.py | 2 +- .../model/audience_error.py | 2 +- .../model/audience_name_description.py | 2 +- .../model/audience_warning.py | 2 +- .../model/basic_audience_definition.py | 2 +- .../model/campaign.py | 2 +- .../model/campaign_list_response.py | 2 +- .../model/campaign_read_resource.py | 2 +- .../model/campaign_response.py | 2 +- .../model/campaign_search_filters.py | 2 +- .../model/campaign_search_request.py | 2 +- .../model/campaign_spend_limit.py | 2 +- .../model/common_problem.py | 2 +- .../model/contactlist_amendment.py | 2 +- .../model/contactlist_amendment_attributes.py | 7 +- .../model/contactlist_amendment_request.py | 2 +- .../model/contactlist_operation.py | 2 +- .../model/contactlist_operation_attributes.py | 8 +- .../model/criteo_api_error.py | 2 +- .../model/criteo_api_warning.py | 2 +- .../delete_audience_contact_list_response.py | 2 +- .../model/delete_audience_response.py | 2 +- .../model/entity_of_portfolio_message.py | 2 +- .../model/error_code_response.py | 2 +- .../model/get_audiences_response.py | 2 +- .../model/get_portfolio_response.py | 2 +- .../model/modify_audience_response.py | 2 +- .../model/new_audience.py | 2 +- .../model/new_audience_attributes.py | 2 +- .../model/new_audience_request.py | 2 +- .../model/new_audience_response.py | 2 +- .../model/nillable_ad_set_targeting_rule.py | 16 +- .../nillable_ad_set_targeting_rule_value.py | 2 +- .../model/nillable_date_time.py | 2 +- .../model/nillable_decimal.py | 2 +- .../model/patch_ad_set.py | 2 +- .../model/patch_ad_set_bidding.py | 2 +- .../model/patch_ad_set_budget.py | 2 +- .../model/patch_ad_set_category_bid.py | 2 +- .../patch_ad_set_category_bid_list_request.py | 2 +- .../patch_ad_set_category_bid_resource.py | 2 +- ...d_set_category_bid_result_list_response.py | 2 +- ...tch_ad_set_category_bid_result_resource.py | 2 +- .../model/patch_ad_set_display_multiplier.py | 2 +- ..._ad_set_display_multiplier_list_request.py | 2 +- ...atch_ad_set_display_multiplier_resource.py | 2 +- ...display_multiplier_result_list_response.py | 2 +- ..._set_display_multiplier_result_resource.py | 2 +- .../model/patch_ad_set_scheduling.py | 2 +- .../model/patch_campaign.py | 2 +- .../model/patch_campaign_list_request.py | 2 +- .../model/patch_campaign_spend_limit.py | 2 +- .../model/patch_campaign_write_resource.py | 2 +- .../patch_result_campaign_list_response.py | 2 +- .../patch_result_campaign_read_resource.py | 2 +- .../placements_report_query_data_message.py | 2 +- .../placements_report_query_entity_message.py | 2 +- .../model/placements_report_query_message.py | 2 +- .../model/portfolio_message.py | 2 +- .../model/problem_details.py | 2 +- .../model/problems_details.py | 2 +- .../model/read_ad_set.py | 2 +- .../model/read_ad_set_bidding.py | 2 +- .../model/read_ad_set_budget.py | 2 +- .../model/read_ad_set_schedule.py | 2 +- .../model/read_model_ad_set_id.py | 2 +- .../model/read_model_read_ad_set.py | 2 +- .../model/replace_audience.py | 2 +- .../model/replace_audience_request.py | 2 +- .../model/replace_audience_response.py | 2 +- .../model/request_ad_set_search.py | 2 +- .../model/requests_ad_set_id.py | 2 +- .../model/requests_patch_ad_set.py | 2 +- .../model/response_ad_set_id.py | 2 +- .../model/response_read_ad_set.py | 2 +- .../model/responses_ad_set_id.py | 2 +- .../model/responses_read_ad_set.py | 2 +- .../model/statistics_report_query_message.py | 2 +- .../transactions_report_query_data_message.py | 2 +- ...ransactions_report_query_entity_message.py | 2 +- .../transactions_report_query_message.py | 2 +- .../model/transparency_query_message.py | 2 +- .../model/transparency_report_attributes.py | 2 +- .../model/transparency_report_data_message.py | 2 +- .../transparency_report_entity_message.py | 2 +- .../model/transparency_report_file.py | 2 +- .../model/write_model_ad_set_id.py | 2 +- .../model/write_model_patch_ad_set.py | 2 +- .../model_utils.py | 2 +- .../rest.py | 2 +- .../docs/AudienceApi.md | 1 - .../docs/ContactlistAmendmentAttributes.md | 1 - .../docs/ContactlistOperationAttributes.md | 2 +- .../docs/NillableAdSetTargetingRule.md | 2 +- sdks/marketingsolutions_2023-01/setup.py | 6 +- sdks/marketingsolutions_2023-04/README.md | 6 +- .../__init__.py | 4 +- .../api/advertiser_api.py | 2 +- .../api/analytics_api.py | 2 +- .../api/audience_api.py | 2 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- .../model/ad_set_category_bid.py | 2 +- .../ad_set_category_bid_list_response.py | 2 +- .../model/ad_set_category_bid_resource.py | 2 +- .../model/ad_set_delivery_limitations.py | 2 +- .../model/ad_set_display_multiplier.py | 2 +- ...ad_set_display_multiplier_list_response.py | 2 +- .../ad_set_display_multiplier_resource.py | 2 +- .../model/ad_set_frequency_capping.py | 2 +- .../model/ad_set_geo_location.py | 2 +- .../model/ad_set_search_filter.py | 2 +- .../model/ad_set_targeting.py | 2 +- .../model/ad_set_targeting_rule.py | 4 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/audience.py | 2 +- .../model/audience_attributes.py | 2 +- .../model/audience_error.py | 2 +- .../model/audience_name_description.py | 2 +- .../model/audience_warning.py | 2 +- .../model/basic_audience_definition.py | 2 +- .../model/campaign.py | 2 +- .../model/campaign_list_response.py | 2 +- .../model/campaign_read_resource.py | 2 +- .../model/campaign_response.py | 2 +- .../model/campaign_search_filters.py | 2 +- .../model/campaign_search_request.py | 2 +- .../model/campaign_spend_limit.py | 2 +- .../model/common_problem.py | 2 +- .../model/contactlist_amendment.py | 2 +- .../model/contactlist_amendment_attributes.py | 7 +- .../model/contactlist_amendment_request.py | 2 +- .../model/contactlist_operation.py | 2 +- .../model/contactlist_operation_attributes.py | 8 +- .../model/criteo_api_error.py | 2 +- .../model/criteo_api_warning.py | 2 +- .../delete_audience_contact_list_response.py | 2 +- .../model/delete_audience_response.py | 2 +- .../model/entity_of_portfolio_message.py | 2 +- .../model/error_code_response.py | 2 +- .../model/get_audiences_response.py | 2 +- .../model/get_portfolio_response.py | 2 +- .../model/modify_audience_response.py | 2 +- .../model/new_audience.py | 2 +- .../model/new_audience_attributes.py | 2 +- .../model/new_audience_request.py | 2 +- .../model/new_audience_response.py | 2 +- .../model/nillable_ad_set_targeting_rule.py | 16 +- .../nillable_ad_set_targeting_rule_value.py | 2 +- .../model/nillable_date_time.py | 2 +- .../model/nillable_decimal.py | 2 +- .../model/patch_ad_set.py | 2 +- .../model/patch_ad_set_bidding.py | 2 +- .../model/patch_ad_set_budget.py | 2 +- .../model/patch_ad_set_category_bid.py | 2 +- .../patch_ad_set_category_bid_list_request.py | 2 +- .../patch_ad_set_category_bid_resource.py | 2 +- ...d_set_category_bid_result_list_response.py | 2 +- ...tch_ad_set_category_bid_result_resource.py | 2 +- .../model/patch_ad_set_display_multiplier.py | 2 +- ..._ad_set_display_multiplier_list_request.py | 2 +- ...atch_ad_set_display_multiplier_resource.py | 2 +- ...display_multiplier_result_list_response.py | 2 +- ..._set_display_multiplier_result_resource.py | 2 +- .../model/patch_ad_set_scheduling.py | 2 +- .../model/patch_campaign.py | 2 +- .../model/patch_campaign_list_request.py | 2 +- .../model/patch_campaign_spend_limit.py | 2 +- .../model/patch_campaign_write_resource.py | 2 +- .../patch_result_campaign_list_response.py | 2 +- .../patch_result_campaign_read_resource.py | 2 +- .../placements_report_query_data_message.py | 2 +- .../placements_report_query_entity_message.py | 2 +- .../model/placements_report_query_message.py | 2 +- .../model/portfolio_message.py | 2 +- .../model/problem_details.py | 2 +- .../model/problems_details.py | 2 +- .../model/read_ad_set.py | 2 +- .../model/read_ad_set_bidding.py | 2 +- .../model/read_ad_set_budget.py | 2 +- .../model/read_ad_set_schedule.py | 2 +- .../model/read_model_ad_set_id.py | 2 +- .../model/read_model_read_ad_set.py | 2 +- .../model/replace_audience.py | 2 +- .../model/replace_audience_request.py | 2 +- .../model/replace_audience_response.py | 2 +- .../model/request_ad_set_search.py | 2 +- .../model/requests_ad_set_id.py | 2 +- .../model/requests_patch_ad_set.py | 2 +- .../model/response_ad_set_id.py | 2 +- .../model/response_read_ad_set.py | 2 +- .../model/responses_ad_set_id.py | 2 +- .../model/responses_read_ad_set.py | 2 +- .../model/statistics_report_query_message.py | 2 +- .../transactions_report_query_data_message.py | 2 +- ...ransactions_report_query_entity_message.py | 2 +- .../transactions_report_query_message.py | 2 +- .../model/transparency_query_message.py | 2 +- .../model/transparency_report_attributes.py | 2 +- .../model/transparency_report_data_message.py | 2 +- .../transparency_report_entity_message.py | 2 +- .../model/transparency_report_file.py | 2 +- .../model/write_model_ad_set_id.py | 2 +- .../model/write_model_patch_ad_set.py | 2 +- .../model_utils.py | 2 +- .../rest.py | 2 +- .../docs/AudienceApi.md | 1 - .../docs/ContactlistAmendmentAttributes.md | 1 - .../docs/ContactlistOperationAttributes.md | 2 +- .../docs/NillableAdSetTargetingRule.md | 2 +- sdks/marketingsolutions_2023-04/setup.py | 6 +- sdks/marketingsolutions_2023-07/.gitignore | 66 + .../marketingsolutions_2023-07/.gitlab-ci.yml | 24 + .../.openapi-generator/FILES | 560 ++ .../.openapi-generator/VERSION | 1 + sdks/marketingsolutions_2023-07/README.md | 326 + .../__init__.py | 31 + .../api/__init__.py | 3 + .../api/advertiser_api.py | 163 + .../api/analytics_api.py | 601 ++ .../api/audience_api.py | 3058 ++++++ .../api/campaign_api.py | 2145 ++++ .../api/creative_api.py | 2541 +++++ .../api/gateway_api.py | 161 + .../api_client.py | 898 ++ .../api_client_builder.py | 37 + .../apis/__init__.py | 22 + .../configuration.py | 461 + .../criteo_api_client.py | 11 + .../criteo_auth.py | 121 + .../criteo_rest.py | 75 + .../exceptions.py | 158 + .../flow_constants.py | 5 + .../model/__init__.py | 5 + .../model/ad.py | 292 + .../model/ad_list_response.py | 287 + .../model/ad_resource.py | 277 + .../model/ad_response.py | 285 + .../model/ad_set_audience_link_entity_v1.py | 263 + ...ad_set_audience_link_entity_v1_resource.py | 277 + ...ad_set_audience_link_entity_v1_response.py | 281 + .../ad_set_audience_link_input_entity_v1.py | 269 + .../model/ad_set_category_bid.py | 267 + .../ad_set_category_bid_list_response.py | 287 + .../model/ad_set_category_bid_resource.py | 277 + .../model/ad_set_delivery_limitations.py | 292 + .../model/ad_set_display_multiplier.py | 267 + ...ad_set_display_multiplier_list_response.py | 287 + .../ad_set_display_multiplier_resource.py | 277 + .../model/ad_set_frequency_capping.py | 273 + .../model/ad_set_geo_location.py | 277 + .../model/ad_set_search_filter.py | 277 + .../model/ad_set_targeting.py | 281 + .../model/ad_set_targeting_rule.py | 274 + .../model/ad_write.py | 303 + .../model/ad_write_request.py | 269 + .../model/ad_write_resource.py | 277 + .../model/adaptive_attributes.py | 360 + .../model/adaptive_colors.py | 299 + .../model/adaptive_write_attributes.py | 356 + .../model/algebra_node_v1.py | 275 + .../model/application_summary_model.py | 279 + .../application_summary_model_resource.py | 273 + .../application_summary_model_response.py | 285 + .../model/audience.py} | 50 +- .../model/audience_attributes.py | 303 + .../model/audience_bulk_create_input_v1.py | 269 + .../model/audience_bulk_delete_input_v1.py | 269 + .../model/audience_bulk_update_input_v1.py | 269 + ...udience_compute_size_entity_v1_resource.py | 271 + .../model/audience_compute_sizes_input_v1.py | 269 + .../model/audience_create_entity_v1.py | 291 + .../audience_create_entity_v1_resource.py | 273 + .../audience_delete_entity_v1_resource.py | 271 + .../model/audience_entity_v1.py | 295 + ...dience_search_metadata_v1_list_response.py | 287 + .../model/audience_entity_v1_list_response.py | 281 + .../model/audience_entity_v1_resource.py | 277 + .../model/audience_error.py | 310 + .../model/audience_estimate_size_entity_v1.py | 281 + ...dience_estimate_size_entity_v1_resource.py | 273 + .../model/audience_estimate_size_input_v1.py | 269 + .../audience_id_entity_v1_list_response.py | 281 + .../model/audience_id_entity_v1_resource.py | 271 + .../model/audience_name_description.py | 267 + .../model/audience_search_entity_v1.py | 275 + .../audience_search_entity_v1_resource.py | 273 + .../model/audience_search_input_v1.py | 269 + .../model/audience_search_metadata_v1.py | 271 + .../audience_segment_bulk_create_input_v1.py | 269 + .../audience_segment_bulk_delete_input_v1.py | 269 + .../audience_segment_bulk_update_input_v1.py | 269 + ...segment_compute_size_entity_v1_resource.py | 271 + ...audience_segment_compute_sizes_input_v1.py | 269 + .../audience_segment_create_entity_v1.py | 317 + ...ience_segment_create_entity_v1_resource.py | 273 + ...ience_segment_delete_entity_v1_resource.py | 271 + .../model/audience_segment_entity_v1.py | 339 + ...egment_search_metadata_v1_list_response.py | 287 + ...udience_segment_entity_v1_list_response.py | 281 + .../audience_segment_entity_v1_resource.py | 277 + ...audience_segment_estimate_size_input_v1.py | 269 + ...ence_segment_id_entity_v1_list_response.py | 281 + .../audience_segment_id_entity_v1_resource.py | 271 + .../audience_segment_search_entity_v1.py | 281 + ...ience_segment_search_entity_v1_resource.py | 273 + .../model/audience_segment_search_input_v1.py | 269 + .../audience_segment_search_metadata_v1.py | 271 + .../model/audience_segment_size_entity_v1.py | 263 + ...ce_segment_size_entity_v1_list_response.py | 281 + ...udience_segment_size_entity_v1_resource.py | 277 + ...ience_segment_size_estimation_entity_v1.py | 285 + ...ment_size_estimation_entity_v1_resource.py | 273 + .../audience_segment_size_estimation_v1.py | 263 + ...nce_segment_size_estimation_v1_resource.py | 273 + ...nce_segment_size_estimation_v1_response.py | 281 + .../audience_segment_update_entity_v1.py | 303 + ...ience_segment_update_entity_v1_resource.py | 277 + .../model/audience_size_entity_v1.py} | 20 +- .../audience_size_entity_v1_list_response.py | 281 + .../model/audience_size_entity_v1_resource.py | 277 + .../model/audience_size_estimation_v1.py | 263 + .../audience_size_estimation_v1_resource.py | 273 + .../audience_size_estimation_v1_response.py | 281 + .../model/audience_update_entity_v1.py | 279 + .../audience_update_entity_v1_resource.py | 277 + .../model/audience_warning.py | 312 + .../model/basic_audience_definition.py | 285 + .../model/behavioral_v1.py | 288 + .../model/campaign.py | 290 + .../model/campaign_list_response.py | 288 + .../model/campaign_read_resource.py | 279 + .../model/campaign_response.py | 285 + .../model/campaign_search_filters.py | 271 + .../model/campaign_search_request.py | 269 + .../model/campaign_spend_limit.py | 287 + .../model/campaign_spend_limit_v23_q1.py | 287 + .../model/campaign_v23_q1.py | 286 + .../model/campaign_v23_q1_resource.py | 277 + .../model/campaign_v23_q1_response.py | 285 + .../model/common_problem.py | 305 + .../contact_list_statistics_entity_v1.py | 271 + ...tact_list_statistics_entity_v1_resource.py | 277 + ...tact_list_statistics_entity_v1_response.py | 281 + .../model/contact_list_v1.py | 263 + .../model/contactlist_amendment.py | 281 + .../model/contactlist_amendment_attributes.py | 294 + .../model/contactlist_amendment_request.py} | 24 +- .../model/contactlist_operation.py | 281 + .../model/contactlist_operation_attributes.py | 293 + .../model/coupon.py | 323 + .../model/coupon_list_response.py | 287 + .../model/coupon_resource.py | 277 + .../model/coupon_response.py | 285 + .../model/coupon_supported_sizes.py | 271 + .../model/coupon_supported_sizes_resource.py | 277 + .../model/coupon_supported_sizes_response.py | 285 + .../model/create_ad_set.py | 352 + .../model/create_ad_set_bidding.py | 283 + .../model/create_ad_set_budget.py | 309 + .../model/create_ad_set_geo_location.py | 277 + .../model/create_ad_set_request.py | 269 + .../model/create_ad_set_resource.py | 273 + .../model/create_ad_set_schedule.py | 273 + .../model/create_ad_set_targeting.py | 287 + .../model/create_campaign.py | 298 + .../model/create_campaign_request.py | 269 + .../model/create_campaign_resource.py | 273 + .../model/create_campaign_spend_limit.py | 287 + .../model/create_coupon.py | 349 + .../model/create_coupon_request.py | 269 + .../model/create_coupon_resource.py | 277 + .../model/create_image_slide.py | 273 + .../model/creative.py | 327 + .../model/creative_list_response.py | 287 + .../model/creative_resource.py | 277 + .../model/creative_response.py | 285 + .../model/creative_write.py | 319 + .../model/creative_write_request.py | 269 + .../model/creative_write_resource.py | 277 + .../model/criteo_api_error.py} | 17 +- .../model/criteo_api_warning.py | 302 + .../delete_audience_contact_list_response.py | 291 + .../model/delete_audience_response.py | 291 + .../model/dynamic_attributes.py | 301 + .../model/dynamic_write_attributes.py | 308 + .../model/entity_of_portfolio_message.py | 293 + .../model/error_code_response.py | 281 + .../model/get_audiences_response.py | 291 + .../model/get_portfolio_response.py | 287 + .../model/html_tag_attributes.py | 271 + .../model/html_tag_write_attributes.py | 277 + .../model/image_attributes.py | 269 + .../model/image_set.py | 281 + .../model/image_set_base64.py | 276 + .../model/image_shape.py | 280 + .../model/image_slide.py | 273 + .../model/image_write_attributes.py | 278 + ...market_audience_segment_brand_entity_v1.py | 267 + ...e_segment_brand_entity_v1_list_response.py | 281 + ...dience_segment_brand_entity_v1_resource.py | 277 + ...ket_audience_segment_interest_entity_v1.py | 263 + ...egment_interest_entity_v1_list_response.py | 281 + ...nce_segment_interest_entity_v1_resource.py | 277 + .../model/in_market_create_v1.py | 312 + .../model/in_market_size_estimation_v1.py | 312 + .../model/in_market_update_v1.py | 308 + .../model/in_market_v1.py | 309 + .../model/location_create_v1.py | 281 + .../model/location_size_estimation_v1.py | 281 + .../model/location_update_v1.py | 280 + .../model/location_v1.py | 281 + .../model/lookalike_create_v1.py | 273 + .../model/lookalike_update_v1.py | 263 + .../model/lookalike_v1.py | 267 + .../model/modify_audience_response.py | 291 + .../model/new_audience.py | 281 + .../model/new_audience_attributes.py | 277 + .../model/new_audience_request.py | 269 + .../model/new_audience_response.py | 291 + .../model/nillable_ad_set_targeting_rule.py | 275 + .../nillable_ad_set_targeting_rule_value.py | 330 + .../model/nillable_date_time.py | 269 + .../model/nillable_decimal.py | 269 + .../model/nillable_gender_v1.py | 267 + .../model/nillable_int32.py | 263 + .../model/nillable_string.py | 263 + .../model/patch_ad_set.py | 291 + .../model/patch_ad_set_bidding.py | 269 + .../model/patch_ad_set_budget.py | 309 + .../model/patch_ad_set_category_bid.py | 263 + .../patch_ad_set_category_bid_list_request.py | 271 + .../patch_ad_set_category_bid_resource.py | 277 + ...d_set_category_bid_result_list_response.py | 287 + ...tch_ad_set_category_bid_result_resource.py | 267 + .../model/patch_ad_set_display_multiplier.py | 263 + ..._ad_set_display_multiplier_list_request.py | 271 + ...atch_ad_set_display_multiplier_resource.py | 277 + ...display_multiplier_result_list_response.py | 287 + ..._set_display_multiplier_result_resource.py | 267 + .../model/patch_ad_set_scheduling.py | 273 + .../model/patch_campaign.py | 269 + .../model/patch_campaign_list_request.py | 271 + .../model/patch_campaign_spend_limit.py | 287 + .../model/patch_campaign_write_resource.py | 277 + .../patch_result_campaign_list_response.py | 288 + .../patch_result_campaign_read_resource.py | 269 + .../placements_report_query_data_message.py | 277 + .../placements_report_query_entity_message.py | 281 + .../model/placements_report_query_message.py | 343 + .../model/point_of_interest_v1.py | 271 + .../model/portfolio_message.py | 263 + .../model/problem_details.py | 305 + .../model/problems_details.py | 272 + .../model/prospecting_create_v1.py | 281 + .../model/prospecting_update_v1.py | 281 + .../model/prospecting_v1.py | 276 + .../model/read_ad_set.py | 320 + .../model/read_ad_set_bidding.py | 300 + .../model/read_ad_set_budget.py | 309 + .../model/read_ad_set_schedule.py | 297 + .../model/read_model_ad_set_id.py | 269 + .../model/read_model_read_ad_set.py | 279 + .../model/replace_audience.py | 281 + .../model/replace_audience_request.py} | 24 +- .../model/replace_audience_response.py | 291 + .../model/request_ad_set_search.py | 269 + .../model/requests_ad_set_id.py | 271 + .../model/requests_patch_ad_set.py | 271 + .../model/response_ad_set_id.py | 285 + .../model/response_read_ad_set.py | 285 + .../model/responses_ad_set_id.py | 288 + .../model/responses_read_ad_set.py | 288 + .../model/retargeting_create_v1.py | 286 + .../model/retargeting_update_v1.py | 276 + .../model/retargeting_v1.py | 277 + .../model/size.py | 267 + .../model/statistics_report_query_message.py | 355 + .../model/tag.py | 273 + .../transactions_report_query_data_message.py | 277 + ...ransactions_report_query_entity_message.py | 281 + .../transactions_report_query_message.py | 299 + .../model/transparency_query_message.py | 279 + .../model/transparency_report_attributes.py | 289 + .../model/transparency_report_data_message.py | 277 + .../transparency_report_entity_message.py | 279 + .../model/transparency_report_file.py | 275 + .../model/update_coupon.py | 273 + .../model/update_coupon_request.py | 269 + .../model/update_coupon_resource.py | 277 + .../model/video_detail.py | 286 + .../model/write_model_ad_set_id.py | 267 + .../model/write_model_patch_ad_set.py | 277 + .../model_utils.py | 2058 ++++ .../models/__init__.py | 270 + .../rest.py | 352 + sdks/marketingsolutions_2023-07/docs/Ad.md | 19 + .../docs/AdListResponse.md | 15 + .../docs/AdResource.md | 15 + .../docs/AdResponse.md | 15 + .../docs/AdSetAudienceLinkEntityV1.md} | 6 +- .../docs/AdSetAudienceLinkEntityV1Resource.md | 15 + .../docs/AdSetAudienceLinkEntityV1Response.md | 15 + .../docs/AdSetAudienceLinkInputEntityV1.md | 13 + .../docs/AdSetCategoryBid.md | 14 + .../docs/AdSetCategoryBidListResponse.md | 15 + .../docs/AdSetCategoryBidResource.md | 15 + .../docs/AdSetDeliveryLimitations.md | 15 + .../docs/AdSetDisplayMultiplier.md | 14 + .../AdSetDisplayMultiplierListResponse.md | 15 + .../docs/AdSetDisplayMultiplierResource.md | 15 + .../docs/AdSetFrequencyCapping.md | 14 + .../docs/AdSetGeoLocation.md | 15 + .../docs/AdSetSearchFilter.md | 15 + .../docs/AdSetTargeting.md | 15 + .../docs/AdSetTargetingRule.md | 14 + .../docs/AdWrite.md | 19 + .../docs/AdWriteRequest.md | 13 + .../docs/AdWriteResource.md | 15 + .../docs/AdaptiveAttributes.md | 24 + .../docs/AdaptiveColors.md | 18 + .../docs/AdaptiveWriteAttributes.md | 24 + .../docs/AdvertiserApi.md | 90 + .../docs/AlgebraNodeV1.md | 16 + .../docs/AnalyticsApi.md | 440 + .../docs/ApplicationSummaryModel.md | 17 + .../docs/ApplicationSummaryModelResource.md | 14 + .../docs/ApplicationSummaryModelResponse.md | 15 + .../docs/Audience.md | 15 + .../docs/AudienceApi.md | 2196 ++++ .../docs/AudienceAttributes.md | 19 + .../docs/AudienceBulkCreateInputV1.md | 13 + .../docs/AudienceBulkDeleteInputV1.md | 13 + .../docs/AudienceBulkUpdateInputV1.md | 13 + .../AudienceComputeSizeEntityV1Resource.md | 15 + .../docs/AudienceComputeSizesInputV1.md | 13 + .../docs/AudienceCreateEntityV1.md | 16 + .../docs/AudienceCreateEntityV1Resource.md | 14 + .../docs/AudienceDeleteEntityV1Resource.md | 15 + .../docs/AudienceEntityV1.md | 19 + ...yV1AudienceSearchMetadataV1ListResponse.md | 16 + .../docs/AudienceEntityV1ListResponse.md | 15 + .../docs/AudienceEntityV1Resource.md | 15 + .../docs/AudienceError.md | 20 + .../docs/AudienceEstimateSizeEntityV1.md | 14 + .../AudienceEstimateSizeEntityV1Resource.md | 14 + .../docs/AudienceEstimateSizeInputV1.md | 13 + .../docs/AudienceIdEntityV1ListResponse.md | 15 + .../docs/AudienceIdEntityV1Resource.md | 15 + .../docs/AudienceNameDescription.md | 14 + .../docs/AudienceSearchEntityV1.md | 16 + .../docs/AudienceSearchEntityV1Resource.md | 14 + .../docs/AudienceSearchInputV1.md | 13 + .../docs/AudienceSearchMetadataV1.md | 15 + .../docs/AudienceSegmentBulkCreateInputV1.md | 13 + .../docs/AudienceSegmentBulkDeleteInputV1.md | 13 + .../docs/AudienceSegmentBulkUpdateInputV1.md | 13 + ...ienceSegmentComputeSizeEntityV1Resource.md | 15 + .../AudienceSegmentComputeSizesInputV1.md | 13 + .../docs/AudienceSegmentCreateEntityV1.md | 21 + .../AudienceSegmentCreateEntityV1Resource.md | 14 + .../AudienceSegmentDeleteEntityV1Resource.md | 15 + .../docs/AudienceSegmentEntityV1.md | 25 + ...enceSegmentSearchMetadataV1ListResponse.md | 16 + .../AudienceSegmentEntityV1ListResponse.md | 15 + .../docs/AudienceSegmentEntityV1Resource.md | 15 + .../AudienceSegmentEstimateSizeInputV1.md | 13 + .../AudienceSegmentIdEntityV1ListResponse.md | 15 + .../docs/AudienceSegmentIdEntityV1Resource.md | 15 + .../docs/AudienceSegmentSearchEntityV1.md | 15 + .../AudienceSegmentSearchEntityV1Resource.md | 14 + .../docs/AudienceSegmentSearchInputV1.md | 13 + .../docs/AudienceSegmentSearchMetadataV1.md | 15 + .../docs/AudienceSegmentSizeEntityV1.md | 13 + ...AudienceSegmentSizeEntityV1ListResponse.md | 15 + .../AudienceSegmentSizeEntityV1Resource.md | 15 + .../AudienceSegmentSizeEstimationEntityV1.md | 15 + ...ceSegmentSizeEstimationEntityV1Resource.md | 14 + .../docs/AudienceSegmentSizeEstimationV1.md} | 6 +- ...AudienceSegmentSizeEstimationV1Resource.md | 14 + ...AudienceSegmentSizeEstimationV1Response.md | 15 + .../docs/AudienceSegmentUpdateEntityV1.md | 19 + .../AudienceSegmentUpdateEntityV1Resource.md | 15 + .../docs/AudienceSizeEntityV1.md} | 6 +- .../docs/AudienceSizeEntityV1ListResponse.md | 15 + .../docs/AudienceSizeEntityV1Resource.md | 15 + .../docs/AudienceSizeEstimationV1.md} | 6 +- .../docs/AudienceSizeEstimationV1Resource.md | 14 + .../docs/AudienceSizeEstimationV1Response.md | 15 + .../docs/AudienceUpdateEntityV1.md | 15 + .../docs/AudienceUpdateEntityV1Resource.md | 15 + .../docs/AudienceWarning.md | 20 + .../docs/BasicAudienceDefinition.md | 15 + .../docs/BehavioralV1.md | 16 + .../docs/Campaign.md | 17 + .../docs/CampaignApi.md | 1576 +++ .../docs/CampaignListResponse.md | 15 + .../docs/CampaignReadResource.md | 15 + .../docs/CampaignResponse.md | 15 + .../docs/CampaignSearchFilters.md | 14 + .../docs/CampaignSearchRequest.md | 13 + .../docs/CampaignSpendLimit.md | 15 + .../docs/CampaignSpendLimitV23Q1.md | 15 + .../docs/CampaignV23Q1.md | 16 + .../docs/CampaignV23Q1Resource.md | 15 + .../docs/CampaignV23Q1Response.md | 15 + .../docs/CommonProblem.md | 21 + .../docs/ContactListStatisticsEntityV1.md | 15 + .../ContactListStatisticsEntityV1Resource.md | 15 + .../ContactListStatisticsEntityV1Response.md | 15 + .../docs/ContactListV1.md | 13 + .../docs/ContactlistAmendment.md | 14 + .../docs/ContactlistAmendmentAttributes.md | 16 + .../docs/ContactlistAmendmentRequest.md | 13 + .../docs/ContactlistOperation.md | 14 + .../docs/ContactlistOperationAttributes.md | 19 + .../marketingsolutions_2023-07/docs/Coupon.md | 26 + .../docs/CouponListResponse.md | 15 + .../docs/CouponResource.md | 15 + .../docs/CouponResponse.md | 15 + .../docs/CouponSupportedSizes.md | 14 + .../docs/CouponSupportedSizesResource.md | 15 + .../docs/CouponSupportedSizesResponse.md | 15 + .../docs/CreateAdSet.md | 22 + .../docs/CreateAdSetBidding.md | 14 + .../docs/CreateAdSetBudget.md | 17 + .../docs/CreateAdSetGeoLocation.md | 15 + .../docs/CreateAdSetRequest.md | 13 + .../docs/CreateAdSetResource.md | 14 + .../docs/CreateAdSetSchedule.md | 14 + .../docs/CreateAdSetTargeting.md | 15 + .../docs/CreateCampaign.md | 16 + .../docs/CreateCampaignRequest.md | 13 + .../docs/CreateCampaignResource.md | 14 + .../docs/CreateCampaignSpendLimit.md | 15 + .../docs/CreateCoupon.md | 23 + .../docs/CreateCouponRequest.md | 13 + .../docs/CreateCouponResource.md | 15 + .../docs/CreateImageSlide.md | 15 + .../docs/Creative.md | 23 + .../docs/CreativeApi.md | 1775 ++++ .../docs/CreativeListResponse.md | 15 + .../docs/CreativeResource.md | 15 + .../docs/CreativeResponse.md | 15 + .../docs/CreativeWrite.md | 20 + .../docs/CreativeWriteRequest.md | 13 + .../docs/CreativeWriteResource.md | 15 + .../docs/CriteoApiError.md} | 2 +- .../docs/CriteoApiWarning.md | 18 + .../docs/DeleteAudienceContactListResponse.md | 15 + .../docs/DeleteAudienceResponse.md | 15 + .../docs/DynamicAttributes.md | 19 + .../docs/DynamicWriteAttributes.md | 19 + .../docs/EntityOfPortfolioMessage.md | 16 + .../docs/ErrorCodeResponse.md | 14 + .../docs/GatewayApi.md | 90 + .../docs/GetAudiencesResponse.md | 15 + .../docs/GetPortfolioResponse.md | 15 + .../docs/HtmlTagAttributes.md | 13 + .../docs/HtmlTagWriteAttributes.md | 13 + .../docs/ImageAttributes.md | 14 + .../docs/ImageSet.md | 14 + .../docs/ImageSetBase64.md | 14 + .../docs/ImageShape.md | 14 + .../docs/ImageSlide.md | 15 + .../docs/ImageWriteAttributes.md | 14 + .../InMarketAudienceSegmentBrandEntityV1.md | 14 + ...udienceSegmentBrandEntityV1ListResponse.md | 15 + ...ketAudienceSegmentBrandEntityV1Resource.md | 15 + ...InMarketAudienceSegmentInterestEntityV1.md | 13 + ...enceSegmentInterestEntityV1ListResponse.md | 15 + ...AudienceSegmentInterestEntityV1Resource.md | 15 + .../docs/InMarketCreateV1.md | 18 + .../docs/InMarketSizeEstimationV1.md | 18 + .../docs/InMarketUpdateV1.md | 18 + .../docs/InMarketV1.md | 18 + .../docs/LocationCreateV1.md | 14 + .../docs/LocationSizeEstimationV1.md | 14 + .../docs/LocationUpdateV1.md | 15 + .../docs/LocationV1.md | 15 + .../docs/LookalikeCreateV1.md | 14 + .../docs/LookalikeUpdateV1.md | 13 + .../docs/LookalikeV1.md | 14 + .../docs/ModifyAudienceResponse.md | 15 + .../docs/NewAudience.md | 14 + .../docs/NewAudienceAttributes.md | 14 + .../docs/NewAudienceRequest.md | 13 + .../docs/NewAudienceResponse.md | 15 + .../docs/NillableAdSetTargetingRule.md | 13 + .../docs/NillableAdSetTargetingRuleValue.md | 13 + .../docs/NillableDateTime.md | 13 + .../docs/NillableDecimal.md | 13 + .../docs/NillableGenderV1.md | 13 + .../docs/NillableInt32.md | 13 + .../docs/NillableString.md} | 6 +- .../docs/PatchAdSet.md | 17 + .../docs/PatchAdSetBidding.md | 13 + .../docs/PatchAdSetBudget.md | 17 + .../docs/PatchAdSetCategoryBid.md | 13 + .../docs/PatchAdSetCategoryBidListRequest.md | 13 + .../docs/PatchAdSetCategoryBidResource.md | 15 + ...PatchAdSetCategoryBidResultListResponse.md | 15 + .../PatchAdSetCategoryBidResultResource.md | 14 + .../docs/PatchAdSetDisplayMultiplier.md | 13 + .../PatchAdSetDisplayMultiplierListRequest.md | 13 + .../PatchAdSetDisplayMultiplierResource.md | 15 + ...dSetDisplayMultiplierResultListResponse.md | 15 + ...tchAdSetDisplayMultiplierResultResource.md | 14 + .../docs/PatchAdSetScheduling.md | 14 + .../docs/PatchCampaign.md | 13 + .../docs/PatchCampaignListRequest.md | 13 + .../docs/PatchCampaignSpendLimit.md | 15 + .../docs/PatchCampaignWriteResource.md | 15 + .../docs/PatchResultCampaignListResponse.md | 15 + .../docs/PatchResultCampaignReadResource.md | 14 + .../docs/PlacementsReportQueryDataMessage.md | 13 + .../PlacementsReportQueryEntityMessage.md | 14 + .../docs/PlacementsReportQueryMessage.md | 25 + .../docs/PointOfInterestV1.md | 15 + .../docs/PortfolioMessage.md | 13 + .../docs/ProblemDetails.md | 21 + .../docs/ProblemsDetails.md | 13 + .../docs/ProspectingCreateV1.md | 15 + .../docs/ProspectingUpdateV1.md | 15 + .../docs/ProspectingV1.md | 15 + .../docs/ReadAdSet.md | 22 + .../docs/ReadAdSetBidding.md | 15 + .../docs/ReadAdSetBudget.md | 17 + .../docs/ReadAdSetSchedule.md | 16 + .../docs/ReadModelAdSetId.md | 14 + .../docs/ReadModelReadAdSet.md | 15 + .../docs/ReplaceAudience.md | 14 + .../docs/ReplaceAudienceRequest.md | 13 + .../docs/ReplaceAudienceResponse.md | 15 + .../docs/RequestAdSetSearch.md | 13 + .../docs/RequestsAdSetId.md | 13 + .../docs/RequestsPatchAdSet.md | 13 + .../docs/ResponseAdSetId.md | 15 + .../docs/ResponseReadAdSet.md | 15 + .../docs/ResponsesAdSetId.md | 15 + .../docs/ResponsesReadAdSet.md | 15 + .../docs/RetargetingCreateV1.md | 15 + .../docs/RetargetingUpdateV1.md | 15 + .../docs/RetargetingV1.md | 15 + sdks/marketingsolutions_2023-07/docs/Size.md | 14 + .../docs/StatisticsReportQueryMessage.md | 23 + sdks/marketingsolutions_2023-07/docs/Tag.md | 14 + .../TransactionsReportQueryDataMessage.md | 13 + .../TransactionsReportQueryEntityMessage.md | 14 + .../docs/TransactionsReportQueryMessage.md | 19 + .../docs/TransparencyQueryMessage.md | 15 + .../docs/TransparencyReportAttributes.md | 15 + .../docs/TransparencyReportDataMessage.md | 13 + .../docs/TransparencyReportEntityMessage.md | 14 + .../docs/TransparencyReportFile.md | 14 + .../docs/UpdateCoupon.md | 14 + .../docs/UpdateCouponRequest.md | 13 + .../docs/UpdateCouponResource.md | 15 + .../docs/VideoDetail.md | 15 + .../docs/WriteModelAdSetId.md | 14 + .../docs/WriteModelPatchAdSet.md | 15 + .../requirements.txt | 3 + sdks/marketingsolutions_2023-07/setup.cfg | 2 + sdks/marketingsolutions_2023-07/setup.py | 68 + .../test-requirements.txt | 1 + .../example_application_with_auth_code.py | 27 + ...ple_application_with_client_credentials.py | 22 + .../example_application_with_refresh_token.py | 27 + .../test/test_gateway_api.py | 62 + sdks/marketingsolutions_2023-07/tox.ini | 9 + .../.openapi-generator/FILES | 12 +- sdks/marketingsolutions_preview/README.md | 12 +- .../__init__.py | 4 +- .../api/advertiser_api.py | 2 +- .../api/analytics_api.py | 2 +- .../api/audience_api.py | 228 +- .../api/campaign_api.py | 34 +- .../api/catalog_api.py | 2 +- .../api/creative_api.py | 464 +- .../api/gateway_api.py | 2 +- .../api/on_site_recommendation_api.py | 2 +- .../api/reco_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- .../model/ad.py | 2 +- .../model/ad_list_response.py | 2 +- .../model/ad_resource.py | 2 +- .../model/ad_response.py | 2 +- .../model/ad_set_audience_link_entity_v1.py | 2 +- ...ad_set_audience_link_entity_v1_resource.py | 2 +- ...ad_set_audience_link_entity_v1_response.py | 6 +- .../ad_set_audience_link_input_entity_v1.py | 2 +- .../model/ad_set_category_bid.py | 2 +- .../ad_set_category_bid_list_response.py | 2 +- .../model/ad_set_category_bid_resource.py | 2 +- .../model/ad_set_delivery_limitations.py | 2 +- .../ad_set_delivery_limitations_v23_q1.py | 2 +- .../model/ad_set_display_multiplier.py | 2 +- ...ad_set_display_multiplier_list_response.py | 2 +- .../ad_set_display_multiplier_resource.py | 2 +- .../model/ad_set_frequency_capping.py | 2 +- .../model/ad_set_frequency_capping_v23_q1.py | 2 +- .../model/ad_set_geo_location.py | 2 +- .../model/ad_set_geo_location_v23_q1.py | 2 +- .../model/ad_set_search_filter_v23_q1.py | 2 +- .../model/ad_set_search_request_v23_q1.py | 2 +- .../model/ad_set_targeting.py | 2 +- .../model/ad_set_targeting_deal_ids.py | 2 +- ...geting_deal_ids_disable_result_resource.py | 2 +- ...geting_deal_ids_disable_result_response.py | 2 +- .../ad_set_targeting_deal_ids_resource.py | 2 +- .../ad_set_targeting_deal_ids_response.py | 2 +- ..._targeting_deal_ids_set_result_resource.py | 2 +- ..._targeting_deal_ids_set_result_response.py | 2 +- .../model/ad_set_targeting_rule.py | 2 +- .../model/ad_set_targeting_rule_v23_q1.py | 2 +- .../model/ad_set_targeting_v23_q1.py | 2 +- .../ad_set_targeting_video_positioning.py | 2 +- ...deo_positioning_disable_result_resource.py | 2 +- ...deo_positioning_disable_result_response.py | 2 +- ...et_targeting_video_positioning_resource.py | 2 +- ...et_targeting_video_positioning_response.py | 2 +- ...g_video_positioning_set_result_resource.py | 2 +- ...g_video_positioning_set_result_response.py | 2 +- .../model/ad_write.py | 6 +- .../model/ad_write_request.py | 2 +- .../model/ad_write_resource.py | 2 +- .../model/adaptive_attributes.py | 2 +- .../model/adaptive_colors.py | 2 +- .../model/adaptive_write_attributes.py | 13 +- .../model/advertiser_creation_input.py | 12 +- .../model/advertiser_creation_request.py | 40 +- .../model/advertiser_creation_response.py | 12 +- .../model/advertiser_dataset_list_response.py | 12 +- .../model/algebra_node_v1.py | 6 +- .../model/api_error_response.py | 2 +- .../model/api_request_of_targeting_entity.py | 2 +- .../model/api_response_of_targeting_entity.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/attribute.py | 2 +- .../model/audience_bulk_create_input_v1.py | 4 +- .../model/audience_bulk_delete_input_v1.py | 4 +- .../model/audience_bulk_update_input_v1.py | 4 +- ...udience_compute_size_entity_v1_resource.py | 2 +- .../model/audience_compute_sizes_input_v1.py | 4 +- .../model/audience_create_entity_v1.py | 32 +- .../audience_create_entity_v1_resource.py | 2 +- .../audience_delete_entity_v1_resource.py | 2 +- .../model/audience_entity_v1.py | 2 +- ...dience_search_metadata_v1_list_response.py | 8 +- .../model/audience_entity_v1_list_response.py | 8 +- .../model/audience_entity_v1_resource.py | 2 +- .../model/audience_error.py | 2 +- .../model/audience_estimate_size_entity_v1.py | 22 +- ...dience_estimate_size_entity_v1_resource.py | 2 +- .../model/audience_estimate_size_input_v1.py | 2 +- .../audience_id_entity_v1_list_response.py | 8 +- .../model/audience_id_entity_v1_resource.py | 6 +- .../model/audience_name_description.py | 2 +- .../model/audience_search_entity_v1.py | 10 +- .../audience_search_entity_v1_resource.py | 2 +- .../model/audience_search_input_v1.py | 2 +- .../model/audience_search_metadata_v1.py | 2 +- .../audience_segment_bulk_create_input_v1.py | 4 +- .../audience_segment_bulk_delete_input_v1.py | 4 +- .../audience_segment_bulk_update_input_v1.py | 4 +- ...segment_compute_size_entity_v1_resource.py | 2 +- ...audience_segment_compute_sizes_input_v1.py | 4 +- .../audience_segment_create_entity_v1.py | 34 +- ...ience_segment_create_entity_v1_resource.py | 2 +- ...ience_segment_delete_entity_v1_resource.py | 2 +- .../model/audience_segment_entity_v1.py | 10 +- ...egment_search_metadata_v1_list_response.py | 8 +- ...udience_segment_entity_v1_list_response.py | 8 +- .../audience_segment_entity_v1_resource.py | 2 +- ...audience_segment_estimate_size_input_v1.py | 2 +- ...ence_segment_id_entity_v1_list_response.py | 8 +- .../audience_segment_id_entity_v1_resource.py | 2 +- .../audience_segment_search_entity_v1.py | 8 +- ...ience_segment_search_entity_v1_resource.py | 2 +- .../model/audience_segment_search_input_v1.py | 2 +- .../audience_segment_search_metadata_v1.py | 2 +- .../model/audience_segment_size_entity_v1.py | 2 +- ...ce_segment_size_entity_v1_list_response.py | 8 +- ...udience_segment_size_entity_v1_resource.py | 2 +- ...ience_segment_size_estimation_entity_v1.py | 16 +- ...ment_size_estimation_entity_v1_resource.py | 2 +- .../audience_segment_size_estimation_v1.py | 2 +- ...nce_segment_size_estimation_v1_resource.py | 2 +- ...nce_segment_size_estimation_v1_response.py | 6 +- .../audience_segment_update_entity_v1.py | 12 +- ...ience_segment_update_entity_v1_resource.py | 2 +- .../model/audience_size_entity_v1.py | 2 +- .../audience_size_entity_v1_list_response.py | 8 +- .../model/audience_size_entity_v1_resource.py | 2 +- .../model/audience_size_estimation_v1.py | 2 +- .../audience_size_estimation_v1_resource.py | 2 +- .../audience_size_estimation_v1_response.py | 6 +- .../model/audience_update_entity_v1.py | 2 +- .../audience_update_entity_v1_resource.py | 2 +- .../model/audience_warning.py | 2 +- .../model/basic_audience_definition.py | 2 +- .../model/batch_accepted_response.py | 2 +- .../model/behavioral_v1.py | 2 +- .../model/campaign_search_filters_v23_q1.py | 2 +- .../model/campaign_search_request_v23_q1.py | 2 +- .../model/campaign_spend_limit_v23_q1.py | 2 +- .../model/campaign_v23_q1.py | 2 +- .../model/campaign_v23_q1_list_response.py | 2 +- .../model/campaign_v23_q1_resource.py | 2 +- .../model/campaign_v23_q1_response.py | 2 +- .../model/common_problem.py | 2 +- .../contact_list_statistics_entity_v1.py | 2 +- ...tact_list_statistics_entity_v1_resource.py | 2 +- ...tact_list_statistics_entity_v1_response.py | 6 +- .../model/contact_list_v1.py | 2 +- .../model/contactlist_amendment.py | 2 +- .../model/contactlist_amendment_attributes.py | 7 +- .../model/contactlist_amendment_request.py | 2 +- .../model/contactlist_operation.py | 2 +- .../model/contactlist_operation_attributes.py | 8 +- .../contactlist_with_attributes_amendment.py | 2 +- ...st_with_attributes_amendment_attributes.py | 8 +- ...tlist_with_attributes_amendment_request.py | 2 +- .../model/coupon.py | 2 +- .../model/coupon_list_response.py | 2 +- .../model/coupon_resource.py | 2 +- .../model/coupon_response.py | 2 +- .../model/coupon_supported_sizes.py | 2 +- .../model/coupon_supported_sizes_resource.py | 2 +- .../model/coupon_supported_sizes_response.py | 2 +- .../model/create_ad_set.py | 70 +- .../model/create_ad_set_bidding.py | 20 +- .../model/create_ad_set_budget.py | 16 +- .../model/create_ad_set_geo_location.py | 2 +- .../model/create_ad_set_request.py | 2 +- .../model/create_ad_set_resource.py | 2 +- .../model/create_ad_set_schedule.py | 16 +- .../model/create_ad_set_targeting.py | 20 +- .../model/create_campaign.py | 34 +- .../model/create_campaign_request.py | 2 +- .../model/create_campaign_resource.py | 2 +- .../model/create_campaign_spend_limit.py | 16 +- .../model/create_coupon.py | 18 +- .../model/create_coupon_request.py | 2 +- .../model/create_coupon_resource.py | 2 +- .../model/create_image_slide.py | 2 +- .../model/create_product_set_request.py | 2 +- .../model/creative.py | 2 +- .../model/creative_list_response.py | 2 +- .../model/creative_resource.py | 2 +- .../model/creative_response.py | 2 +- .../model/creative_write.py | 28 +- .../model/creative_write_request.py | 2 +- .../model/creative_write_resource.py | 2 +- .../model/criteo_api_error.py | 2 +- .../model/criteo_api_warning.py | 2 +- .../model/criteo_api_warning_v2.py | 2 +- .../model/custom_attribute.py | 2 +- .../model/dataset.py | 2 +- .../model/deal_id.py | 2 +- .../delete_audience_contact_list_response.py | 2 +- .../model/delete_user_profile_model.py | 2 +- .../delete_user_profile_model_list_request.py | 2 +- .../delete_user_profile_model_resource.py | 2 +- .../model/dynamic_attributes.py | 2 +- .../model/dynamic_write_attributes.py | 57 +- .../model/entity_filter.py | 2 +- .../model/entity_of_portfolio_message.py | 2 +- .../model/entity_v2_of_dataset.py | 2 +- .../model/entity_v2_of_object.py | 2 +- .../entity_wrapper_of_targeting_entity.py | 2 +- .../model/error_code_response.py | 2 +- .../model/error_description.py | 2 +- .../model/export_column.py | 15 +- .../model/export_meta_data.py | 2 +- .../model/export_result.py | 2 +- .../model/export_result_data.py | 2 +- .../model/fail_response.py | 2 +- ...ate_audience_performance_report_request.py | 2 +- ...e_performance_report_request_attributes.py | 10 +- ...udience_performance_report_request_data.py | 2 +- .../generate_categories_report_request.py | 2 +- ...te_categories_report_request_attributes.py | 2 +- ...generate_categories_report_request_data.py | 2 +- .../generate_creatives_report_request.py | 2 +- ...ate_creatives_report_request_attributes.py | 2 +- .../generate_creatives_report_request_data.py | 2 +- .../generate_statistics_report_request.py | 2 +- ...te_statistics_report_request_attributes.py | 57 +- ...generate_statistics_report_request_data.py | 2 +- .../generate_top_products_report_request.py | 2 +- ..._top_products_report_request_attributes.py | 2 +- ...nerate_top_products_report_request_data.py | 2 +- .../model/get_portfolio_response.py | 2 +- .../model/html_tag_attributes.py | 2 +- .../model/html_tag_write_attributes.py | 16 +- .../model/image_attributes.py | 2 +- .../model/image_set.py | 2 +- .../model/image_set_base64.py | 3 +- .../model/image_shape.py | 2 +- .../model/image_slide.py | 2 +- .../model/image_write_attributes.py | 23 +- ...market_audience_segment_brand_entity_v1.py | 2 +- ...e_segment_brand_entity_v1_list_response.py | 8 +- ...dience_segment_brand_entity_v1_resource.py | 2 +- ...ket_audience_segment_interest_entity_v1.py | 2 +- ...egment_interest_entity_v1_list_response.py | 8 +- ...nce_segment_interest_entity_v1_resource.py | 2 +- .../model/in_market_create_v1.py | 36 +- .../model/in_market_size_estimation_v1.py | 16 +- .../model/in_market_update_v1.py | 22 +- .../model/in_market_v1.py | 2 +- .../model/installment.py | 2 +- .../model/json_report_rows.py | 2 +- .../list_available_industries_response.py | 12 +- .../model/location_create_v1.py | 24 +- .../model/location_size_estimation_v1.py | 24 +- .../model/location_update_v1.py | 12 +- .../model/location_v1.py | 4 +- .../model/lookalike_create_v1.py | 20 +- .../model/lookalike_update_v1.py | 6 +- .../model/lookalike_v1.py | 2 +- .../model/loyalty_points.py | 2 +- .../marketing_solutions_report_status.py | 2 +- ...keting_solutions_report_status_resource.py | 2 +- ...keting_solutions_report_status_response.py | 2 +- .../model/modify_audience_response.py | 2 +- .../model/nillable_ad_set_targeting_rule.py | 2 +- .../nillable_ad_set_targeting_rule_v23_q1.py | 2 +- .../nillable_ad_set_targeting_rule_value.py | 2 +- .../model/nillable_date_time.py | 2 +- .../model/nillable_decimal.py | 2 +- .../model/nillable_gender_v1.py | 2 +- .../model/nillable_int32.py | 263 + .../model/nillable_string.py | 2 +- .../model/oci_brand_safety_response.py | 2 +- .../model/oci_brand_safety_response_data.py | 2 +- .../model/oci_brand_safety_rule.py | 2 +- .../model/oci_brand_safety_segment.py | 2 +- .../model/oci_targeting_node.py | 2 +- .../model/oci_targeting_response.py | 2 +- .../model/oci_targeting_response_data.py | 2 +- .../model/oci_targeting_rule.py | 2 +- .../model/ok_response.py | 2 +- .../model/on_site_reco_request.py | 11 +- .../model/on_site_reco_response.py | 2 +- .../model/outcome.py | 2 +- .../model/patch_ad_set.py | 2 +- .../model/patch_ad_set_bidding.py | 2 +- .../model/patch_ad_set_budget.py | 2 +- .../model/patch_ad_set_category_bid.py | 2 +- .../patch_ad_set_category_bid_list_request.py | 2 +- .../patch_ad_set_category_bid_resource.py | 2 +- ...d_set_category_bid_result_list_response.py | 2 +- ...tch_ad_set_category_bid_result_resource.py | 2 +- .../model/patch_ad_set_display_multiplier.py | 2 +- ..._ad_set_display_multiplier_list_request.py | 2 +- ...atch_ad_set_display_multiplier_resource.py | 2 +- ...display_multiplier_result_list_response.py | 2 +- ..._set_display_multiplier_result_resource.py | 2 +- .../model/patch_ad_set_scheduling.py | 2 +- .../model/patch_campaign.py | 2 +- .../model/patch_campaign_list_request.py | 2 +- .../model/patch_campaign_spend_limit.py | 2 +- .../model/patch_campaign_write_resource.py | 2 +- .../patch_result_campaign_list_response.py | 2 +- .../patch_result_campaign_read_resource.py | 2 +- .../placements_report_query_data_message.py | 2 +- .../placements_report_query_entity_message.py | 2 +- .../model/placements_report_query_message.py | 2 +- .../model/point_of_interest_v1.py | 2 +- .../model/portfolio_message.py | 2 +- .../model/preview_error.py | 2 +- .../model/preview_fail_response.py | 2 +- .../model/preview_warning.py | 2 +- .../model/price.py | 2 +- .../model/problem_details.py | 2 +- .../model/problems_details.py | 2 +- .../model/product.py | 2 +- .../model/product_importer_error.py | 2 +- .../model/product_importer_warning.py | 2 +- .../model/product_set.py | 2 +- .../model/product_set_preview.py | 2 +- .../model/product_set_rule.py | 3 +- .../model/product_set_statistics.py | 2 +- .../model/product_set_statistics_query.py | 2 +- .../model/product_shipping.py | 2 +- .../model/product_shipping_dimension.py | 2 +- .../model/product_shipping_weight.py | 2 +- .../model/product_tax.py | 2 +- .../product_unit_pricing_base_measure.py | 2 +- .../model/product_unit_pricing_measure.py | 2 +- .../model/products_custom_batch_request.py | 2 +- .../products_custom_batch_request_entry.py | 2 +- .../model/prospecting_create_v1.py | 281 + .../model/prospecting_update_v1.py | 281 + .../model/prospecting_v1.py | 276 + .../model/read_ad_set.py | 2 +- .../model/read_ad_set_bidding.py | 2 +- .../model/read_ad_set_bidding_v23_q1.py | 2 +- .../model/read_ad_set_budget.py | 2 +- .../model/read_ad_set_budget_v23_q1.py | 2 +- .../model/read_ad_set_schedule.py | 2 +- .../model/read_ad_set_schedule_v23_q1.py | 2 +- .../model/read_ad_set_v23_q1.py | 2 +- .../model/read_model_ad_set_id.py | 2 +- .../model/read_model_read_ad_set.py | 2 +- .../model/read_model_read_ad_set_v23_q1.py | 2 +- .../model/recommended_product.py | 2 +- .../model/report_data_message.py | 2 +- .../model/report_detail_error.py | 2 +- .../model/report_detail_errors.py | 2 +- .../model/report_entity_message.py | 2 +- .../model/report_ok_response.py | 2 +- .../model/requests_ad_set_id.py | 2 +- .../model/requests_patch_ad_set.py | 2 +- ...ource_collection_outcome_of_product_set.py | 2 +- .../model/resource_of_product_set.py | 2 +- .../model/resource_outcome_of_product_set.py | 2 +- .../model/response_ad_set_id.py | 2 +- .../model/response_read_ad_set.py | 2 +- .../model/response_read_ad_set_v23_q1.py | 2 +- .../model/responses_ad_set_id.py | 2 +- .../model/responses_read_ad_set_v23_q1.py | 2 +- .../model/retargeting_create_v1.py | 28 +- .../model/retargeting_update_v1.py | 14 +- .../model/retargeting_v1.py | 14 +- .../model/rules.py | 2 +- .../model/set_ad_set_targeting_deal_ids.py | 2 +- .../set_ad_set_targeting_deal_ids_request.py | 2 +- .../set_ad_set_targeting_deal_ids_resource.py | 2 +- .../set_ad_set_targeting_video_positioning.py | 2 +- ...set_targeting_video_positioning_request.py | 2 +- ...et_targeting_video_positioning_resource.py | 2 +- .../model/set_user_profile_model.py | 2 +- .../set_user_profile_model_list_request.py | 2 +- .../model/set_user_profile_model_resource.py | 2 +- .../model/size.py | 2 +- .../model/statistics_ok_response.py | 2 +- .../model/statistics_record.py | 20 +- .../model/statistics_record_list.py | 2 +- .../model/statistics_report_query_message.py | 2 +- .../model/supply_vendor.py | 2 +- .../model/supply_vendor_list_response.py | 2 +- .../model/supply_vendor_resource.py | 2 +- .../model/tag.py | 2 +- .../model/target.py | 2 +- .../model/target_type.py | 2 +- .../model/targeting_entity.py | 18 +- .../model/targeting_error_model.py | 2 +- .../model/targeting_operator.py | 2 +- .../transactions_report_query_data_message.py | 2 +- ...ransactions_report_query_entity_message.py | 2 +- .../transactions_report_query_message.py | 2 +- .../model/transparency_query_message.py | 2 +- .../model/transparency_report_attributes.py | 2 +- .../model/transparency_report_data_message.py | 2 +- .../transparency_report_entity_message.py | 2 +- .../model/transparency_report_file.py | 2 +- .../model/unauthorized_response_v2.py | 12 +- .../model/update_coupon.py | 2 +- .../model/update_coupon_request.py | 2 +- .../model/update_coupon_resource.py | 2 +- .../model/user_def.py | 2 +- .../model/user_event.py | 2 +- .../model/user_profile_attribute_model.py | 2 +- .../model/user_profile_identifier_model.py | 2 +- ...rce_input_of_create_product_set_request.py | 2 +- ...e_resource_of_advertiser_creation_input.py | 273 + ..._resource_of_create_product_set_request.py | 2 +- .../model/video_detail.py | 2 +- .../model/write_model_ad_set_id.py | 2 +- .../model/write_model_patch_ad_set.py | 2 +- .../model_utils.py | 2 +- .../models/__init__.py | 6 +- .../rest.py | 2 +- .../docs/AdvertiserApi.md | 17 +- .../docs/AdvertiserCreationInput.md | 3 +- .../docs/AdvertiserCreationRequest.md | 3 +- .../docs/AdvertiserCreationResponse.md | 2 +- .../docs/AdvertiserDatasetListResponse.md | 2 +- .../docs/AudienceApi.md | 192 +- .../docs/AudienceCreateEntityV1.md | 6 +- .../docs/AudienceEstimateSizeEntityV1.md | 4 +- .../docs/AudienceIdEntityV1Resource.md | 2 +- .../docs/AudienceSegmentCreateEntityV1.md | 6 +- .../docs/AudienceSegmentEntityV1.md | 2 +- .../AudienceSegmentEstimateSizeInputV1.md | 2 +- .../AudienceSegmentSizeEstimationEntityV1.md | 2 +- .../docs/AudienceSegmentUpdateEntityV1.md | 3 +- .../docs/CampaignApi.md | 82 +- .../docs/ContactlistAmendmentAttributes.md | 1 - .../docs/ContactlistOperationAttributes.md | 2 +- ...ctlistWithAttributesAmendmentAttributes.md | 1 - .../docs/CreateAdSet.md | 20 +- .../docs/CreateAdSetBidding.md | 2 +- .../docs/CreateAdSetBudget.md | 2 +- .../docs/CreateAdSetSchedule.md | 2 +- .../docs/CreateAdSetTargeting.md | 2 +- .../docs/CreateCampaign.md | 8 +- .../docs/CreateCampaignSpendLimit.md | 2 +- .../docs/CreativeApi.md | 441 +- .../docs/CreativeWrite.md | 4 +- .../docs/DynamicWriteAttributes.md | 12 +- ...iencePerformanceReportRequestAttributes.md | 4 +- .../docs/HtmlTagWriteAttributes.md | 2 +- .../docs/ImageWriteAttributes.md | 4 +- .../docs/InMarketCreateV1.md | 12 +- .../docs/InMarketSizeEstimationV1.md | 2 +- .../docs/InMarketUpdateV1.md | 10 +- .../docs/ListAvailableIndustriesResponse.md | 2 +- .../docs/LocationCreateV1.md | 4 +- .../docs/LocationSizeEstimationV1.md | 4 +- .../docs/LocationUpdateV1.md | 4 +- .../docs/LookalikeCreateV1.md | 4 +- .../docs/LookalikeUpdateV1.md | 2 +- .../docs/NillableInt32.md | 13 + .../docs/OnSiteRecoRequest.md | 1 + .../docs/OnSiteRecommendationApi.md | 1 + .../docs/ProspectingCreateV1.md | 15 + .../docs/ProspectingUpdateV1.md | 15 + .../docs/ProspectingV1.md | 15 + .../docs/RecoApi.md | 2 +- .../docs/RetargetingCreateV1.md | 6 +- .../docs/RetargetingUpdateV1.md | 6 +- .../docs/RetargetingV1.md | 6 +- .../docs/StatisticsRecord.md | 5 +- .../docs/TargetingEntity.md | 4 +- .../docs/UnauthorizedResponseV2.md | 2 +- .../ValueResourceOfAdvertiserCreationInput.md | 14 + sdks/marketingsolutions_preview/setup.py | 6 +- sdks/retailmedia_2022-07/README.md | 6 +- .../__init__.py | 4 +- .../api/analytics_api.py | 10 +- .../api/audience_api.py | 6 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- ...o_basket_ids_update_model202110_request.py | 2 +- .../add_to_basket_target202110_request.py | 2 +- .../add_to_basket_target202110_response.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/asset.py | 2 +- .../model/asset_resource.py | 2 +- .../model/asset_response.py | 2 +- .../auction_line_item_create_model_request.py | 2 +- .../auction_line_item_paged_list_response.py | 2 +- .../model/auction_line_item_response.py | 2 +- .../auction_line_item_update_model_request.py | 2 +- ...audience_ids_update_model202110_request.py | 2 +- .../model/audience_target202110_request.py | 2 +- .../model/audience_target202110_response.py | 2 +- .../model/bad_request.py | 2 +- .../balance202110_paged_list_response.py | 2 +- .../balance_campaign202110_list_request.py | 2 +- ...ance_campaign202110_paged_list_response.py | 2 +- .../model/category202204.py | 2 +- .../model/category202204_list_response.py | 2 +- .../model/choice_option.py | 2 +- .../model/choice_variable_specification.py | 2 +- .../model/choice_variable_value.py | 2 +- .../model/color_variable_value.py | 2 +- .../model/common_error.py | 2 +- .../common_line_item_paged_list_response.py | 2 +- .../model/common_line_item_response.py | 2 +- .../model/common_problem.py | 2 +- .../model/common_warning.py | 2 +- .../model/create_retail_media_audience.py | 2 +- ...create_retail_media_audience_attributes.py | 20 +- .../create_retail_media_audience_body.py | 2 +- .../create_retail_media_audience_request.py | 2 +- .../create_retail_media_audience_response.py | 2 +- .../model/creative202110.py | 2 +- .../model/creative202110_list_response.py | 2 +- .../model/creative202207.py | 2 +- .../model/creative202207_response.py | 2 +- .../model/creative_create_model202207.py | 2 +- .../model/creative_update_model202207.py | 2 +- .../model/customer_list_details.py | 2 +- .../model/envelope_report_request.py | 2 +- .../model/envelope_report_status.py | 2 +- .../model/error.py | 2 +- .../model/external_account.py | 2 +- ...al_add_to_basket_ids_update_model202110.py | 2 +- .../external_add_to_basket_target202110.py | 2 +- .../model/external_auction_line_item.py | 2 +- ...external_auction_line_item_create_model.py | 2 +- ...external_auction_line_item_update_model.py | 2 +- ...xternal_audience_ids_update_model202110.py | 2 +- .../model/external_audience_target202110.py | 2 +- .../model/external_balance202110.py | 2 +- .../model/external_brand.py | 2 +- .../model/external_campaign.py | 2 +- .../model/external_campaign_attributes.py | 2 +- .../model/external_catalog_request.py | 2 +- .../model/external_catalog_status.py | 2 +- .../model/external_common_line_item.py | 2 +- .../external_editable_campaign_attributes.py | 2 +- .../model/external_keyword_target202110.py | 2 +- .../model/external_line_item_capping202110.py | 2 +- .../model/external_line_item_page202110.py | 2 +- .../external_line_item_page_category202110.py | 2 +- .../model/external_post_campaign.py | 2 +- .../external_preferred_line_item202110.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../model/external_promoted_product202110.py | 2 +- .../model/external_put_campaign.py | 2 +- .../model/external_retailer.py | 2 +- .../model/external_retailer_pages202110.py | 2 +- .../external_store_ids_update_model202110.py | 2 +- .../model/external_store_target202110.py | 2 +- .../model/files_variable_value.py | 2 +- .../model/files_variables_specification.py | 2 +- ...age_of_audiences_by_account_id_response.py | 2 +- .../model/hyperlink_variable_value.py | 2 +- ...ource_of_auction_line_item_create_model.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ...itable_campaign_attributes_and_campaign.py | 2 +- ...ith_id_of_int64_and_account_and_account.py | 2 +- ...dy_with_id_of_int64_and_brand_and_brand.py | 2 +- ...h_id_of_int64_and_campaign_and_campaign.py | 2 +- ...4_and_catalog_status_and_catalog_status.py | 2 +- ...h_id_of_int64_and_retailer_and_retailer.py | 2 +- ..._id_of_campaign_attributes_and_campaign.py | 2 +- ..._of_catalog_request_and_catalog_request.py | 2 +- .../json_api_page_response_of_account.py | 2 +- .../model/json_api_page_response_of_brand.py | 2 +- .../json_api_page_response_of_campaign.py | 2 +- .../json_api_page_response_of_retailer.py | 2 +- .../json_api_request_of_catalog_request.py | 2 +- .../json_api_single_response_of_campaign.py | 2 +- ...n_api_single_response_of_catalog_status.py | 2 +- .../model/keyword_target202110_request.py | 2 +- .../model/keyword_target202110_response.py | 2 +- .../model/map_string.py | 2 +- .../model/page_metadata.py | 2 +- ...red_line_item202110_paged_list_response.py | 2 +- .../preferred_line_item202110_response.py | 2 +- ...ed_line_item_create_model202110_request.py | 2 +- ...ed_line_item_update_model202110_request.py | 2 +- .../model/problem_details.py | 2 +- .../promoted_product202110_list_request.py | 2 +- ...moted_product202110_paged_list_response.py | 2 +- .../model/report_request.py | 2 +- .../model/report_request_attributes.py | 6 +- .../model/report_status.py | 2 +- .../model/report_status_attributes.py | 2 +- .../model/resource_of_auction_line_item.py | 2 +- ...ource_of_auction_line_item_update_model.py | 2 +- .../model/resource_of_balance202110.py | 2 +- .../resource_of_balance_campaign202110.py | 2 +- .../model/resource_of_category202204.py | 2 +- .../model/resource_of_common_line_item.py | 2 +- .../model/resource_of_creative202110.py | 2 +- .../model/resource_of_creative202207.py | 2 +- .../resource_of_preferred_line_item202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../resource_of_promoted_product202110.py | 2 +- .../model/resource_of_template.py | 2 +- .../model/retail_media_audience.py | 2 +- .../model/retail_media_audience_attributes.py | 2 +- .../model/section.py | 2 +- .../store_ids_update_model202110_request.py | 2 +- .../model/store_target202110_request.py | 2 +- .../model/store_target202110_response.py | 2 +- .../model/template.py | 2 +- .../model/template_list_response.py | 2 +- .../model/template_response.py | 2 +- .../model/template_variable.py | 2 +- .../model/template_variable_value.py | 2 +- .../model/text_variable_specification.py | 2 +- .../model/text_variable_value.py | 2 +- .../model/user_behavior_details.py | 2 +- ...of_add_to_basket_ids_update_model202110.py | 2 +- ..._resource_of_add_to_basket_target202110.py | 2 +- ...urce_of_audience_ids_update_model202110.py | 2 +- ..._type_resource_of_audience_target202110.py | 2 +- ...e_type_resource_of_keyword_target202110.py | 2 +- ...esource_of_store_ids_update_model202110.py | 2 +- ...lue_type_resource_of_store_target202110.py | 2 +- .../model_utils.py | 2 +- .../criteo_api_retailmedia_v2022_07/rest.py | 2 +- sdks/retailmedia_2022-07/docs/AnalyticsApi.md | 18 +- sdks/retailmedia_2022-07/docs/AudienceApi.md | 10 +- .../CreateRetailMediaAudienceAttributes.md | 6 +- .../docs/ReportRequestAttributes.md | 1 + sdks/retailmedia_2022-07/setup.py | 6 +- sdks/retailmedia_2022-10/README.md | 6 +- .../__init__.py | 4 +- .../api/analytics_api.py | 10 +- .../api/audience_api.py | 6 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- ...o_basket_ids_update_model202110_request.py | 2 +- .../add_to_basket_target202110_request.py | 2 +- .../add_to_basket_target202110_response.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/asset.py | 2 +- .../model/asset_resource.py | 2 +- .../model/asset_response.py | 2 +- .../auction_line_item_create_model_request.py | 2 +- .../auction_line_item_paged_list_response.py | 2 +- .../model/auction_line_item_response.py | 2 +- .../auction_line_item_update_model_request.py | 2 +- ...audience_ids_update_model202110_request.py | 2 +- .../model/audience_target202110_request.py | 2 +- .../model/audience_target202110_response.py | 2 +- .../model/bad_request.py | 2 +- .../balance202110_paged_list_response.py | 2 +- .../balance_campaign202110_list_request.py | 2 +- ...ance_campaign202110_paged_list_response.py | 2 +- .../model/category202204.py | 2 +- .../model/category202204_list_response.py | 2 +- .../model/choice_option.py | 2 +- .../model/choice_variable_specification.py | 2 +- .../model/choice_variable_value.py | 2 +- .../model/color_variable_value.py | 2 +- .../model/common_error.py | 2 +- .../common_line_item_paged_list_response.py | 2 +- .../model/common_line_item_response.py | 2 +- .../model/common_problem.py | 2 +- .../model/common_warning.py | 2 +- .../model/create_retail_media_audience.py | 2 +- ...create_retail_media_audience_attributes.py | 20 +- .../create_retail_media_audience_body.py | 2 +- .../create_retail_media_audience_request.py | 2 +- .../create_retail_media_audience_response.py | 2 +- .../model/creative202110.py | 2 +- .../model/creative202110_list_response.py | 2 +- .../model/creative202207.py | 2 +- .../model/creative202207_response.py | 2 +- .../model/creative_create_model202207.py | 2 +- .../model/creative_update_model202207.py | 2 +- .../model/customer_list_details.py | 2 +- .../model/envelope_report_request.py | 2 +- .../model/envelope_report_status.py | 2 +- .../model/error.py | 2 +- .../model/external_account.py | 2 +- ...al_add_to_basket_ids_update_model202110.py | 2 +- .../external_add_to_basket_target202110.py | 2 +- .../model/external_auction_line_item.py | 2 +- ...external_auction_line_item_create_model.py | 2 +- ...external_auction_line_item_update_model.py | 2 +- ...xternal_audience_ids_update_model202110.py | 2 +- .../model/external_audience_target202110.py | 2 +- .../model/external_balance202110.py | 2 +- .../model/external_brand.py | 2 +- .../model/external_campaign.py | 2 +- .../model/external_campaign_attributes.py | 2 +- .../model/external_catalog_request.py | 2 +- .../model/external_catalog_status.py | 2 +- .../model/external_common_line_item.py | 2 +- .../external_editable_campaign_attributes.py | 2 +- .../model/external_keyword_target202110.py | 2 +- .../model/external_line_item_capping202110.py | 2 +- .../model/external_line_item_page202110.py | 2 +- .../external_line_item_page_category202110.py | 2 +- .../model/external_post_campaign.py | 2 +- .../external_preferred_line_item202110.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../model/external_promoted_product202110.py | 2 +- .../model/external_put_campaign.py | 2 +- .../model/external_retailer.py | 2 +- .../model/external_retailer_pages202110.py | 2 +- .../external_store_ids_update_model202110.py | 2 +- .../model/external_store_target202110.py | 2 +- .../model/files_variable_value.py | 2 +- .../model/files_variables_specification.py | 2 +- ...age_of_audiences_by_account_id_response.py | 2 +- .../model/hyperlink_variable_value.py | 2 +- ...ource_of_auction_line_item_create_model.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ...itable_campaign_attributes_and_campaign.py | 2 +- ...ith_id_of_int64_and_account_and_account.py | 2 +- ...dy_with_id_of_int64_and_brand_and_brand.py | 2 +- ...h_id_of_int64_and_campaign_and_campaign.py | 2 +- ...4_and_catalog_status_and_catalog_status.py | 2 +- ...h_id_of_int64_and_retailer_and_retailer.py | 2 +- ..._id_of_campaign_attributes_and_campaign.py | 2 +- ..._of_catalog_request_and_catalog_request.py | 2 +- .../json_api_page_response_of_account.py | 2 +- .../model/json_api_page_response_of_brand.py | 2 +- .../json_api_page_response_of_campaign.py | 2 +- .../json_api_page_response_of_retailer.py | 2 +- .../json_api_request_of_catalog_request.py | 2 +- .../json_api_single_response_of_campaign.py | 2 +- ...n_api_single_response_of_catalog_status.py | 2 +- .../model/keyword_target202110_request.py | 2 +- .../model/keyword_target202110_response.py | 2 +- .../model/map_string.py | 2 +- .../model/page_metadata.py | 2 +- ...red_line_item202110_paged_list_response.py | 2 +- .../preferred_line_item202110_response.py | 2 +- ...ed_line_item_create_model202110_request.py | 2 +- ...ed_line_item_update_model202110_request.py | 2 +- .../model/problem_details.py | 2 +- .../promoted_product202110_list_request.py | 2 +- ...moted_product202110_paged_list_response.py | 2 +- .../model/report_request.py | 2 +- .../model/report_request_attributes.py | 6 +- .../model/report_status.py | 2 +- .../model/report_status_attributes.py | 2 +- .../model/resource_of_auction_line_item.py | 2 +- ...ource_of_auction_line_item_update_model.py | 2 +- .../model/resource_of_balance202110.py | 2 +- .../resource_of_balance_campaign202110.py | 2 +- .../model/resource_of_category202204.py | 2 +- .../model/resource_of_common_line_item.py | 2 +- .../model/resource_of_creative202110.py | 2 +- .../model/resource_of_creative202207.py | 2 +- .../resource_of_preferred_line_item202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../resource_of_promoted_product202110.py | 2 +- .../model/resource_of_template.py | 2 +- .../model/retail_media_audience.py | 2 +- .../model/retail_media_audience_attributes.py | 2 +- .../model/section.py | 2 +- .../store_ids_update_model202110_request.py | 2 +- .../model/store_target202110_request.py | 2 +- .../model/store_target202110_response.py | 2 +- .../model/template.py | 2 +- .../model/template_list_response.py | 2 +- .../model/template_response.py | 2 +- .../model/template_variable.py | 2 +- .../model/template_variable_value.py | 2 +- .../model/text_variable_specification.py | 2 +- .../model/text_variable_value.py | 2 +- .../model/user_behavior_details.py | 2 +- ...of_add_to_basket_ids_update_model202110.py | 2 +- ..._resource_of_add_to_basket_target202110.py | 2 +- ...urce_of_audience_ids_update_model202110.py | 2 +- ..._type_resource_of_audience_target202110.py | 2 +- ...e_type_resource_of_keyword_target202110.py | 2 +- ...esource_of_store_ids_update_model202110.py | 2 +- ...lue_type_resource_of_store_target202110.py | 2 +- .../model_utils.py | 2 +- .../criteo_api_retailmedia_v2022_10/rest.py | 2 +- sdks/retailmedia_2022-10/docs/AnalyticsApi.md | 18 +- sdks/retailmedia_2022-10/docs/AudienceApi.md | 10 +- .../CreateRetailMediaAudienceAttributes.md | 6 +- .../docs/ReportRequestAttributes.md | 1 + sdks/retailmedia_2022-10/setup.py | 6 +- sdks/retailmedia_2023-01/README.md | 6 +- .../__init__.py | 4 +- .../api/analytics_api.py | 10 +- .../api/audience_api.py | 14 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- ...o_basket_ids_update_model202110_request.py | 2 +- .../add_to_basket_target202110_request.py | 2 +- .../add_to_basket_target202110_response.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/asset.py | 2 +- .../model/asset_resource.py | 2 +- .../model/asset_response.py | 2 +- .../auction_line_item_create_model_request.py | 2 +- .../auction_line_item_paged_list_response.py | 2 +- .../model/auction_line_item_response.py | 2 +- .../auction_line_item_update_model_request.py | 2 +- ...audience_ids_update_model202110_request.py | 2 +- .../model/audience_target202110_request.py | 2 +- .../model/audience_target202110_response.py | 2 +- .../model/bad_request.py | 2 +- .../balance202110_paged_list_response.py | 2 +- .../balance_campaign202110_list_request.py | 2 +- ...ance_campaign202110_paged_list_response.py | 2 +- .../model/campaign_attributes_v202301.py | 2 +- .../model/campaign_v202301.py | 2 +- .../model/category202204.py | 2 +- .../model/category202204_list_response.py | 2 +- .../model/choice_option.py | 2 +- .../model/choice_variable_specification.py | 2 +- .../model/choice_variable_value.py | 2 +- .../model/color_variable_value.py | 2 +- .../model/common_error.py | 2 +- .../common_line_item_paged_list_response.py | 2 +- .../model/common_line_item_response.py | 2 +- .../model/common_problem.py | 2 +- .../model/common_status_code_response.py | 2 +- .../model/common_warning.py | 2 +- .../model/create_retail_media_audience.py | 2 +- ...create_retail_media_audience_attributes.py | 20 +- .../create_retail_media_audience_body.py | 2 +- .../create_retail_media_audience_request.py | 2 +- .../create_retail_media_audience_response.py | 2 +- .../model/create_retail_media_audience_v2.py | 2 +- ...ate_retail_media_audience_v2_attributes.py | 8 +- .../create_retail_media_audience_v2_data.py | 2 +- ...create_retail_media_audience_v2_request.py | 2 +- .../model/create_user_behavior_segment_v2.py | 14 +- .../model/creative202110.py | 2 +- .../model/creative202110_list_response.py | 2 +- .../model/creative202207.py | 2 +- .../model/creative202207_response.py | 2 +- .../model/creative_create_model202207.py | 2 +- .../model/creative_update_model202207.py | 2 +- .../model/customer_list_details.py | 2 +- .../editable_campaign_attributes_v202301.py | 2 +- .../model/envelope_report_request.py | 2 +- .../model/envelope_report_status.py | 2 +- .../model/error.py | 2 +- .../model/external_account.py | 2 +- ...al_add_to_basket_ids_update_model202110.py | 2 +- .../external_add_to_basket_target202110.py | 2 +- .../model/external_auction_line_item.py | 2 +- ...external_auction_line_item_create_model.py | 2 +- ...external_auction_line_item_update_model.py | 2 +- ...xternal_audience_ids_update_model202110.py | 2 +- .../model/external_audience_target202110.py | 2 +- .../model/external_balance202110.py | 2 +- .../model/external_brand.py | 2 +- .../model/external_catalog_request.py | 2 +- .../model/external_catalog_status.py | 2 +- .../model/external_common_line_item.py | 2 +- .../model/external_keyword_target202110.py | 2 +- .../model/external_line_item_capping202110.py | 2 +- .../model/external_line_item_page202110.py | 2 +- .../external_line_item_page_category202110.py | 2 +- .../external_preferred_line_item202110.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../model/external_promoted_product202110.py | 2 +- .../model/external_retailer.py | 2 +- .../model/external_retailer_pages202110.py | 2 +- .../external_store_ids_update_model202110.py | 2 +- .../model/external_store_target202110.py | 2 +- .../model/files_variable_value.py | 2 +- .../model/files_variables_specification.py | 2 +- ...age_of_audiences_by_account_id_response.py | 2 +- .../model/hyperlink_variable_value.py | 2 +- ...ource_of_auction_line_item_create_model.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ...attributes_v202301_and_campaign_v202301.py | 2 +- ...ith_id_of_int64_and_account_and_account.py | 2 +- ...dy_with_id_of_int64_and_brand_and_brand.py | 2 +- ...d_campaign_v202301_and_campaign_v202301.py | 2 +- ...4_and_catalog_status_and_catalog_status.py | 2 +- ...ltipliers_and_line_item_bid_multipliers.py | 2 +- ...h_id_of_int64_and_retailer_and_retailer.py | 2 +- ...attributes_v202301_and_campaign_v202301.py | 2 +- ..._of_catalog_request_and_catalog_request.py | 2 +- .../json_api_page_response_of_account.py | 2 +- .../model/json_api_page_response_of_brand.py | 2 +- ...n_api_page_response_of_campaign_v202301.py | 2 +- .../json_api_page_response_of_retailer.py | 2 +- .../json_api_request_of_catalog_request.py | 2 +- ...api_single_response_of_campaign_v202301.py | 2 +- ...n_api_single_response_of_catalog_status.py | 2 +- ...e_response_of_line_item_bid_multipliers.py | 2 +- .../model/keyword_target202110_request.py | 2 +- .../model/keyword_target202110_response.py | 2 +- .../model/line_item_bid_multipliers.py | 2 +- .../line_item_bid_multipliers_request.py | 2 +- .../line_item_bid_multipliers_response.py | 2 +- .../model/map_string.py | 2 +- .../model/page_metadata.py | 2 +- .../model/post_campaign_v202301.py | 2 +- ...red_line_item202110_paged_list_response.py | 2 +- .../preferred_line_item202110_response.py | 2 +- ...ed_line_item_create_model202110_request.py | 2 +- ...ed_line_item_update_model202110_request.py | 2 +- .../model/problem_details.py | 2 +- .../promoted_product202110_list_request.py | 2 +- ...moted_product202110_paged_list_response.py | 2 +- .../model/put_campaign_v202301.py | 2 +- .../model/report_request.py | 2 +- .../model/report_request_attributes.py | 6 +- .../model/report_status.py | 2 +- .../model/report_status_attributes.py | 2 +- .../model/resource_of_auction_line_item.py | 2 +- ...ource_of_auction_line_item_update_model.py | 2 +- .../model/resource_of_balance202110.py | 2 +- .../resource_of_balance_campaign202110.py | 2 +- .../model/resource_of_category202204.py | 2 +- .../model/resource_of_common_line_item.py | 2 +- .../model/resource_of_creative202110.py | 2 +- .../model/resource_of_creative202207.py | 2 +- .../resource_of_line_item_bid_multipliers.py | 2 +- .../resource_of_preferred_line_item202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../resource_of_promoted_product202110.py | 2 +- .../model/resource_of_template.py | 2 +- .../model/retail_media_audience.py | 2 +- .../model/retail_media_audience_attributes.py | 2 +- .../model/retail_media_audience_v2.py | 2 +- .../retail_media_audience_v2_attributes.py | 8 +- .../retail_media_audience_v2_list_response.py | 2 +- .../retail_media_audience_v2_response.py | 2 +- .../model/section.py | 2 +- .../store_ids_update_model202110_request.py | 2 +- .../model/store_target202110_request.py | 2 +- .../model/store_target202110_response.py | 2 +- .../model/template.py | 2 +- .../model/template_list_response.py | 2 +- .../model/template_response.py | 2 +- .../model/template_variable.py | 2 +- .../model/template_variable_value.py | 2 +- .../model/text_variable_specification.py | 2 +- .../model/text_variable_value.py | 2 +- .../model/user_behavior_details.py | 2 +- .../model/user_behavior_details_v2.py | 2 +- ...of_add_to_basket_ids_update_model202110.py | 2 +- ..._resource_of_add_to_basket_target202110.py | 2 +- ...urce_of_audience_ids_update_model202110.py | 2 +- ..._type_resource_of_audience_target202110.py | 2 +- ...e_type_resource_of_keyword_target202110.py | 2 +- ...esource_of_store_ids_update_model202110.py | 2 +- ...lue_type_resource_of_store_target202110.py | 2 +- .../model_utils.py | 2 +- .../criteo_api_retailmedia_v2023_01/rest.py | 2 +- sdks/retailmedia_2023-01/docs/AnalyticsApi.md | 18 +- sdks/retailmedia_2023-01/docs/AudienceApi.md | 28 +- .../CreateRetailMediaAudienceAttributes.md | 6 +- .../CreateRetailMediaAudienceV2Attributes.md | 2 +- .../docs/CreateUserBehaviorSegmentV2.md | 4 +- .../docs/ReportRequestAttributes.md | 1 + .../docs/RetailMediaAudienceV2Attributes.md | 2 +- sdks/retailmedia_2023-01/setup.py | 6 +- sdks/retailmedia_2023-04/README.md | 6 +- .../__init__.py | 4 +- .../api/analytics_api.py | 10 +- .../api/audience_api.py | 14 +- .../api/campaign_api.py | 2 +- .../api/gateway_api.py | 2 +- .../api_client.py | 4 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- ...o_basket_ids_update_model202110_request.py | 2 +- .../add_to_basket_target202110_request.py | 2 +- .../add_to_basket_target202110_response.py | 2 +- .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- .../model/asset.py | 2 +- .../model/asset_resource.py | 2 +- .../model/asset_response.py | 2 +- .../auction_line_item_create_model_request.py | 2 +- .../auction_line_item_paged_list_response.py | 2 +- .../model/auction_line_item_response.py | 2 +- .../auction_line_item_update_model_request.py | 2 +- ...audience_ids_update_model202110_request.py | 2 +- .../model/audience_target202110_request.py | 2 +- .../model/audience_target202110_response.py | 2 +- .../model/bad_request.py | 2 +- .../balance202110_paged_list_response.py | 2 +- .../balance_campaign202110_list_request.py | 2 +- ...ance_campaign202110_paged_list_response.py | 2 +- .../model/campaign_attributes_v202301.py | 2 +- .../model/campaign_v202301.py | 2 +- .../model/category202204.py | 2 +- .../model/category202204_list_response.py | 2 +- .../model/choice_option.py | 2 +- .../model/choice_variable_specification.py | 2 +- .../model/choice_variable_value.py | 2 +- .../model/color_variable_value.py | 2 +- .../model/common_error.py | 2 +- .../common_line_item_paged_list_response.py | 2 +- .../model/common_line_item_response.py | 2 +- .../model/common_problem.py | 2 +- .../model/common_status_code_response.py | 2 +- .../model/common_warning.py | 2 +- .../model/create_retail_media_audience.py | 2 +- ...create_retail_media_audience_attributes.py | 20 +- .../create_retail_media_audience_body.py | 2 +- .../create_retail_media_audience_request.py | 2 +- .../create_retail_media_audience_response.py | 2 +- .../model/create_retail_media_audience_v2.py | 2 +- ...ate_retail_media_audience_v2_attributes.py | 8 +- .../create_retail_media_audience_v2_data.py | 2 +- ...create_retail_media_audience_v2_request.py | 2 +- .../model/create_user_behavior_segment_v2.py | 14 +- .../model/creative202110.py | 2 +- .../model/creative202110_list_response.py | 2 +- .../model/creative202210.py | 2 +- .../model/creative202210_list_response.py | 2 +- .../model/creative202210_response.py | 2 +- .../model/creative_create_model202207.py | 2 +- .../model/creative_update_model202207.py | 2 +- .../model/customer_list_details.py | 2 +- .../editable_campaign_attributes_v202301.py | 2 +- .../model/envelope_report_request.py | 2 +- .../model/envelope_report_status.py | 2 +- .../model/error.py | 2 +- .../model/external_account.py | 2 +- ...al_add_to_basket_ids_update_model202110.py | 2 +- .../external_add_to_basket_target202110.py | 2 +- .../model/external_auction_line_item.py | 2 +- ...external_auction_line_item_create_model.py | 2 +- ...external_auction_line_item_update_model.py | 2 +- ...xternal_audience_ids_update_model202110.py | 2 +- .../model/external_audience_target202110.py | 2 +- .../model/external_balance202110.py | 2 +- .../model/external_brand.py | 2 +- .../model/external_catalog_request.py | 2 +- .../model/external_catalog_status.py | 2 +- .../model/external_common_line_item.py | 2 +- .../model/external_keyword_target202110.py | 2 +- .../model/external_line_item_capping202110.py | 2 +- .../model/external_line_item_page202110.py | 2 +- .../external_line_item_page_category202110.py | 2 +- .../external_preferred_line_item202110.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../model/external_promoted_product202110.py | 2 +- .../model/external_retailer.py | 2 +- .../model/external_retailer_pages202110.py | 2 +- .../external_store_ids_update_model202110.py | 2 +- .../model/external_store_target202110.py | 2 +- .../model/files_variable_value.py | 2 +- .../model/files_variables_specification.py | 2 +- ...age_of_audiences_by_account_id_response.py | 2 +- .../model/hyperlink_variable_value.py | 2 +- ...ource_of_auction_line_item_create_model.py | 2 +- ..._preferred_line_item_create_model202110.py | 2 +- ...attributes_v202301_and_campaign_v202301.py | 2 +- ...ith_id_of_int64_and_account_and_account.py | 2 +- ...dy_with_id_of_int64_and_brand_and_brand.py | 2 +- ...d_campaign_v202301_and_campaign_v202301.py | 2 +- ...4_and_catalog_status_and_catalog_status.py | 2 +- ...ltipliers_and_line_item_bid_multipliers.py | 2 +- ...h_id_of_int64_and_retailer_and_retailer.py | 2 +- ...attributes_v202301_and_campaign_v202301.py | 2 +- ..._of_catalog_request_and_catalog_request.py | 2 +- .../json_api_page_response_of_account.py | 2 +- .../model/json_api_page_response_of_brand.py | 2 +- ...n_api_page_response_of_campaign_v202301.py | 2 +- .../json_api_page_response_of_retailer.py | 2 +- .../json_api_request_of_catalog_request.py | 2 +- ...api_single_response_of_campaign_v202301.py | 2 +- ...n_api_single_response_of_catalog_status.py | 2 +- ...e_response_of_line_item_bid_multipliers.py | 2 +- .../model/keyword_target202110_request.py | 2 +- .../model/keyword_target202110_response.py | 2 +- .../model/line_item_bid_multipliers.py | 2 +- .../line_item_bid_multipliers_request.py | 2 +- .../line_item_bid_multipliers_response.py | 2 +- .../model/map_string.py | 2 +- .../model/page_metadata.py | 2 +- .../model/page_type_environment.py | 2 +- .../model/post_campaign_v202301.py | 2 +- ...red_line_item202110_paged_list_response.py | 2 +- .../preferred_line_item202110_response.py | 2 +- ...ed_line_item_create_model202110_request.py | 2 +- ...ed_line_item_update_model202110_request.py | 2 +- .../model/problem_details.py | 2 +- .../promoted_product202110_list_request.py | 2 +- ...moted_product202110_paged_list_response.py | 2 +- .../model/put_campaign_v202301.py | 2 +- .../model/report_request.py | 2 +- .../model/report_request_attributes.py | 6 +- .../model/report_status.py | 2 +- .../model/report_status_attributes.py | 2 +- .../model/resource_of_auction_line_item.py | 2 +- ...ource_of_auction_line_item_update_model.py | 2 +- .../model/resource_of_balance202110.py | 2 +- .../resource_of_balance_campaign202110.py | 2 +- .../model/resource_of_category202204.py | 2 +- .../model/resource_of_common_line_item.py | 2 +- .../model/resource_of_creative202110.py | 2 +- .../model/resource_of_creative202210.py | 2 +- .../resource_of_line_item_bid_multipliers.py | 2 +- .../resource_of_preferred_line_item202110.py | 2 +- ..._preferred_line_item_update_model202110.py | 2 +- .../resource_of_promoted_product202110.py | 2 +- .../model/resource_of_template.py | 2 +- .../model/retail_media_audience.py | 2 +- .../model/retail_media_audience_attributes.py | 2 +- .../model/retail_media_audience_v2.py | 2 +- .../retail_media_audience_v2_attributes.py | 8 +- .../retail_media_audience_v2_list_response.py | 2 +- .../retail_media_audience_v2_response.py | 2 +- ...dia_externalv1_add_remove_keyword_model.py | 2 +- ...ia_externalv1_add_remove_keywords_model.py | 2 +- ...nalv1_add_remove_keywords_model_request.py | 2 +- ...alv1_add_remove_keywords_model_resource.py | 2 +- ...l_media_externalv1_input_keywords_model.py | 2 +- ...ail_media_externalv1_keyword_data_model.py | 2 +- .../retail_media_externalv1_keywords_model.py | 2 +- ...edia_externalv1_keywords_model_resource.py | 2 +- ...edia_externalv1_keywords_model_response.py | 2 +- ...retail_media_externalv1_problem_details.py | 2 +- ..._media_externalv1_proposal_status_model.py | 2 +- ...ternalv1_proposal_status_model_resource.py | 2 +- ...ternalv1_proposal_status_model_response.py | 2 +- ...etail_media_externalv1_resource_outcome.py | 2 +- .../retail_media_externalv1_set_bid_model.py | 2 +- .../retail_media_externalv1_set_bids_model.py | 2 +- ...media_externalv1_set_bids_model_request.py | 2 +- ...edia_externalv1_set_bids_model_resource.py | 2 +- .../model/section.py | 2 +- .../store_ids_update_model202110_request.py | 2 +- .../model/store_target202110_request.py | 2 +- .../model/store_target202110_response.py | 2 +- .../model/template.py | 2 +- .../model/template_list_response.py | 2 +- .../model/template_response.py | 2 +- .../model/template_variable.py | 2 +- .../model/template_variable_value.py | 2 +- .../model/text_variable_specification.py | 2 +- .../model/text_variable_value.py | 2 +- .../model/user_behavior_details.py | 2 +- .../model/user_behavior_details_v2.py | 2 +- ...of_add_to_basket_ids_update_model202110.py | 2 +- ..._resource_of_add_to_basket_target202110.py | 2 +- ...urce_of_audience_ids_update_model202110.py | 2 +- ..._type_resource_of_audience_target202110.py | 2 +- ...e_type_resource_of_keyword_target202110.py | 2 +- ...esource_of_store_ids_update_model202110.py | 2 +- ...lue_type_resource_of_store_target202110.py | 2 +- .../model_utils.py | 2 +- .../criteo_api_retailmedia_v2023_04/rest.py | 2 +- sdks/retailmedia_2023-04/docs/AnalyticsApi.md | 18 +- sdks/retailmedia_2023-04/docs/AudienceApi.md | 28 +- .../CreateRetailMediaAudienceAttributes.md | 6 +- .../CreateRetailMediaAudienceV2Attributes.md | 2 +- .../docs/CreateUserBehaviorSegmentV2.md | 4 +- .../docs/ReportRequestAttributes.md | 1 + .../docs/RetailMediaAudienceV2Attributes.md | 2 +- sdks/retailmedia_2023-04/setup.py | 6 +- sdks/retailmedia_2023-07/.gitignore | 66 + sdks/retailmedia_2023-07/.gitlab-ci.yml | 24 + .../.openapi-generator/FILES | 412 + .../.openapi-generator/VERSION | 1 + sdks/retailmedia_2023-07/README.md | 254 + .../__init__.py | 31 + .../api/__init__.py | 3 + .../api/analytics_api.py | 596 ++ .../api/audience_api.py | 644 ++ .../api/campaign_api.py | 8938 +++++++++++++++++ .../api/gateway_api.py | 161 + .../api_client.py | 898 ++ .../api_client_builder.py | 37 + .../apis/__init__.py | 20 + .../configuration.py | 461 + .../criteo_api_client.py | 11 + .../criteo_auth.py | 121 + .../criteo_rest.py | 75 + .../exceptions.py | 158 + .../flow_constants.py | 5 + .../model/__init__.py | 5 + ...o_basket_ids_update_model202110_request.py | 269 + .../add_to_basket_target202110_request.py | 269 + .../add_to_basket_target202110_response.py | 281 + .../model/application_summary_model.py | 279 + .../application_summary_model_resource.py | 273 + .../application_summary_model_response.py | 285 + .../model/asset.py | 277 + .../model/asset_resource.py | 277 + .../model/asset_response.py | 285 + .../model/async_report_response.py | 281 + .../auction_line_item_create_model_request.py | 269 + .../auction_line_item_paged_list_response.py | 287 + .../model/auction_line_item_response.py | 281 + .../auction_line_item_update_model_request.py | 269 + ...audience_ids_update_model202110_request.py | 269 + .../model/audience_target202110_request.py | 269 + .../model/audience_target202110_response.py | 281 + .../balance202110_paged_list_response.py | 287 + .../balance_campaign202110_list_request.py | 269 + ...ance_campaign202110_paged_list_response.py | 287 + .../model/campaign_attributes_v202301.py | 360 + .../model/campaign_report.py | 373 + .../model/campaign_report_request.py | 269 + .../model/campaign_report_resource.py | 273 + .../model/campaign_v202301.py | 407 + .../model/category202204.py | 281 + .../model/category202204_list_response.py | 281 + .../model/choice_option.py | 281 + .../model/choice_variable_specification.py | 283 + .../model/choice_variable_value.py | 269 + .../model/color_variable_value.py | 274 + .../model/common_error.py} | 81 +- .../common_line_item_paged_list_response.py | 287 + .../model/common_line_item_response.py | 281 + .../model/common_problem.py | 305 + .../model/common_status_code_response.py | 275 + .../model/common_warning.py | 301 + .../model/create_retail_media_audience.py | 287 + ...create_retail_media_audience_attributes.py | 310 + .../create_retail_media_audience_body.py | 281 + .../create_retail_media_audience_request.py | 275 + .../create_retail_media_audience_response.py | 283 + .../model/create_retail_media_audience_v2.py | 287 + ...ate_retail_media_audience_v2_attributes.py | 287 + .../create_retail_media_audience_v2_data.py | 281 + ...create_retail_media_audience_v2_request.py | 275 + .../model/create_user_behavior_segment_v2.py | 309 + .../model/creative202110.py | 299 + .../model/creative202110_list_response.py | 281 + .../model/creative202210.py | 355 + .../model/creative202210_list_response.py | 281 + .../model/creative202210_response.py | 281 + .../model/creative_create_model202207.py | 297 + .../model/creative_update_model202207.py | 297 + .../model/customer_list_details.py | 269 + .../editable_campaign_attributes_v202301.py | 351 + .../model/export_report_column.py | 321 + .../model/export_report_meta_data.py | 273 + .../model/external_account.py | 322 + ...al_add_to_basket_ids_update_model202110.py | 267 + .../external_add_to_basket_target202110.py | 282 + .../model/external_auction_line_item.py | 366 + ...external_auction_line_item_create_model.py | 338 + ...external_auction_line_item_update_model.py | 338 + ...xternal_audience_ids_update_model202110.py | 269 + .../model/external_audience_target202110.py | 280 + .../model/external_balance202110.py | 335 + .../model/external_brand.py} | 28 +- .../model/external_catalog_request.py | 270 + .../model/external_catalog_status.py | 312 + .../model/external_common_line_item.py | 347 + .../model/external_keyword_target202110.py | 274 + .../model/external_line_item_capping202110.py | 280 + .../model/external_line_item_page202110.py | 293 + .../external_line_item_page_category202110.py | 273 + .../external_preferred_line_item202110.py | 373 + ..._preferred_line_item_create_model202110.py | 345 + ..._preferred_line_item_update_model202110.py | 335 + .../model/external_promoted_product202110.py | 263 + .../model/external_retailer.py | 281 + .../model/external_retailer_pages202110.py | 263 + .../external_store_ids_update_model202110.py | 269 + .../model/external_store_target202110.py | 280 + .../model/files_variable_value.py | 271 + .../model/files_variables_specification.py | 290 + ...age_of_audiences_by_account_id_response.py | 295 + .../model/hyperlink_variable_value.py | 269 + ...ource_of_auction_line_item_create_model.py | 273 + ..._preferred_line_item_create_model202110.py | 273 + ...attributes_v202301_and_campaign_v202301.py | 285 + ...ith_id_of_int64_and_account_and_account.py | 285 + ...dy_with_id_of_int64_and_brand_and_brand.py | 285 + ...d_campaign_v202301_and_campaign_v202301.py | 285 + ...4_and_catalog_status_and_catalog_status.py | 285 + ...ltipliers_and_line_item_bid_multipliers.py | 285 + ...h_id_of_int64_and_retailer_and_retailer.py | 285 + ...attributes_v202301_and_campaign_v202301.py | 279 + ..._of_catalog_request_and_catalog_request.py | 279 + .../json_api_page_response_of_account.py | 293 + .../model/json_api_page_response_of_brand.py | 293 + ...n_api_page_response_of_campaign_v202301.py | 295 + .../json_api_page_response_of_retailer.py | 293 + .../json_api_request_of_catalog_request.py | 269 + ...api_single_response_of_campaign_v202301.py | 287 + ...n_api_single_response_of_catalog_status.py | 287 + ...e_response_of_line_item_bid_multipliers.py | 287 + .../model/keyword_target202110_request.py | 269 + .../model/keyword_target202110_response.py | 281 + .../model/line_item_bid_multipliers.py | 291 + .../line_item_bid_multipliers_request.py | 269 + .../line_item_bid_multipliers_response.py | 281 + .../model/line_item_report.py | 383 + .../model/line_item_report_request.py | 269 + .../model/line_item_report_resource.py | 273 + .../model/page_metadata.py | 291 + .../model/page_type_environment.py | 287 + .../model/post_campaign_v202301.py | 269 + ...red_line_item202110_paged_list_response.py | 287 + .../preferred_line_item202110_response.py | 281 + ...ed_line_item_create_model202110_request.py | 269 + ...ed_line_item_update_model202110_request.py | 269 + .../model/problem_details.py | 305 + .../promoted_product202110_list_request.py | 269 + ...moted_product202110_paged_list_response.py | 287 + .../model/put_campaign_v202301.py | 269 + .../model/report_data_response_resource.py | 267 + .../model/report_outcome.py | 275 + .../model/report_response.py | 287 + .../model/resource_of_auction_line_item.py | 277 + ...ource_of_auction_line_item_update_model.py | 277 + .../model/resource_of_balance202110.py | 277 + .../resource_of_balance_campaign202110.py | 271 + .../model/resource_of_category202204.py | 277 + .../model/resource_of_common_line_item.py | 277 + .../model/resource_of_creative202110.py | 277 + .../model/resource_of_creative202210.py | 277 + .../resource_of_line_item_bid_multipliers.py | 277 + .../resource_of_preferred_line_item202110.py | 277 + ..._preferred_line_item_update_model202110.py | 277 + .../resource_of_promoted_product202110.py | 277 + .../model/resource_of_template.py | 277 + .../model/retail_media_audience.py | 297 + .../model/retail_media_audience_attributes.py | 291 + .../model/retail_media_audience_v2.py | 291 + .../retail_media_audience_v2_attributes.py | 291 + .../retail_media_audience_v2_list_response.py | 293 + .../retail_media_audience_v2_response.py | 281 + ...dia_externalv1_add_remove_keyword_model.py | 280 + ...ia_externalv1_add_remove_keywords_model.py | 271 + ...nalv1_add_remove_keywords_model_request.py | 269 + ...alv1_add_remove_keywords_model_resource.py | 283 + ...l_media_externalv1_input_keywords_model.py | 277 + ...ail_media_externalv1_keyword_data_model.py | 302 + .../retail_media_externalv1_keywords_model.py | 275 + ...edia_externalv1_keywords_model_resource.py | 283 + ...edia_externalv1_keywords_model_response.py | 285 + ...retail_media_externalv1_problem_details.py | 295 + ...media_externalv1_proposal_status_model.py} | 97 +- ...ternalv1_proposal_status_model_resource.py | 283 + ...ternalv1_proposal_status_model_response.py | 285 + ...etail_media_externalv1_resource_outcome.py | 279 + .../retail_media_externalv1_set_bid_model.py | 271 + .../retail_media_externalv1_set_bids_model.py | 271 + ...media_externalv1_set_bids_model_request.py | 269 + ...edia_externalv1_set_bids_model_resource.py | 283 + .../model/section.py | 281 + .../model/status_response.py | 297 + .../model/status_response_resource.py | 277 + .../store_ids_update_model202110_request.py | 269 + .../model/store_target202110_request.py | 269 + .../model/store_target202110_response.py | 281 + .../model/template.py | 345 + .../model/template_list_response.py | 281 + .../model/template_response.py | 281 + .../model/template_variable.py | 310 + .../model/template_variable_value.py | 303 + .../model/text_variable_specification.py | 263 + .../model/text_variable_value.py | 269 + .../model/user_behavior_details.py | 306 + .../model/user_behavior_details_v2.py | 279 + ...of_add_to_basket_ids_update_model202110.py | 273 + ..._resource_of_add_to_basket_target202110.py | 273 + ...urce_of_audience_ids_update_model202110.py | 273 + ..._type_resource_of_audience_target202110.py | 273 + ...e_type_resource_of_keyword_target202110.py | 273 + ...esource_of_store_ids_update_model202110.py | 273 + ...lue_type_resource_of_store_target202110.py | 273 + .../model_utils.py | 2058 ++++ .../models/__init__.py | 198 + .../criteo_api_retailmedia_v2023_07/rest.py | 352 + .../AddToBasketIdsUpdateModel202110Request.md | 13 + .../docs/AddToBasketTarget202110Request.md | 13 + .../docs/AddToBasketTarget202110Response.md | 15 + sdks/retailmedia_2023-07/docs/AnalyticsApi.md | 412 + .../docs/ApplicationSummaryModel.md | 17 + .../docs/ApplicationSummaryModelResource.md | 14 + .../docs/ApplicationSummaryModelResponse.md | 15 + sdks/retailmedia_2023-07/docs/Asset.md | 15 + .../retailmedia_2023-07/docs/AssetResource.md | 15 + .../retailmedia_2023-07/docs/AssetResponse.md | 15 + .../docs/AsyncReportResponse.md | 15 + .../docs/AuctionLineItemCreateModelRequest.md | 13 + .../docs/AuctionLineItemPagedListResponse.md | 16 + .../docs/AuctionLineItemResponse.md | 15 + .../docs/AuctionLineItemUpdateModelRequest.md | 13 + sdks/retailmedia_2023-07/docs/AudienceApi.md | 451 + .../AudienceIdsUpdateModel202110Request.md | 13 + .../docs/AudienceTarget202110Request.md | 13 + .../docs/AudienceTarget202110Response.md | 15 + .../docs/Balance202110PagedListResponse.md | 16 + .../docs/BalanceCampaign202110ListRequest.md | 13 + .../BalanceCampaign202110PagedListResponse.md | 16 + sdks/retailmedia_2023-07/docs/CampaignApi.md | 6219 ++++++++++++ .../docs/CampaignAttributesV202301.md | 25 + .../docs/CampaignReport.md | 24 + .../docs/CampaignReportRequest.md | 13 + .../docs/CampaignReportResource.md | 14 + .../docs/CampaignV202301.md | 32 + .../docs/Category202204.md | 15 + .../docs/Category202204ListResponse.md | 15 + sdks/retailmedia_2023-07/docs/ChoiceOption.md | 14 + .../docs/ChoiceVariableSpecification.md | 15 + .../docs/ChoiceVariableValue.md | 13 + .../docs/ColorVariableValue.md | 13 + sdks/retailmedia_2023-07/docs/CommonError.md | 20 + .../docs/CommonLineItemPagedListResponse.md | 16 + .../docs/CommonLineItemResponse.md | 15 + .../retailmedia_2023-07/docs/CommonProblem.md | 21 + .../docs/CommonStatusCodeResponse.md | 14 + .../docs/CommonWarning.md} | 18 +- .../docs/CreateRetailMediaAudience.md | 15 + .../CreateRetailMediaAudienceAttributes.md | 18 + .../docs/CreateRetailMediaAudienceBody.md | 14 + .../docs/CreateRetailMediaAudienceRequest.md | 13 + .../docs/CreateRetailMediaAudienceResponse.md | 15 + .../docs/CreateRetailMediaAudienceV2.md | 15 + .../CreateRetailMediaAudienceV2Attributes.md | 15 + .../docs/CreateRetailMediaAudienceV2Data.md | 14 + .../CreateRetailMediaAudienceV2Request.md | 13 + .../docs/CreateUserBehaviorSegmentV2.md | 18 + .../docs/Creative202110.md | 18 + .../docs/Creative202110ListResponse.md | 15 + .../docs/Creative202210.md | 24 + .../docs/Creative202210ListResponse.md | 15 + .../docs/Creative202210Response.md | 15 + .../docs/CreativeCreateModel202207.md | 17 + .../docs/CreativeUpdateModel202207.md | 17 + .../docs/CustomerListDetails.md | 13 + .../docs/EditableCampaignAttributesV202301.md | 23 + .../docs/ExportReportColumn.md | 21 + .../docs/ExportReportMetaData.md | 14 + .../docs/ExternalAccount.md | 19 + ...ExternalAddToBasketIdsUpdateModel202110.md | 14 + .../docs/ExternalAddToBasketTarget202110.md | 15 + .../docs/ExternalAuctionLineItem.md | 29 + .../ExternalAuctionLineItemCreateModel.md | 24 + .../ExternalAuctionLineItemUpdateModel.md | 23 + .../ExternalAudienceIdsUpdateModel202110.md | 13 + .../docs/ExternalAudienceTarget202110.md | 14 + .../docs/ExternalBalance202110.md | 23 + .../retailmedia_2023-07/docs/ExternalBrand.md | 13 + .../docs/ExternalCatalogRequest.md | 14 + .../docs/ExternalCatalogStatus.md | 19 + .../docs/ExternalCommonLineItem.md | 24 + .../docs/ExternalKeywordTarget202110.md | 13 + .../docs/ExternalLineItemCapping202110.md | 14 + .../docs/ExternalLineItemPage202110.md | 15 + .../ExternalLineItemPageCategory202110.md | 14 + .../docs/ExternalPreferredLineItem202110.md | 27 + ...ernalPreferredLineItemCreateModel202110.md | 22 + ...ernalPreferredLineItemUpdateModel202110.md | 21 + .../docs/ExternalPromotedProduct202110.md | 13 + .../docs/ExternalRetailer.md | 14 + .../docs/ExternalRetailerPages202110.md | 13 + .../docs/ExternalStoreIdsUpdateModel202110.md | 13 + .../docs/ExternalStoreTarget202110.md | 14 + .../docs/FilesVariableValue.md | 13 + .../docs/FilesVariablesSpecification.md | 16 + sdks/retailmedia_2023-07/docs/GatewayApi.md | 90 + .../GetPageOfAudiencesByAccountIdResponse.md | 16 + .../docs/HyperlinkVariableValue.md | 13 + ...putResourceOfAuctionLineItemCreateModel.md | 14 + ...rceOfPreferredLineItemCreateModel202110.md | 14 + ...aignAttributesV202301AndCampaignV202301.md | 15 + ...piBodyWithIdOfInt64AndAccountAndAccount.md | 15 + ...sonApiBodyWithIdOfInt64AndBrandAndBrand.md | 15 + ...t64AndCampaignV202301AndCampaignV202301.md | 15 + ...OfInt64AndCatalogStatusAndCatalogStatus.md | 15 + ...BidMultipliersAndLineItemBidMultipliers.md | 15 + ...BodyWithIdOfInt64AndRetailerAndRetailer.md | 15 + ...aignAttributesV202301AndCampaignV202301.md | 14 + ...houtIdOfCatalogRequestAndCatalogRequest.md | 14 + .../docs/JsonApiPageResponseOfAccount.md | 16 + .../docs/JsonApiPageResponseOfBrand.md | 16 + .../JsonApiPageResponseOfCampaignV202301.md | 16 + .../docs/JsonApiPageResponseOfRetailer.md | 16 + .../docs/JsonApiRequestOfCatalogRequest.md | 13 + .../JsonApiSingleResponseOfCampaignV202301.md | 15 + .../JsonApiSingleResponseOfCatalogStatus.md | 15 + ...iSingleResponseOfLineItemBidMultipliers.md | 15 + .../docs/KeywordTarget202110Request.md | 13 + .../docs/KeywordTarget202110Response.md | 15 + .../docs/LineItemBidMultipliers.md | 20 + .../docs/LineItemBidMultipliersRequest.md | 13 + .../docs/LineItemBidMultipliersResponse.md | 15 + .../docs/LineItemReport.md | 25 + .../docs/LineItemReportRequest.md | 13 + .../docs/LineItemReportResource.md | 14 + sdks/retailmedia_2023-07/docs/PageMetadata.md | 18 + .../docs/PageTypeEnvironment.md | 14 + .../docs/PostCampaignV202301.md | 13 + ...referredLineItem202110PagedListResponse.md | 16 + .../docs/PreferredLineItem202110Response.md | 15 + ...eferredLineItemCreateModel202110Request.md | 13 + ...eferredLineItemUpdateModel202110Request.md | 13 + .../docs/ProblemDetails.md | 21 + .../docs/PromotedProduct202110ListRequest.md | 13 + .../PromotedProduct202110PagedListResponse.md | 16 + .../docs/PutCampaignV202301.md | 13 + .../docs/ReportDataResponseResource.md | 14 + .../retailmedia_2023-07/docs/ReportOutcome.md | 14 + .../docs/ReportResponse.md | 16 + .../docs/ResourceOfAuctionLineItem.md | 15 + .../ResourceOfAuctionLineItemUpdateModel.md | 15 + .../docs/ResourceOfBalance202110.md | 15 + .../docs/ResourceOfBalanceCampaign202110.md | 15 + .../docs/ResourceOfCategory202204.md | 15 + .../docs/ResourceOfCommonLineItem.md | 15 + .../docs/ResourceOfCreative202110.md | 15 + .../docs/ResourceOfCreative202210.md | 15 + .../docs/ResourceOfLineItemBidMultipliers.md | 15 + .../docs/ResourceOfPreferredLineItem202110.md | 15 + ...rceOfPreferredLineItemUpdateModel202110.md | 15 + .../docs/ResourceOfPromotedProduct202110.md | 15 + .../docs/ResourceOfTemplate.md | 15 + .../docs/RetailMediaAudience.md | 16 + .../docs/RetailMediaAudienceAttributes.md | 16 + .../docs/RetailMediaAudienceV2.md | 15 + .../docs/RetailMediaAudienceV2Attributes.md | 16 + .../docs/RetailMediaAudienceV2ListResponse.md | 16 + .../docs/RetailMediaAudienceV2Response.md | 15 + ...ailMediaExternalv1AddRemoveKeywordModel.md | 15 + ...ilMediaExternalv1AddRemoveKeywordsModel.md | 13 + ...Externalv1AddRemoveKeywordsModelRequest.md | 13 + ...xternalv1AddRemoveKeywordsModelResource.md | 15 + ...RetailMediaExternalv1InputKeywordsModel.md | 15 + .../RetailMediaExternalv1KeywordDataModel.md | 18 + .../RetailMediaExternalv1KeywordsModel.md | 14 + ...ailMediaExternalv1KeywordsModelResource.md | 15 + ...ailMediaExternalv1KeywordsModelResponse.md | 15 + .../RetailMediaExternalv1ProblemDetails.md | 21 + ...etailMediaExternalv1ProposalStatusModel.md | 18 + ...iaExternalv1ProposalStatusModelResource.md | 15 + ...iaExternalv1ProposalStatusModelResponse.md | 15 + .../RetailMediaExternalv1ResourceOutcome.md | 14 + .../docs/RetailMediaExternalv1SetBidModel.md | 14 + .../docs/RetailMediaExternalv1SetBidsModel.md | 13 + ...etailMediaExternalv1SetBidsModelRequest.md | 13 + ...tailMediaExternalv1SetBidsModelResource.md | 15 + sdks/retailmedia_2023-07/docs/Section.md | 14 + .../docs/StatusResponse.md | 20 + .../docs/StatusResponseResource.md | 15 + .../docs/StoreIdsUpdateModel202110Request.md | 13 + .../docs/StoreTarget202110Request.md | 13 + .../docs/StoreTarget202110Response.md | 15 + sdks/retailmedia_2023-07/docs/Template.md | 24 + .../docs/TemplateListResponse.md | 15 + .../docs/TemplateResponse.md | 15 + .../docs/TemplateVariable.md | 18 + .../docs/TemplateVariableValue.md | 18 + .../docs/TextVariableSpecification.md | 13 + .../docs/TextVariableValue.md | 13 + .../docs/UserBehaviorDetails.md | 16 + .../docs/UserBehaviorDetailsV2.md | 14 + ...sourceOfAddToBasketIdsUpdateModel202110.md | 14 + ...ueTypeResourceOfAddToBasketTarget202110.md | 14 + ...eResourceOfAudienceIdsUpdateModel202110.md | 14 + ...ValueTypeResourceOfAudienceTarget202110.md | 14 + .../ValueTypeResourceOfKeywordTarget202110.md | 14 + ...TypeResourceOfStoreIdsUpdateModel202110.md | 14 + .../ValueTypeResourceOfStoreTarget202110.md | 14 + sdks/retailmedia_2023-07/requirements.txt | 3 + sdks/retailmedia_2023-07/setup.cfg | 2 + sdks/retailmedia_2023-07/setup.py | 68 + .../retailmedia_2023-07/test-requirements.txt | 1 + .../example_application_with_auth_code.py | 27 + ...ple_application_with_client_credentials.py | 22 + .../example_application_with_refresh_token.py | 27 + .../test/test_gateway_api.py | 62 + sdks/retailmedia_2023-07/tox.ini | 9 + .../.openapi-generator/FILES | 90 +- sdks/retailmedia_preview/README.md | 51 +- .../__init__.py | 4 +- .../api/analytics_api.py | 553 +- .../api/audience_api.py | 14 +- .../api/campaign_api.py | 1347 ++- .../api/gateway_api.py | 2 +- .../api_client.py | 10 +- .../configuration.py | 4 +- .../exceptions.py | 2 +- .../model/add_funds_to_balance_request.py | 269 + .../model/application_summary_model.py | 2 +- .../application_summary_model_resource.py | 2 +- .../application_summary_model_response.py | 2 +- ...attributes.py => async_campaign_report.py} | 156 +- .../model/async_campaign_report_request.py | 269 + .../model/async_campaign_report_resource.py | 273 + .../model/async_line_item_report.py | 388 + .../model/async_line_item_report_request.py | 269 + .../model/async_line_item_report_resource.py | 273 + .../model/async_report_response.py | 281 + .../model/async_revenue_report.py | 364 + .../model/async_revenue_report_request.py | 269 + .../model/async_revenue_report_resource.py | 273 + .../attributed_transaction_report_request.py | 269 + ...attributed_transaction_report_resource.py} | 36 +- .../model/attributed_transactions_report.py | 370 + .../model/balance_response.py | 281 + .../balance_response_paged_list_response.py | 287 + .../model/{global_brand.py => brand.py} | 12 +- .../model/brand_preview.py | 2 +- .../model/brand_preview_list_response.py | 2 +- .../model/campaign_report.py | 36 +- .../model/campaign_report_request.py | 2 +- .../model/campaign_report_resource.py | 2 +- .../{retailer_category.py => category.py} | 8 +- .../model/category202204.py | 2 +- .../model/change_dates_of_balance_request.py | 269 + .../model/choice_option.py | 2 +- .../model/choice_variable_specification.py | 2 +- .../model/choice_variable_value.py | 2 +- .../model/color_variable_value.py | 2 +- .../model/common_error.py | 2 +- .../model/common_problem.py | 2 +- .../model/common_status_code_response.py | 2 +- .../model/common_warning.py | 2 +- .../model/cpc_rate_card_preview.py | 2 +- .../model/cpc_rate_card_preview_response.py | 2 +- ...d_request.py => create_balance_request.py} | 20 +- .../model/create_retail_media_audience.py | 2 +- ...create_retail_media_audience_attributes.py | 20 +- .../create_retail_media_audience_body.py | 2 +- .../create_retail_media_audience_request.py | 2 +- .../create_retail_media_audience_response.py | 2 +- .../model/create_retail_media_audience_v2.py | 2 +- ...ate_retail_media_audience_v2_attributes.py | 8 +- .../create_retail_media_audience_v2_data.py | 2 +- ...create_retail_media_audience_v2_request.py | 2 +- .../model/create_user_behavior_segment_v2.py | 14 +- .../model/creative202210.py | 2 +- .../model/creative202210_list_response.py | 2 +- .../model/creative202210_response.py | 2 +- .../model/creative_create_model202207.py | 2 +- .../model/creative_update_model202207.py | 2 +- .../model/customer_list_details.py | 2 +- .../model/export_report_column.py | 2 +- .../model/export_report_meta_data.py | 2 +- .../model/external_account.py | 2 +- .../model/external_add_funds_to_balance.py | 279 + .../model/external_balance_response.py | 362 + .../model/external_brand.py | 2 +- .../model/external_catalog_request_preview.py | 2 +- .../model/external_catalog_status.py | 2 +- .../model/external_change_dates_of_balance.py | 281 + .../model/external_create_balance.py | 313 + .../model/external_product_button_request.py | 2 +- .../model/external_product_button_response.py | 2 +- .../model/external_retailer.py | 2 +- .../model/external_update_balance_model.py | 283 + .../model/files_variable_value.py | 2 +- .../model/files_variables_specification.py | 2 +- ...age_of_audiences_by_account_id_response.py | 2 +- .../model/hyperlink_variable_value.py | 2 +- ...ith_id_of_int64_and_account_and_account.py | 2 +- ...dy_with_id_of_int64_and_brand_and_brand.py | 2 +- ...4_and_catalog_status_and_catalog_status.py | 2 +- ...ltipliers_and_line_item_bid_multipliers.py | 2 +- ...h_id_of_int64_and_retailer_and_retailer.py | 2 +- ...log_request_and_catalog_request_preview.py | 2 +- .../json_api_page_response_of_account.py | 2 +- .../model/json_api_page_response_of_brand.py | 2 +- .../json_api_page_response_of_retailer.py | 2 +- ..._api_request_of_catalog_request_preview.py | 2 +- ...n_api_single_response_of_catalog_status.py | 2 +- ...e_response_of_line_item_bid_multipliers.py | 2 +- .../model/line_item_bid_multipliers.py | 2 +- .../line_item_bid_multipliers_request.py | 2 +- .../line_item_bid_multipliers_response.py | 2 +- .../model/line_item_report.py | 76 +- .../model/line_item_report_request.py | 2 +- .../model/line_item_report_resource.py | 2 +- .../model/page_metadata.py | 2 +- .../model/page_type_environment.py | 2 +- .../model/placement_preview.py | 2 +- .../model/placement_preview_list_response.py | 2 +- .../model/problem_details.py | 2 +- .../model/product_button_list_request.py | 2 +- .../model/product_button_list_response.py | 2 +- .../model/product_button_request.py | 2 +- .../model/product_button_response.py | 2 +- .../model/report_data_response_resource.py | 6 +- .../model/report_outcome.py | 2 +- .../model/report_response.py | 2 +- .../model/resource_of_add_funds_to_balance.py | 277 + .../model/resource_of_balance_response.py | 277 + .../model/resource_of_brand_preview.py | 2 +- .../resource_of_change_dates_of_balance.py | 277 + .../resource_of_cpc_rate_card_preview.py | 2 +- .../model/resource_of_create_balance.py | 277 + .../model/resource_of_creative202210.py | 2 +- .../resource_of_line_item_bid_multipliers.py | 2 +- .../model/resource_of_placement_preview.py | 2 +- .../resource_of_product_button_request.py | 2 +- .../resource_of_product_button_response.py | 2 +- .../model/resource_of_seller_preview.py | 2 +- .../model/resource_of_sku_data_preview.py | 2 +- .../resource_of_sku_search_request_preview.py | 2 +- ...urce_of_sku_search_request_slim_preview.py | 2 +- ...e_of_sku_search_request_slim_v2_preview.py | 2 +- .../resource_of_sku_slim_data_preview.py | 2 +- .../model/resource_of_sku_slim_data_v2.py | 2 +- .../model/resource_of_template.py | 2 +- .../model/resource_of_update_balance_model.py | 277 + .../model/retail_media_audience.py | 2 +- .../model/retail_media_audience_attributes.py | 2 +- .../model/retail_media_audience_v2.py | 2 +- .../retail_media_audience_v2_attributes.py | 8 +- .../retail_media_audience_v2_list_response.py | 2 +- .../retail_media_audience_v2_response.py | 2 +- ...dia_externalv1_add_remove_keyword_model.py | 2 +- ...ia_externalv1_add_remove_keywords_model.py | 2 +- ...nalv1_add_remove_keywords_model_request.py | 2 +- ...alv1_add_remove_keywords_model_resource.py | 2 +- ...l_media_externalv1_input_keywords_model.py | 2 +- ...ail_media_externalv1_keyword_data_model.py | 2 +- .../retail_media_externalv1_keywords_model.py | 2 +- ...edia_externalv1_keywords_model_resource.py | 2 +- ...edia_externalv1_keywords_model_response.py | 2 +- ...retail_media_externalv1_problem_details.py | 2 +- ..._media_externalv1_proposal_status_model.py | 2 +- ...ternalv1_proposal_status_model_resource.py | 2 +- ...ternalv1_proposal_status_model_response.py | 2 +- ...etail_media_externalv1_resource_outcome.py | 2 +- .../retail_media_externalv1_set_bid_model.py | 2 +- .../retail_media_externalv1_set_bids_model.py | 2 +- ...media_externalv1_set_bids_model_request.py | 2 +- ...edia_externalv1_set_bids_model_resource.py | 2 +- .../model/section.py | 2 +- .../model/seller_preview.py | 2 +- .../model/seller_preview_response.py | 2 +- .../model/sku_data_preview.py | 2 +- .../model/sku_data_preview_list_response.py | 2 +- .../model/sku_search_request_preview.py | 2 +- .../sku_search_request_preview_request.py | 2 +- .../model/sku_search_request_slim_preview.py | 2 +- ...sku_search_request_slim_preview_request.py | 2 +- .../sku_search_request_slim_v2_preview.py | 2 +- ..._search_request_slim_v2_preview_request.py | 2 +- .../model/sku_slim_data_preview.py | 8 +- .../sku_slim_data_preview_list_response.py | 2 +- .../model/sku_slim_data_v2.py | 42 +- .../model/sku_slim_data_v2_list_response.py | 2 +- .../model/status_response.py | 297 + .../model/status_response_resource.py | 277 + .../model/template.py | 2 +- .../model/template_list_response.py | 2 +- .../model/template_response.py | 2 +- .../model/template_variable.py | 2 +- .../model/template_variable_value.py | 2 +- .../model/text_variable_specification.py | 2 +- .../model/text_variable_value.py | 2 +- .../model/update_balance_model_request.py | 269 + .../model/user_behavior_details.py | 2 +- .../model/user_behavior_details_v2.py | 2 +- .../model_utils.py | 2 +- .../models/__init__.py | 45 +- .../criteo_api_retailmedia_preview/rest.py | 2 +- .../docs/AddFundsToBalanceRequest.md | 13 + sdks/retailmedia_preview/docs/AnalyticsApi.md | 525 +- .../docs/AsyncCampaignReport.md | 25 + .../docs/AsyncCampaignReportRequest.md | 13 + .../docs/AsyncCampaignReportResource.md | 14 + .../docs/AsyncLineItemReport.md | 25 + .../docs/AsyncLineItemReportRequest.md | 13 + .../docs/AsyncLineItemReportResource.md | 14 + .../docs/AsyncReportResponse.md | 15 + .../docs/AsyncRevenueReport.md | 24 + .../docs/AsyncRevenueReportRequest.md | 13 + .../docs/AsyncRevenueReportResource.md | 14 + .../AttributedTransactionReportRequest.md | 13 + .../AttributedTransactionReportResource.md | 14 + .../docs/AttributedTransactionsReport.md | 24 + sdks/retailmedia_preview/docs/AudienceApi.md | 28 +- .../docs/BalanceResponse.md | 15 + .../docs/BalanceResponsePagedListResponse.md | 16 + sdks/retailmedia_preview/docs/Brand.md | 13 + sdks/retailmedia_preview/docs/CampaignApi.md | 626 ++ .../docs/CampaignReport.md | 3 +- .../docs/{RetailerCategory.md => Category.md} | 2 +- .../docs/ChangeDatesOfBalanceRequest.md | 13 + .../docs/CreateBalanceRequest.md | 13 + .../CreateRetailMediaAudienceAttributes.md | 6 +- .../CreateRetailMediaAudienceV2Attributes.md | 2 +- .../docs/CreateUserBehaviorSegmentV2.md | 4 +- .../docs/ExternalAddFundsToBalance.md | 15 + .../docs/ExternalBalanceResponse.md | 26 + .../docs/ExternalChangeDatesOfBalance.md | 15 + .../docs/ExternalCreateBalance.md | 20 + .../docs/ExternalUpdateBalanceModel.md | 18 + .../docs/LineItemReport.md | 22 +- sdks/retailmedia_preview/docs/MapString.md | 12 - .../docs/ReportDataResponseResource.md | 2 +- .../retailmedia_preview/docs/ReportRequest.md | 14 - .../docs/ReportRequestAttributes.md | 21 - sdks/retailmedia_preview/docs/ReportStatus.md | 15 - .../docs/ReportStatusAttributes.md | 19 - .../docs/ResourceOfAddFundsToBalance.md | 15 + .../docs/ResourceOfBalanceResponse.md | 15 + .../docs/ResourceOfChangeDatesOfBalance.md | 15 + .../docs/ResourceOfCreateBalance.md | 15 + .../docs/ResourceOfUpdateBalanceModel.md | 15 + .../docs/RetailMediaAudienceV2Attributes.md | 2 +- .../docs/SkuSlimDataPreview.md | 2 +- .../retailmedia_preview/docs/SkuSlimDataV2.md | 8 +- .../docs/StatusResponse.md | 20 + .../docs/StatusResponseResource.md | 15 + .../docs/UpdateBalanceModelRequest.md | 13 + sdks/retailmedia_preview/setup.py | 6 +- 2861 files changed, 191653 insertions(+), 4235 deletions(-) create mode 100644 sdks/marketingsolutions_2023-07/.gitignore create mode 100644 sdks/marketingsolutions_2023-07/.gitlab-ci.yml create mode 100644 sdks/marketingsolutions_2023-07/.openapi-generator/FILES create mode 100644 sdks/marketingsolutions_2023-07/.openapi-generator/VERSION create mode 100644 sdks/marketingsolutions_2023-07/README.md create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/__init__.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/advertiser_api.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/audience_api.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/creative_api.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/gateway_api.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client_builder.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/apis/__init__.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_api_client.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_auth.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_rest.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/exceptions.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/flow_constants.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/__init__.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_input_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_geo_location.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_colors.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_write_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/algebra_node_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_response.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/report_status.py => marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience.py} (91%) create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_create_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_delete_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_update_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_sizes_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_delete_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_audience_search_metadata_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_error.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_name_description.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_metadata_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_create_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_delete_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_update_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_sizes_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_delete_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_estimate_size_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_input_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_metadata_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1_resource.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/map_string.py => marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1.py} (93%) create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_warning.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/basic_audience_definition.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/behavioral_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_read_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/common_problem.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_attributes.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_request.py => marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_request.py} (93%) create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_bidding.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_budget.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_geo_location.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_schedule.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_targeting.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_spend_limit.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_image_slide.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_resource.py rename sdks/{marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error_v2.py => marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_error.py} (96%) create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_warning.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_contact_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_write_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/entity_of_portfolio_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/error_code_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_audiences_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_portfolio_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_write_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set_base64.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_shape.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_slide.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_write_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_create_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_size_estimation_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_update_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_create_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_size_estimation_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_update_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_create_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_update_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/modify_audience_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_gender_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_int32.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_string.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_bidding.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_scheduling.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_write_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_read_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/point_of_interest_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/portfolio_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_create_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_update_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_bidding.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_ad_set_id.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_read_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_status.py => marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_request.py} (94%) create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_response.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/request_ad_set_search.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_create_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_update_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_v1.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/size.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/tag.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_request.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_resource.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/video_detail.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_ad_set_id.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_patch_ad_set.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model_utils.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py create mode 100644 sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/rest.py create mode 100644 sdks/marketingsolutions_2023-07/docs/Ad.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdResponse.md rename sdks/{retailmedia_preview/docs/EnvelopeReportStatus.md => marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1.md} (81%) create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Response.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkInputEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetCategoryBid.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplier.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdWrite.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdWriteRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdWriteResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdaptiveAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdaptiveColors.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdaptiveWriteAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AlgebraNodeV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModel.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/Audience.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceApi.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceBulkCreateInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceBulkDeleteInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceBulkUpdateInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceComputeSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceComputeSizesInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceDeleteEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceError.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceNameDescription.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSearchInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSearchMetadataV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkCreateInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkDeleteInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkUpdateInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizesInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentDeleteEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentEstimateSizeInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchInputV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchMetadataV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1Resource.md rename sdks/{retailmedia_preview/docs/BadRequest.md => marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1.md} (82%) create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Response.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1Resource.md rename sdks/{retailmedia_preview/docs/EnvelopeReportRequest.md => marketingsolutions_2023-07/docs/AudienceSizeEntityV1.md} (80%) create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1Resource.md rename sdks/{retailmedia_preview/docs/GlobalBrand.md => marketingsolutions_2023-07/docs/AudienceSizeEstimationV1.md} (80%) create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Response.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/AudienceWarning.md create mode 100644 sdks/marketingsolutions_2023-07/docs/BasicAudienceDefinition.md create mode 100644 sdks/marketingsolutions_2023-07/docs/BehavioralV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/Campaign.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignApi.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CommonProblem.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Response.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactListV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactlistAmendment.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactlistOperation.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ContactlistOperationAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/Coupon.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CouponListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CouponResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CouponResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CouponSupportedSizes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCampaign.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCampaignRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCampaignResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCampaignSpendLimit.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCoupon.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCouponRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateCouponResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreateImageSlide.md create mode 100644 sdks/marketingsolutions_2023-07/docs/Creative.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeApi.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeWrite.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeWriteRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/CreativeWriteResource.md rename sdks/{marketingsolutions_preview/docs/CriteoApiErrorV2.md => marketingsolutions_2023-07/docs/CriteoApiError.md} (98%) create mode 100644 sdks/marketingsolutions_2023-07/docs/CriteoApiWarning.md create mode 100644 sdks/marketingsolutions_2023-07/docs/DeleteAudienceContactListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/DynamicAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/DynamicWriteAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/EntityOfPortfolioMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ErrorCodeResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/GatewayApi.md create mode 100644 sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/GetPortfolioResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/HtmlTagAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/HtmlTagWriteAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ImageAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ImageSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ImageSetBase64.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ImageShape.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ImageSlide.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ImageWriteAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1Resource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketCreateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketSizeEstimationV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/InMarketV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LocationCreateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LocationSizeEstimationV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LocationUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LocationV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LookalikeCreateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LookalikeUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/LookalikeV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ModifyAudienceResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NewAudience.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NillableDateTime.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NillableDecimal.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NillableGenderV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/NillableInt32.md rename sdks/{retailmedia_preview/docs/RetailerBrand.md => marketingsolutions_2023-07/docs/NillableString.md} (66%) create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBid.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidListRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplier.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierListRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchCampaign.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchCampaignListRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchCampaignWriteResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PatchResultCampaignReadResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryDataMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryEntityMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PointOfInterestV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/PortfolioMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ProblemDetails.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ProblemsDetails.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ProspectingCreateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ProspectingUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ProspectingV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReadAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReadModelAdSetId.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md create mode 100644 sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md create mode 100644 sdks/marketingsolutions_2023-07/docs/RequestsAdSetId.md create mode 100644 sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md create mode 100644 sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/docs/RetargetingCreateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/RetargetingUpdateV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/RetargetingV1.md create mode 100644 sdks/marketingsolutions_2023-07/docs/Size.md create mode 100644 sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/Tag.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryDataMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransparencyReportAttributes.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransparencyReportDataMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransparencyReportEntityMessage.md create mode 100644 sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md create mode 100644 sdks/marketingsolutions_2023-07/docs/UpdateCoupon.md create mode 100644 sdks/marketingsolutions_2023-07/docs/UpdateCouponRequest.md create mode 100644 sdks/marketingsolutions_2023-07/docs/UpdateCouponResource.md create mode 100644 sdks/marketingsolutions_2023-07/docs/VideoDetail.md create mode 100644 sdks/marketingsolutions_2023-07/docs/WriteModelAdSetId.md create mode 100644 sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md create mode 100644 sdks/marketingsolutions_2023-07/requirements.txt create mode 100644 sdks/marketingsolutions_2023-07/setup.cfg create mode 100644 sdks/marketingsolutions_2023-07/setup.py create mode 100644 sdks/marketingsolutions_2023-07/test-requirements.txt create mode 100644 sdks/marketingsolutions_2023-07/test/example_application_with_auth_code.py create mode 100644 sdks/marketingsolutions_2023-07/test/example_application_with_client_credentials.py create mode 100644 sdks/marketingsolutions_2023-07/test/example_application_with_refresh_token.py create mode 100644 sdks/marketingsolutions_2023-07/test/test_gateway_api.py create mode 100644 sdks/marketingsolutions_2023-07/tox.ini create mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py create mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py create mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py create mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py create mode 100644 sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py create mode 100644 sdks/marketingsolutions_preview/docs/NillableInt32.md create mode 100644 sdks/marketingsolutions_preview/docs/ProspectingCreateV1.md create mode 100644 sdks/marketingsolutions_preview/docs/ProspectingUpdateV1.md create mode 100644 sdks/marketingsolutions_preview/docs/ProspectingV1.md create mode 100644 sdks/marketingsolutions_preview/docs/ValueResourceOfAdvertiserCreationInput.md create mode 100644 sdks/retailmedia_2023-07/.gitignore create mode 100644 sdks/retailmedia_2023-07/.gitlab-ci.yml create mode 100644 sdks/retailmedia_2023-07/.openapi-generator/FILES create mode 100644 sdks/retailmedia_2023-07/.openapi-generator/VERSION create mode 100644 sdks/retailmedia_2023-07/README.md create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/__init__.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/analytics_api.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/audience_api.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/gateway_api.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client_builder.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/apis/__init__.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_api_client.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_auth.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_rest.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/exceptions.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/flow_constants.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/__init__.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_ids_update_model202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_report_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_create_model_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_paged_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_update_model_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_ids_update_model202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance202110_paged_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_list_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_paged_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_option.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_specification.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_value.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/color_variable_value.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/error.py => retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_error.py} (86%) create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_paged_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_problem.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_status_code_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_warning.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_attributes.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_body.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_attributes.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_data.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_user_behavior_segment_v2.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_create_model202207.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_update_model202207.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/customer_list_details.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_column.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_meta_data.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_account.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_ids_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_create_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_update_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_ids_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_balance202110.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_brand.py => retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_brand.py} (94%) create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_status.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_common_line_item.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_keyword_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_capping202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page_category202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_create_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_promoted_product202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer_pages202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_ids_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variable_value.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variables_specification.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/hyperlink_variable_value.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_auction_line_item_create_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_preferred_line_item_create_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_account_and_account.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_request_of_catalog_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_catalog_status.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_line_item_bid_multipliers.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_metadata.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_type_environment.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/post_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_paged_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_create_model202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_update_model202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/problem_details.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_list_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_paged_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/put_campaign_v202301.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_data_response_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_outcome.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item_update_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance_campaign202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_category202204.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_common_line_item.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202210.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_line_item_bid_multipliers.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_promoted_product202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_template.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_attributes.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_attributes.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keyword_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_input_keywords_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keyword_data_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_problem_details.py rename sdks/{retailmedia_preview/criteo_api_retailmedia_preview/model/report_status_attributes.py => retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model.py} (79%) create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_resource_outcome.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bid_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/section.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response_resource.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_ids_update_model202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_request.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_list_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_response.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable_value.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_specification.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_value.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details_v2.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_ids_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_keyword_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_ids_update_model202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_target202110.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model_utils.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/models/__init__.py create mode 100644 sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/rest.py create mode 100644 sdks/retailmedia_2023-07/docs/AddToBasketIdsUpdateModel202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Response.md create mode 100644 sdks/retailmedia_2023-07/docs/AnalyticsApi.md create mode 100644 sdks/retailmedia_2023-07/docs/ApplicationSummaryModel.md create mode 100644 sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResource.md create mode 100644 sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/Asset.md create mode 100644 sdks/retailmedia_2023-07/docs/AssetResource.md create mode 100644 sdks/retailmedia_2023-07/docs/AssetResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/AsyncReportResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/AuctionLineItemCreateModelRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/AuctionLineItemPagedListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/AuctionLineItemResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/AuctionLineItemUpdateModelRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/AudienceApi.md create mode 100644 sdks/retailmedia_2023-07/docs/AudienceIdsUpdateModel202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/AudienceTarget202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/AudienceTarget202110Response.md create mode 100644 sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/BalanceCampaign202110ListRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/BalanceCampaign202110PagedListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/CampaignApi.md create mode 100644 sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/CampaignReport.md create mode 100644 sdks/retailmedia_2023-07/docs/CampaignReportRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/CampaignReportResource.md create mode 100644 sdks/retailmedia_2023-07/docs/CampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/Category202204.md create mode 100644 sdks/retailmedia_2023-07/docs/Category202204ListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/ChoiceOption.md create mode 100644 sdks/retailmedia_2023-07/docs/ChoiceVariableSpecification.md create mode 100644 sdks/retailmedia_2023-07/docs/ChoiceVariableValue.md create mode 100644 sdks/retailmedia_2023-07/docs/ColorVariableValue.md create mode 100644 sdks/retailmedia_2023-07/docs/CommonError.md create mode 100644 sdks/retailmedia_2023-07/docs/CommonLineItemPagedListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/CommonLineItemResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/CommonProblem.md create mode 100644 sdks/retailmedia_2023-07/docs/CommonStatusCodeResponse.md rename sdks/{retailmedia_preview/docs/Error.md => retailmedia_2023-07/docs/CommonWarning.md} (65%) create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudience.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceAttributes.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceBody.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Attributes.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Data.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Request.md create mode 100644 sdks/retailmedia_2023-07/docs/CreateUserBehaviorSegmentV2.md create mode 100644 sdks/retailmedia_2023-07/docs/Creative202110.md create mode 100644 sdks/retailmedia_2023-07/docs/Creative202110ListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/Creative202210.md create mode 100644 sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/Creative202210Response.md create mode 100644 sdks/retailmedia_2023-07/docs/CreativeCreateModel202207.md create mode 100644 sdks/retailmedia_2023-07/docs/CreativeUpdateModel202207.md create mode 100644 sdks/retailmedia_2023-07/docs/CustomerListDetails.md create mode 100644 sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/ExportReportColumn.md create mode 100644 sdks/retailmedia_2023-07/docs/ExportReportMetaData.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAccount.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAddToBasketIdsUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAddToBasketTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAuctionLineItem.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemCreateModel.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemUpdateModel.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAudienceIdsUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalAudienceTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalBalance202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalBrand.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalCatalogRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalCatalogStatus.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalCommonLineItem.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalKeywordTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalRetailer.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalRetailerPages202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalStoreIdsUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ExternalStoreTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/FilesVariableValue.md create mode 100644 sdks/retailmedia_2023-07/docs/FilesVariablesSpecification.md create mode 100644 sdks/retailmedia_2023-07/docs/GatewayApi.md create mode 100644 sdks/retailmedia_2023-07/docs/GetPageOfAudiencesByAccountIdResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/HyperlinkVariableValue.md create mode 100644 sdks/retailmedia_2023-07/docs/InputResourceOfAuctionLineItemCreateModel.md create mode 100644 sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfAccount.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfBrand.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfRetailer.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiRequestOfCatalogRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCatalogStatus.md create mode 100644 sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md create mode 100644 sdks/retailmedia_2023-07/docs/KeywordTarget202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/KeywordTarget202110Response.md create mode 100644 sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md create mode 100644 sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/LineItemReport.md create mode 100644 sdks/retailmedia_2023-07/docs/LineItemReportRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/LineItemReportResource.md create mode 100644 sdks/retailmedia_2023-07/docs/PageMetadata.md create mode 100644 sdks/retailmedia_2023-07/docs/PageTypeEnvironment.md create mode 100644 sdks/retailmedia_2023-07/docs/PostCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md create mode 100644 sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/ProblemDetails.md create mode 100644 sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/PutCampaignV202301.md create mode 100644 sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md create mode 100644 sdks/retailmedia_2023-07/docs/ReportOutcome.md create mode 100644 sdks/retailmedia_2023-07/docs/ReportResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItem.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItemUpdateModel.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfBalanceCampaign202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfCategory202204.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfCommonLineItem.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfCreative202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfCreative202210.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ResourceOfTemplate.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaAudience.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaAudienceAttributes.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Attributes.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2ListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Response.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1InputKeywordsModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordDataModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResource.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProblemDetails.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResource.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ResourceOutcome.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModel.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelRequest.md create mode 100644 sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelResource.md create mode 100644 sdks/retailmedia_2023-07/docs/Section.md create mode 100644 sdks/retailmedia_2023-07/docs/StatusResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/StatusResponseResource.md create mode 100644 sdks/retailmedia_2023-07/docs/StoreIdsUpdateModel202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/StoreTarget202110Request.md create mode 100644 sdks/retailmedia_2023-07/docs/StoreTarget202110Response.md create mode 100644 sdks/retailmedia_2023-07/docs/Template.md create mode 100644 sdks/retailmedia_2023-07/docs/TemplateListResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/TemplateResponse.md create mode 100644 sdks/retailmedia_2023-07/docs/TemplateVariable.md create mode 100644 sdks/retailmedia_2023-07/docs/TemplateVariableValue.md create mode 100644 sdks/retailmedia_2023-07/docs/TextVariableSpecification.md create mode 100644 sdks/retailmedia_2023-07/docs/TextVariableValue.md create mode 100644 sdks/retailmedia_2023-07/docs/UserBehaviorDetails.md create mode 100644 sdks/retailmedia_2023-07/docs/UserBehaviorDetailsV2.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfKeywordTarget202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md create mode 100644 sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreTarget202110.md create mode 100644 sdks/retailmedia_2023-07/requirements.txt create mode 100644 sdks/retailmedia_2023-07/setup.cfg create mode 100644 sdks/retailmedia_2023-07/setup.py create mode 100644 sdks/retailmedia_2023-07/test-requirements.txt create mode 100644 sdks/retailmedia_2023-07/test/example_application_with_auth_code.py create mode 100644 sdks/retailmedia_2023-07/test/example_application_with_client_credentials.py create mode 100644 sdks/retailmedia_2023-07/test/example_application_with_refresh_token.py create mode 100644 sdks/retailmedia_2023-07/test/test_gateway_api.py create mode 100644 sdks/retailmedia_2023-07/tox.ini create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{report_request_attributes.py => async_campaign_report.py} (77%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_request.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_resource.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_request.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_resource.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_report_response.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{report_request.py => attributed_transaction_report_resource.py} (92%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{global_brand.py => brand.py} (97%) rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{retailer_category.py => category.py} (98%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py rename sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/{bad_request.py => create_balance_request.py} (94%) create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response_resource.py create mode 100644 sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py create mode 100644 sdks/retailmedia_preview/docs/AddFundsToBalanceRequest.md create mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/AsyncCampaignReportResource.md create mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/AsyncLineItemReportResource.md create mode 100644 sdks/retailmedia_preview/docs/AsyncReportResponse.md create mode 100644 sdks/retailmedia_preview/docs/AsyncRevenueReport.md create mode 100644 sdks/retailmedia_preview/docs/AsyncRevenueReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/AsyncRevenueReportResource.md create mode 100644 sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md create mode 100644 sdks/retailmedia_preview/docs/AttributedTransactionReportResource.md create mode 100644 sdks/retailmedia_preview/docs/AttributedTransactionsReport.md create mode 100644 sdks/retailmedia_preview/docs/BalanceResponse.md create mode 100644 sdks/retailmedia_preview/docs/BalanceResponsePagedListResponse.md create mode 100644 sdks/retailmedia_preview/docs/Brand.md rename sdks/retailmedia_preview/docs/{RetailerCategory.md => Category.md} (96%) create mode 100644 sdks/retailmedia_preview/docs/ChangeDatesOfBalanceRequest.md create mode 100644 sdks/retailmedia_preview/docs/CreateBalanceRequest.md create mode 100644 sdks/retailmedia_preview/docs/ExternalAddFundsToBalance.md create mode 100644 sdks/retailmedia_preview/docs/ExternalBalanceResponse.md create mode 100644 sdks/retailmedia_preview/docs/ExternalChangeDatesOfBalance.md create mode 100644 sdks/retailmedia_preview/docs/ExternalCreateBalance.md create mode 100644 sdks/retailmedia_preview/docs/ExternalUpdateBalanceModel.md delete mode 100644 sdks/retailmedia_preview/docs/MapString.md delete mode 100644 sdks/retailmedia_preview/docs/ReportRequest.md delete mode 100644 sdks/retailmedia_preview/docs/ReportRequestAttributes.md delete mode 100644 sdks/retailmedia_preview/docs/ReportStatus.md delete mode 100644 sdks/retailmedia_preview/docs/ReportStatusAttributes.md create mode 100644 sdks/retailmedia_preview/docs/ResourceOfAddFundsToBalance.md create mode 100644 sdks/retailmedia_preview/docs/ResourceOfBalanceResponse.md create mode 100644 sdks/retailmedia_preview/docs/ResourceOfChangeDatesOfBalance.md create mode 100644 sdks/retailmedia_preview/docs/ResourceOfCreateBalance.md create mode 100644 sdks/retailmedia_preview/docs/ResourceOfUpdateBalanceModel.md create mode 100644 sdks/retailmedia_preview/docs/StatusResponse.md create mode 100644 sdks/retailmedia_preview/docs/StatusResponseResource.md create mode 100644 sdks/retailmedia_preview/docs/UpdateBalanceModelRequest.md diff --git a/sdks/marketingsolutions_2022-07/README.md b/sdks/marketingsolutions_2022-07/README.md index c5e866b0..b69705f2 100644 --- a/sdks/marketingsolutions_2022-07/README.md +++ b/sdks/marketingsolutions_2022-07/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2022.07.0.230601 +- Package version: 2022.07.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2022.07.0.230601 +pip install criteo-api-marketingsolutions-sdk==2022.07.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.07.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.07.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py index f34872ac..f8b5b9ce 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech """ -__version__ = "2022.07.0.230601" +__version__ = "2022.07.0.230726" # import ApiClient from criteo_api_marketingsolutions_v2022_07.api_client import ApiClient diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py index 4792f5f2..07c8cb4f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/advertiser_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py index 7f48d35e..8f2edd3c 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/audience_api.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/audience_api.py index 0a9f300f..6f47efd5 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/audience_api.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py index a2c0968f..19eaa6bf 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py index 925aa3ca..b2e1c960 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client.py index 14e765e0..9a3e2af8 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2022.07.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2022.07.0.230726/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/configuration.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/configuration.py index 6310bc34..7a6ac1f1 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/configuration.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2022-07\n"\ - "SDK Package Version: 2022.07.0.230601".\ + "SDK Package Version: 2022.07.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py index b147b427..a2ad77f9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py index c3ab1a64..42083b78 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py index 914911dd..0331e8f1 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py index 07c2e213..d334b7fa 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py index 859a73ea..9b235aaf 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_delivery_limitations.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py index e71470d4..e9fe047f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py index 40586976..8ffbc6fc 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py index 2c7388ac..f586637f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py index 8c730dc4..8e2db7b4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_frequency_capping.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py index 62dfe607..33bc72de 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_geo_location.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py index 303a914e..a9366073 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_search_filter.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py index b4f7bf0d..61a80821 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py index 09818910..1b2d38e7 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py index 0638723b..d98dcff5 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py index a4cec106..a3ade098 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py index 647af1cf..cdd10b77 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py index cf4f6a5a..b6b81526 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py index 598ef259..56a2a4c6 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py index fe1e9bd8..95bb3c5b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py index 72e160b1..746c99fd 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_name_description.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py index 1e47e12f..43394af9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/audience_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py index f5f89952..35862598 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/basic_audience_definition.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py index 30d15442..c00ca463 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py index 022382b7..96591947 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py index bda543a9..0f0a768b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_response.py index 7ad7b421..880fbdb9 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py index 4ea2a758..5e5f7ac0 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_filters.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py index e43941a5..c2a34d73 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_search_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py index cdee4b86..b71ab15d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/common_problem.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/common_problem.py index 241193f7..2cce6fee 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/common_problem.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py index 3f1443a4..bfba31e4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py index f658bd00..45674e07 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -64,6 +64,7 @@ class ContactlistAmendmentAttributes(ModelNormal): 'MADID': "madid", 'IDENTITYLINK': "identityLink", 'GUM': "gum", + 'CUSTOMERID': "customerid", }, } @@ -95,7 +96,6 @@ def openapi_types(): 'identifiers': ([str],), # noqa: E501 'identifier_type': (str,), # noqa: E501 'gum_caller_id': (int,), # noqa: E501 - 'internal_identifiers': (bool,), # noqa: E501 } @cached_property @@ -108,7 +108,6 @@ def discriminator(): 'identifiers': 'identifiers', # noqa: E501 'identifier_type': 'identifierType', # noqa: E501 'gum_caller_id': 'gumCallerId', # noqa: E501 - 'internal_identifiers': 'internalIdentifiers', # noqa: E501 } read_only_vars = { @@ -158,7 +157,6 @@ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,7 +250,6 @@ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py index 1825c453..92b84120 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_amendment_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py index 6c7a5f35..cc3da548 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py index efd5b991..af13b9da 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/contactlist_operation_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ return { 'operation': (str,), # noqa: E501 - 'contact_list_id': (str,), # noqa: E501 + 'contact_list_id': (int,), # noqa: E501 'request_date': (datetime,), # noqa: E501 'identifier_type': (str,), # noqa: E501 'nb_valid_identifiers': (int,), # noqa: E501 @@ -149,7 +149,7 @@ def _from_openapi_data(cls, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py index fb1bd64c..aff5b12b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py index 6248ee89..a9dbc201 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/criteo_api_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py index 2ee929ef..5b458e3e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_contact_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py index 8f183292..cf560ef5 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/delete_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py index b56d525d..d6ced83c 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/entity_of_portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py index e4ef4c82..5b92239b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/error_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py index c172d593..4921a31d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_audiences_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py index 787ca668..e2fc1eb4 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/get_portfolio_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py index b593ae9a..8c4f44c6 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/modify_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience.py index 355f76a3..33ebc251 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py index a1ba19fd..6a46e188 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py index 121ca5a3..3d5f604b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py index eca5e5fa..79a26615 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/new_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py index 135c9774..66c99383 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -106,9 +106,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -140,7 +143,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -172,6 +174,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -192,9 +195,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,7 +232,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -256,6 +261,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py index 8cbc6cda..08305eaf 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_ad_set_targeting_rule_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py index 8459a368..0a4133ab 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_date_time.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py index 6411fbd1..82e548de 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/nillable_decimal.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py index eb4f4d76..ea751fab 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py index e3278b86..964df986 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py index 2188763c..1fc66c1e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py index 876f9fe9..5d8bea82 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py index 4b7b65e9..1f7f8871 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py index 364f7cda..f2791b77 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py index 3ac54a0d..fb9fd015 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py index f111e2f0..894367ad 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_category_bid_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py index 0105bd8a..156df62b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py index 1d5e7c04..4545ca78 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py index f14517b2..72983e18 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py index e644e253..2aa86863 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py index 49a250d3..315aff59 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_display_multiplier_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py index 1d6a2dca..7a382d55 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_ad_set_scheduling.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py index c1638657..03da7248 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py index ba6586c2..e0e527d5 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py index c6bb5d6e..83a9c996 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py index 098c2b41..e02ee669 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_campaign_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py index 7e6553f0..3382ac74 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py index efae0c0a..c63e5a72 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/patch_result_campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py index 191544a8..126b566f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py index 855de0fc..a9aa7ca7 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py index 9c9c3de9..7f808677 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/placements_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py index 26c16f43..9409c39e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py index 28432a6f..acd4493b 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py index 03d567ac..6eb7563a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/problems_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py index e8ec2329..4349848e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py index e6121fe9..9ff2456a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py index 6c06b12e..44c6629a 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py index b59c691c..bf75699e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_ad_set_schedule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py index 421725ad..f8d2dd87 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py index b0e2c554..16fa70ba 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/read_model_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py index 07380006..2caf972d 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py index fa3431a8..185a0fb5 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py index 03220d7e..53ddf147 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/replace_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py index 5788b528..66d5e400 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/request_ad_set_search.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py index 6331647a..d4eb5e47 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py index ea2cadbd..722f56e8 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/requests_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py index 39a476bd..2e3b5fdf 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py index 62da99e9..12bc447f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/response_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py index dcb54bee..04c6d681 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py index e6312fad..5083304e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/responses_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py index a48133d1..afc03221 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/statistics_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py index 814ff9cf..92526b39 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py index 6953c0b7..08630075 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py index 1bd37b72..af4472ec 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transactions_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py index c92ebd60..4b80084f 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py index 573913eb..0fe81e3e 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py index 9faaf3f4..2eee16fe 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py index 800e239b..df2f3eb7 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py index a217037f..5ea2ae51 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/transparency_report_file.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py index 92562cf8..f081d435 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py index bf408e08..78d23adb 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model/write_model_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py index 4873ff0f..b2df0fd3 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/rest.py b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/rest.py index 9402bbb9..4401d570 100644 --- a/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/rest.py +++ b/sdks/marketingsolutions_2022-07/criteo_api_marketingsolutions_v2022_07/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-07/docs/AudienceApi.md b/sdks/marketingsolutions_2022-07/docs/AudienceApi.md index 8247d189..2b1ad0e2 100644 --- a/sdks/marketingsolutions_2022-07/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2022-07/docs/AudienceApi.md @@ -436,7 +436,6 @@ with criteo_api_marketingsolutions_v2022_07.ApiClient(configuration) as api_clie "identifiers_example", ], gum_caller_id=1, - internal_identifiers=True, ), ), ) # ContactlistAmendmentRequest | diff --git a/sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentAttributes.md index 4567fd90..dab37703 100644 --- a/sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2022-07/docs/ContactlistAmendmentAttributes.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **identifiers** | **[str]** | The users tos add or remove, each in the schema specified | **identifier_type** | **str** | What type of identifiers are used | [optional] **gum_caller_id** | **int** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] -**internal_identifiers** | **bool** | The flag to indicate if identifiers are external or internal | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2022-07/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2022-07/docs/ContactlistOperationAttributes.md index fdd380b4..db50c0c9 100644 --- a/sdks/marketingsolutions_2022-07/docs/ContactlistOperationAttributes.md +++ b/sdks/marketingsolutions_2022-07/docs/ContactlistOperationAttributes.md @@ -6,7 +6,7 @@ the contactlist operation attributes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | **str** | The action recorded | -**contact_list_id** | **str** | the affected user list id | [optional] +**contact_list_id** | **int** | the affected user list id | [optional] **request_date** | **datetime** | When the action was recorded | [optional] **identifier_type** | **str** | The schema specified for of the identifiers | [optional] **nb_valid_identifiers** | **int** | How many identifiers were valid for the specified schema | [optional] diff --git a/sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRule.md index 5efe89ee..a0c8681e 100644 --- a/sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2022-07/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2022-07/setup.py b/sdks/marketingsolutions_2022-07/setup.py index a568b1a5..0bcc4bf6 100644 --- a/sdks/marketingsolutions_2022-07/setup.py +++ b/sdks/marketingsolutions_2022-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2022.07.0.230601" +VERSION = "2022.07.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2022.07.0.230601 +pip install criteo-api-marketingsolutions-sdk==2022.07.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.07.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.07.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2022-10/README.md b/sdks/marketingsolutions_2022-10/README.md index 2a282844..8100db1a 100644 --- a/sdks/marketingsolutions_2022-10/README.md +++ b/sdks/marketingsolutions_2022-10/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2022.10.0.230601 +- Package version: 2022.10.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2022.10.0.230601 +pip install criteo-api-marketingsolutions-sdk==2022.10.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.10.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.10.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py index 4fad0aaf..0eb68809 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech """ -__version__ = "2022.10.0.230601" +__version__ = "2022.10.0.230726" # import ApiClient from criteo_api_marketingsolutions_v2022_10.api_client import ApiClient diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py index a891345a..e9a32f8d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/advertiser_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/analytics_api.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/analytics_api.py index 1e8c6b6b..88d00553 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/analytics_api.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/audience_api.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/audience_api.py index 32b05e47..2ec6db5c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/audience_api.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py index 0bbc7348..491d1297 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/gateway_api.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/gateway_api.py index 1941fb9b..3d297cb3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/gateway_api.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py index dfae7333..fb28280b 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2022.10.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2022.10.0.230726/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py index 97ca2f88..71772224 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2022-10\n"\ - "SDK Package Version: 2022.10.0.230601".\ + "SDK Package Version: 2022.10.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py index e14821d8..72e2ea45 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py index 943e5fd2..9ae15c7b 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py index 7befc1e0..74e426de 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py index 0e0154c5..1311419f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py index a5ac4251..2a4f2d40 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_delivery_limitations.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py index cefa6e17..417e6f2d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py index 86634d75..c6033584 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py index c422cc58..1117598f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py index 73932d57..a2cb201d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_frequency_capping.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py index ace42a5b..51515864 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_geo_location.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py index 62bdeefd..c052e84b 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_search_filter.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py index 8993bb33..2a49e741 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py index 3faa9a78..8004b288 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py index e4ed3f40..b34ff760 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py index f8af9743..3823dfbd 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py index b748b1b6..d3531335 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py index f84ab2e3..12327599 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py index 03e94002..45c0cb59 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_error.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_error.py index 0020b1a4..9fb9e760 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_error.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py index 0f968ac9..7d0caad5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_name_description.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_warning.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_warning.py index 51c621a8..ce218e84 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_warning.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/audience_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py index 525c8c57..51472d8c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/basic_audience_definition.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py index 8875ea96..8d9b380f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py index f03fb130..92c802aa 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py index 1afb8cce..c5126a0e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py index de17424d..458f21c9 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py index acd0a82c..83ac479d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_filters.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py index f1755be8..44cb1aad 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_search_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py index c88d9c4f..0ef352a5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py index d519b1f7..74940581 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py index 53a7c7dc..a3344b2f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py index 3eaaa234..a531a748 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -64,6 +64,7 @@ class ContactlistAmendmentAttributes(ModelNormal): 'MADID': "madid", 'IDENTITYLINK': "identityLink", 'GUM': "gum", + 'CUSTOMERID': "customerid", }, } @@ -95,7 +96,6 @@ def openapi_types(): 'identifiers': ([str],), # noqa: E501 'identifier_type': (str,), # noqa: E501 'gum_caller_id': (int,), # noqa: E501 - 'internal_identifiers': (bool,), # noqa: E501 } @cached_property @@ -108,7 +108,6 @@ def discriminator(): 'identifiers': 'identifiers', # noqa: E501 'identifier_type': 'identifierType', # noqa: E501 'gum_caller_id': 'gumCallerId', # noqa: E501 - 'internal_identifiers': 'internalIdentifiers', # noqa: E501 } read_only_vars = { @@ -158,7 +157,6 @@ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,7 +250,6 @@ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py index 8e401e60..1f2e69d7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_amendment_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py index 138bb1ee..a0324ba5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py index 39a071c4..3adf3d65 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/contactlist_operation_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ return { 'operation': (str,), # noqa: E501 - 'contact_list_id': (str,), # noqa: E501 + 'contact_list_id': (int,), # noqa: E501 'request_date': (datetime,), # noqa: E501 'identifier_type': (str,), # noqa: E501 'nb_valid_identifiers': (int,), # noqa: E501 @@ -149,7 +149,7 @@ def _from_openapi_data(cls, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py index fc9ff3aa..76d35c79 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py index 75aeebaf..4b73034e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/criteo_api_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py index d297d97e..d38ae3ad 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_contact_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py index a2e16e27..2cb63a46 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/delete_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py index 02996042..deda2bf9 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/entity_of_portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py index b72eb00d..c6bcfa88 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/error_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py index 243d21d3..e4515421 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_audiences_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py index 7f4875ba..e417729d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/get_portfolio_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py index 39674178..10ebc77d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/modify_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience.py index 0c780bda..44aa365b 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py index 6ead5ac7..2297f24f 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py index 1cd17290..669462e0 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py index a41b5d6a..d97b7948 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/new_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py index 40e8f081..0ea864f2 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -106,9 +106,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -140,7 +143,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -172,6 +174,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -192,9 +195,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,7 +232,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -256,6 +261,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py index 32484f6c..27f264a3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_ad_set_targeting_rule_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py index 2d2f0b92..c0dff416 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_date_time.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py index d6ca2d98..ff44fefd 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/nillable_decimal.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py index 998b7799..8bdc75a3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py index 4f8c969a..a1b828d6 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py index c3662c23..135581e0 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py index 47c2295b..dad7a966 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py index 781c58ea..67c24689 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py index 1a20c716..86ac263c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py index 48d89aa1..35b48a4d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py index ce1a5cf1..8e35c236 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_category_bid_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py index 1535c122..a44dd2d0 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py index de0fb0db..e3101f79 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py index 7bbe1ecb..450a3fc1 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py index e61de979..1f9cc52e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py index 9eea4b76..c8cc3eba 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_display_multiplier_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py index dcc16ba8..94f862dc 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_ad_set_scheduling.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py index a1d4e57a..51293762 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py index 3d5fdee6..5b7228c3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py index 66d5f7e0..e4e451f4 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py index 9ab76190..5315f6ef 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_campaign_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py index 35fe3dde..43250f99 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py index 6ed44bd7..73c5bbb4 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/patch_result_campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py index d935118d..a2af5d0c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py index 5308c17e..a0c86e70 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py index 6acd22d1..b187f3d3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/placements_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py index 16f634e4..32df3b3c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py index 6ead5484..0350651d 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py index 2607bc3e..34e836c1 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/problems_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py index 8a4ee5a5..44a21b96 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py index cc45dcb6..618e2f77 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py index 38d3daf1..669a1f82 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py index 12f49581..2c659e89 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_ad_set_schedule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py index 04f942d6..3daad1ef 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py index 60e86e18..68773ed0 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/read_model_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience.py index 7b396ee1..abf9d37c 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py index 1c5be0be..5c622b67 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py index 9726164b..0d22ab58 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/replace_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py index e738296a..b66ef2d7 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/request_ad_set_search.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py index c41530aa..251ab10b 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py index 73ad6d0c..df064840 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/requests_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py index e675e103..5252b185 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py index 6e28c0e0..8e8c07d3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/response_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py index c60212ea..c23b9dfb 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py index 10d189d7..143bb92e 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/responses_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py index a51308ad..06ea7dc1 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/statistics_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py index caa3d9cf..29353a46 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py index c14685a9..92523208 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py index 7d75b0a3..a67a73e3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transactions_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py index 71496ba4..27ea08af 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py index 4e51015c..5b3d9f86 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py index a44606d1..359144f4 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py index ad70a5cb..be8520b5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py index 8f3f259a..579d9fae 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/transparency_report_file.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py index aeced057..bce92ba5 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py index 46a966a8..f4a51035 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model/write_model_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py index 23ecdccd..8861edf3 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py index fdb0055f..11d914bf 100644 --- a/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py +++ b/sdks/marketingsolutions_2022-10/criteo_api_marketingsolutions_v2022_10/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2022-10/docs/AudienceApi.md b/sdks/marketingsolutions_2022-10/docs/AudienceApi.md index ce2fbc86..30b4b2a6 100644 --- a/sdks/marketingsolutions_2022-10/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2022-10/docs/AudienceApi.md @@ -436,7 +436,6 @@ with criteo_api_marketingsolutions_v2022_10.ApiClient(configuration) as api_clie "identifiers_example", ], gum_caller_id=1, - internal_identifiers=True, ), ), ) # ContactlistAmendmentRequest | diff --git a/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md index 4567fd90..dab37703 100644 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2022-10/docs/ContactlistAmendmentAttributes.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **identifiers** | **[str]** | The users tos add or remove, each in the schema specified | **identifier_type** | **str** | What type of identifiers are used | [optional] **gum_caller_id** | **int** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] -**internal_identifiers** | **bool** | The flag to indicate if identifiers are external or internal | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md index fdd380b4..db50c0c9 100644 --- a/sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md +++ b/sdks/marketingsolutions_2022-10/docs/ContactlistOperationAttributes.md @@ -6,7 +6,7 @@ the contactlist operation attributes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | **str** | The action recorded | -**contact_list_id** | **str** | the affected user list id | [optional] +**contact_list_id** | **int** | the affected user list id | [optional] **request_date** | **datetime** | When the action was recorded | [optional] **identifier_type** | **str** | The schema specified for of the identifiers | [optional] **nb_valid_identifiers** | **int** | How many identifiers were valid for the specified schema | [optional] diff --git a/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md index 5efe89ee..a0c8681e 100644 --- a/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2022-10/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2022-10/setup.py b/sdks/marketingsolutions_2022-10/setup.py index d7fde3dc..90ff8a7e 100644 --- a/sdks/marketingsolutions_2022-10/setup.py +++ b/sdks/marketingsolutions_2022-10/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2022.10.0.230601" +VERSION = "2022.10.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2022.10.0.230601 +pip install criteo-api-marketingsolutions-sdk==2022.10.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.10.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2022.10.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-01/README.md b/sdks/marketingsolutions_2023-01/README.md index bfc19a2b..4e8e7dc2 100644 --- a/sdks/marketingsolutions_2023-01/README.md +++ b/sdks/marketingsolutions_2023-01/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.01.0.230601 +- Package version: 2023.01.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.01.0.230601 +pip install criteo-api-marketingsolutions-sdk==2023.01.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py index a4930e25..1d2d9eed 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech """ -__version__ = "2023.01.0.230601" +__version__ = "2023.01.0.230726" # import ApiClient from criteo_api_marketingsolutions_v2023_01.api_client import ApiClient diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/advertiser_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/advertiser_api.py index 882fa5df..cf186f73 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/advertiser_api.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/advertiser_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/analytics_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/analytics_api.py index b3afaab5..95d614ec 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/analytics_api.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/audience_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/audience_api.py index 3468e4a3..25e99db5 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/audience_api.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py index b4545a53..0f13df80 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/gateway_api.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/gateway_api.py index 7d513f46..325adeda 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/gateway_api.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py index 444caaae..4fd7a356 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.01.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2023.01.0.230726/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py index 992df2b7..55984e36 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-01\n"\ - "SDK Package Version: 2023.01.0.230601".\ + "SDK Package Version: 2023.01.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/exceptions.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/exceptions.py index e5d8fb07..324a3832 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/exceptions.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid.py index 0efb0a14..a4a21a6b 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py index 4e50f90b..40da5327 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_resource.py index cc1c65d7..6c377c27 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py index bfe1dd6b..e087d81b 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_delivery_limitations.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier.py index 1b35f45c..0088c0d6 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py index b422b21e..e81b8bcb 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_resource.py index 792ff89d..dab4dafe 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py index f0f7c661..57d227f3 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_frequency_capping.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_geo_location.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_geo_location.py index 4287dd31..5286ab9f 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_geo_location.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py index 3adf736e..d9191e5e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_search_filter.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting.py index 735c1636..b95c0b5a 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py index 187ba950..5616d889 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model.py index 758145e4..b69ec675 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_resource.py index cfbf5e55..915d3fe3 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_response.py index 25ca4708..b27cff28 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience.py index 145a1478..af0b139c 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_attributes.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_attributes.py index 1c240eb9..e97054a1 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_attributes.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_error.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_error.py index 25785edf..18bef304 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_error.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_name_description.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_name_description.py index 084ee538..5894366e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_name_description.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_name_description.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_warning.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_warning.py index 352269cc..38380f9f 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_warning.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/audience_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/basic_audience_definition.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/basic_audience_definition.py index 9dc6d3f9..6d1f0f10 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/basic_audience_definition.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py index 6bb131b3..6f195bfd 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py index 5d8c943f..ca950359 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_read_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_read_resource.py index fb292d13..431244e9 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py index 0d59189d..5fe9dfb8 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py index bb685901..8d8665de 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_filters.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_request.py index 91b885be..82bf18f4 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_search_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py index df8b0b16..2a2a92e1 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/common_problem.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/common_problem.py index 458170f4..bc5538b8 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/common_problem.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment.py index 780ca782..e83b825a 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_attributes.py index 98d447a5..bedc7849 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -64,6 +64,7 @@ class ContactlistAmendmentAttributes(ModelNormal): 'MADID': "madid", 'IDENTITYLINK': "identityLink", 'GUM': "gum", + 'CUSTOMERID': "customerid", }, } @@ -95,7 +96,6 @@ def openapi_types(): 'identifiers': ([str],), # noqa: E501 'identifier_type': (str,), # noqa: E501 'gum_caller_id': (int,), # noqa: E501 - 'internal_identifiers': (bool,), # noqa: E501 } @cached_property @@ -108,7 +108,6 @@ def discriminator(): 'identifiers': 'identifiers', # noqa: E501 'identifier_type': 'identifierType', # noqa: E501 'gum_caller_id': 'gumCallerId', # noqa: E501 - 'internal_identifiers': 'internalIdentifiers', # noqa: E501 } read_only_vars = { @@ -158,7 +157,6 @@ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,7 +250,6 @@ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_request.py index 1686306f..69d20268 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_amendment_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation.py index 1cbbfb82..6b7d75ac 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation_attributes.py index 869110a6..1a2f1dd5 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/contactlist_operation_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ return { 'operation': (str,), # noqa: E501 - 'contact_list_id': (str,), # noqa: E501 + 'contact_list_id': (int,), # noqa: E501 'request_date': (datetime,), # noqa: E501 'identifier_type': (str,), # noqa: E501 'nb_valid_identifiers': (int,), # noqa: E501 @@ -149,7 +149,7 @@ def _from_openapi_data(cls, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_error.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_error.py index a69367f8..0d771f50 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_error.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_warning.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_warning.py index 8b3980f6..87a836dc 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/criteo_api_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_contact_list_response.py index bac2b2e6..39acabae 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_contact_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_response.py index 5ef63c74..5054188f 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/delete_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/entity_of_portfolio_message.py index e3799e80..4fe31e69 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/entity_of_portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/error_code_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/error_code_response.py index 2adf5335..9a2ebe6c 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/error_code_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/error_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_audiences_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_audiences_response.py index a2feb255..153d269e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_audiences_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_audiences_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_portfolio_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_portfolio_response.py index 2b5e2d29..f92b7446 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/get_portfolio_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/modify_audience_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/modify_audience_response.py index 3ad0eb17..43c4414b 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/modify_audience_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/modify_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience.py index 7076c106..484ce30a 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_attributes.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_attributes.py index 429ae033..a1212e03 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_attributes.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_request.py index 59c49c74..2babe887 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_response.py index 691f2871..e300ca9f 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/new_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py index 968a019d..a6e1f88b 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -106,9 +106,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -140,7 +143,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -172,6 +174,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -192,9 +195,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,7 +232,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -256,6 +261,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py index 6e992ac0..026995f8 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_ad_set_targeting_rule_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py index f5475571..eb2913d9 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_date_time.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py index facfcc10..53a7e5ca 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/nillable_decimal.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py index 74065e61..d443f021 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_bidding.py index eb2e24b6..f76546c0 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py index d7f605c8..30ae7d13 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid.py index a2386314..98cd66c3 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py index 1e491099..df1b4d42 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_resource.py index 5c42177c..db4420a3 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py index 02324e92..5427dd25 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_resource.py index c6e61ed1..c3e5d5ac 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_category_bid_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier.py index 86781de5..970ea527 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py index 20acaf19..c67638d6 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_resource.py index 997c4c5a..f35a22be 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py index ac3d47c7..93f3f83e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_resource.py index 9b866bf2..c3c46fe8 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_display_multiplier_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_scheduling.py index e1a4671e..352796c2 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_ad_set_scheduling.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign.py index 78ea7486..9d547775 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py index d16b42c2..3439dfd0 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py index 12423063..113b48b2 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_write_resource.py index c9ada9af..d3ae644e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_campaign_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py index 82b30075..82456665 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_read_resource.py index 7fab3ab1..7cf8d4f5 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/patch_result_campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_data_message.py index 72181b44..cf2e912e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_entity_message.py index 485a8b5f..5aa14399 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_message.py index 2ec30d32..70cb075e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/placements_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/portfolio_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/portfolio_message.py index e4c83573..963cd7fc 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/portfolio_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py index 642b69f3..bc47b7ba 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problems_details.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problems_details.py index 4a247c26..55a1b811 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problems_details.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/problems_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py index c09e56dd..d94d859d 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_bidding.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_bidding.py index 19672f76..181d2756 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py index 0e70a13c..f8685301 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py index 690e2ee4..6fae1146 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_ad_set_schedule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_ad_set_id.py index fff031b2..e7acb0d4 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_read_ad_set.py index ae46fd66..d10660e9 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/read_model_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience.py index 49cf86be..989e48e2 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_request.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_request.py index 8ce04b5b..3aaea088 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_request.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_response.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_response.py index 923bb730..57607b17 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_response.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/replace_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/request_ad_set_search.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/request_ad_set_search.py index ab97e7ad..1b58a131 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/request_ad_set_search.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/request_ad_set_search.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py index 5e3c9b6d..61e88e35 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py index c35cd9a0..b207751f 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/requests_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py index 57bc3bae..d6b2849b 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py index 5a64952b..697fc2ec 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/response_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py index 0f4d9421..0d99a6c6 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py index 8ab9fc09..688a85ee 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/responses_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/statistics_report_query_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/statistics_report_query_message.py index 53c249f3..d3da6920 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/statistics_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_data_message.py index cc9a17bd..1aaa5bac 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_entity_message.py index af125421..f4023643 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_message.py index f59022c5..205c5c5e 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transactions_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_query_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_query_message.py index 692c0569..fb52e8d4 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_attributes.py index 149bac02..320027bb 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_data_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_data_message.py index aca080c9..a7a358f7 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_entity_message.py index 233541ea..7577c7a1 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_file.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_file.py index bbca76ca..aef0d2c3 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/transparency_report_file.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_ad_set_id.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_ad_set_id.py index 1747c15e..d9b8c37a 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_patch_ad_set.py index 2430193a..8454f758 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model/write_model_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model_utils.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model_utils.py index 54e52b7a..7f0370a8 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model_utils.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/rest.py b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/rest.py index 5c4ed363..2b2549be 100644 --- a/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/rest.py +++ b/sdks/marketingsolutions_2023-01/criteo_api_marketingsolutions_v2023_01/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-01/docs/AudienceApi.md b/sdks/marketingsolutions_2023-01/docs/AudienceApi.md index 44093b5c..458747c7 100644 --- a/sdks/marketingsolutions_2023-01/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2023-01/docs/AudienceApi.md @@ -436,7 +436,6 @@ with criteo_api_marketingsolutions_v2023_01.ApiClient(configuration) as api_clie "identifiers_example", ], gum_caller_id=1, - internal_identifiers=True, ), ), ) # ContactlistAmendmentRequest | diff --git a/sdks/marketingsolutions_2023-01/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2023-01/docs/ContactlistAmendmentAttributes.md index 4567fd90..dab37703 100644 --- a/sdks/marketingsolutions_2023-01/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2023-01/docs/ContactlistAmendmentAttributes.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **identifiers** | **[str]** | The users tos add or remove, each in the schema specified | **identifier_type** | **str** | What type of identifiers are used | [optional] **gum_caller_id** | **int** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] -**internal_identifiers** | **bool** | The flag to indicate if identifiers are external or internal | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-01/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2023-01/docs/ContactlistOperationAttributes.md index fdd380b4..db50c0c9 100644 --- a/sdks/marketingsolutions_2023-01/docs/ContactlistOperationAttributes.md +++ b/sdks/marketingsolutions_2023-01/docs/ContactlistOperationAttributes.md @@ -6,7 +6,7 @@ the contactlist operation attributes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | **str** | The action recorded | -**contact_list_id** | **str** | the affected user list id | [optional] +**contact_list_id** | **int** | the affected user list id | [optional] **request_date** | **datetime** | When the action was recorded | [optional] **identifier_type** | **str** | The schema specified for of the identifiers | [optional] **nb_valid_identifiers** | **int** | How many identifiers were valid for the specified schema | [optional] diff --git a/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md index 5efe89ee..a0c8681e 100644 --- a/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-01/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-01/setup.py b/sdks/marketingsolutions_2023-01/setup.py index 6011c3fe..8d2781a4 100644 --- a/sdks/marketingsolutions_2023-01/setup.py +++ b/sdks/marketingsolutions_2023-01/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.01.0.230601" +VERSION = "2023.01.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.01.0.230601 +pip install criteo-api-marketingsolutions-sdk==2023.01.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.01.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-04/README.md b/sdks/marketingsolutions_2023-04/README.md index 16525cdb..e969f18b 100644 --- a/sdks/marketingsolutions_2023-04/README.md +++ b/sdks/marketingsolutions_2023-04/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.04.0.230601 +- Package version: 2023.04.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==2023.04.0.230601 +pip install criteo-api-marketingsolutions-sdk==2023.04.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py index 1637987e..ab77987a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech """ -__version__ = "2023.04.0.230601" +__version__ = "2023.04.0.230726" # import ApiClient from criteo_api_marketingsolutions_v2023_04.api_client import ApiClient diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/advertiser_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/advertiser_api.py index 1a0af466..536583a3 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/advertiser_api.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/advertiser_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/analytics_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/analytics_api.py index 29c74b52..0b2e6791 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/analytics_api.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/audience_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/audience_api.py index 0c8a8d23..43229201 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/audience_api.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py index 9aa7af49..f2552571 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/gateway_api.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/gateway_api.py index d596f1b0..a895b118 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/gateway_api.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py index 0c03b115..73e0b7b6 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.04.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2023.04.0.230726/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py index d6789a4a..5571934d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-04\n"\ - "SDK Package Version: 2023.04.0.230601".\ + "SDK Package Version: 2023.04.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/exceptions.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/exceptions.py index 18375d95..83587745 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/exceptions.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid.py index 30b82c5f..b1ff3d7b 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py index 74b78c59..23d00542 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_resource.py index f2e69595..8f4d9ee6 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py index 2188a78e..bef5145d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_delivery_limitations.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier.py index a62469de..46b5af23 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py index 1c3fadc4..8088f2d5 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_resource.py index 2f8d2e22..701ed2fb 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py index 2a3b08a7..50e4b960 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_frequency_capping.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_geo_location.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_geo_location.py index 9c2bd27c..e02fb2ed 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_geo_location.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py index 14a277af..32a0651f 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_search_filter.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting.py index 498361ac..8a55ea05 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py index 7cee78d6..5655ba7a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -75,7 +75,7 @@ def additional_properties_type(): """ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = True + _nullable = False @cached_property def openapi_types(): diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model.py index 40d0c246..f62408e3 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_resource.py index 01dd027e..1f77e12d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_response.py index bcb8f2bf..a3c68510 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience.py index 23b5b1fe..1a301720 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_attributes.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_attributes.py index cf3a313f..e6d19572 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_attributes.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_error.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_error.py index 953f1d37..c1d7482d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_error.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_name_description.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_name_description.py index 8394c20c..43a53dce 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_name_description.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_name_description.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_warning.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_warning.py index dacf80d8..3d3078b7 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_warning.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/audience_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/basic_audience_definition.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/basic_audience_definition.py index 2063a656..20f504ec 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/basic_audience_definition.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py index 725280de..8fbba198 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py index 50c45d84..e4dd0cd9 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_read_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_read_resource.py index e4055200..e823f15f 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py index 12e1d422..8f7a4323 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py index c06c11ac..e7cbaf33 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_filters.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_request.py index dccc33e8..70f5b1ac 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_search_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py index 05e93fa5..6b2597f2 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/common_problem.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/common_problem.py index 9086c2c5..5850456f 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/common_problem.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment.py index 245dd85c..fa58abe3 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_attributes.py index e26c68fd..e5d73269 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -64,6 +64,7 @@ class ContactlistAmendmentAttributes(ModelNormal): 'MADID': "madid", 'IDENTITYLINK': "identityLink", 'GUM': "gum", + 'CUSTOMERID': "customerid", }, } @@ -95,7 +96,6 @@ def openapi_types(): 'identifiers': ([str],), # noqa: E501 'identifier_type': (str,), # noqa: E501 'gum_caller_id': (int,), # noqa: E501 - 'internal_identifiers': (bool,), # noqa: E501 } @cached_property @@ -108,7 +108,6 @@ def discriminator(): 'identifiers': 'identifiers', # noqa: E501 'identifier_type': 'identifierType', # noqa: E501 'gum_caller_id': 'gumCallerId', # noqa: E501 - 'internal_identifiers': 'internalIdentifiers', # noqa: E501 } read_only_vars = { @@ -158,7 +157,6 @@ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,7 +250,6 @@ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_request.py index ed09875b..206c0693 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_amendment_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation.py index 1951fd59..7aaee4e8 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation_attributes.py index a50a459c..cd1476dc 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/contactlist_operation_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ return { 'operation': (str,), # noqa: E501 - 'contact_list_id': (str,), # noqa: E501 + 'contact_list_id': (int,), # noqa: E501 'request_date': (datetime,), # noqa: E501 'identifier_type': (str,), # noqa: E501 'nb_valid_identifiers': (int,), # noqa: E501 @@ -149,7 +149,7 @@ def _from_openapi_data(cls, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_error.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_error.py index 762e48c5..ab349d22 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_error.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_warning.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_warning.py index 485463b0..fcfe53ec 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/criteo_api_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_contact_list_response.py index 65872d15..eaf9d07c 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_contact_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_response.py index 3d557a8e..dea3f737 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/delete_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/entity_of_portfolio_message.py index 705b06be..24f75df0 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/entity_of_portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/error_code_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/error_code_response.py index eacd18e5..da665fc4 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/error_code_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/error_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_audiences_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_audiences_response.py index 14cc1712..1834d2d1 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_audiences_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_audiences_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_portfolio_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_portfolio_response.py index 5163cbbe..3b631449 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/get_portfolio_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/modify_audience_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/modify_audience_response.py index 4c8b3d3b..c2d001f2 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/modify_audience_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/modify_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience.py index fe1a0535..8446abad 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_attributes.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_attributes.py index 2a81f923..00edfadd 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_attributes.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_request.py index e41403ca..0f102eb5 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_response.py index e470fc8c..528aafeb 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/new_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py index 0cf16ac8..3cce1f45 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -106,9 +106,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -140,7 +143,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -172,6 +174,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -192,9 +195,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, value, *args, **kwargs): # noqa: E501 """NillableAdSetTargetingRule - a model defined in OpenAPI + Args: + value (NillableAdSetTargetingRuleValue): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -226,7 +232,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - value (NillableAdSetTargetingRuleValue): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -256,6 +261,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py index 4f598f67..9d27a872 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_ad_set_targeting_rule_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py index 62515106..41616949 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_date_time.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py index 7cc0f101..ed15811d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/nillable_decimal.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py index d74c51e5..b6de7c84 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_bidding.py index 177ed2c7..87a26be5 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py index 7587c202..f5d32521 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid.py index c6ad47eb..9c0252c8 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py index b71cebe4..7447a816 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_resource.py index ff53c1bc..037e3ee9 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py index 99f403cb..7ea31750 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_resource.py index 24a9a976..620315bb 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_category_bid_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier.py index 8f0983d3..8bcf4cee 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py index 7bd1a654..cf3c8437 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_resource.py index 29d811f9..77f89e5b 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py index c96886c3..1e73726a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_resource.py index 765f3c04..dac608af 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_display_multiplier_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_scheduling.py index f371727a..26f4c586 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_ad_set_scheduling.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign.py index 43aba3c1..6f33b7b2 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py index 9b72b7e3..a8f377a0 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py index 0996fb35..942834e8 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_write_resource.py index b0ed9e36..713c1d41 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_campaign_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py index 03470db2..77a8179d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_read_resource.py index e1ac9fc6..3df48263 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/patch_result_campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_data_message.py index 32e516d9..666fe4dd 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_entity_message.py index 076d15bd..ae1774c3 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_message.py index 40abcd17..744d9544 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/placements_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/portfolio_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/portfolio_message.py index 6bcd3ed7..73eaeaf1 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/portfolio_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py index ce7b2df5..d0ad4086 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problems_details.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problems_details.py index 7a6dca33..1d209c52 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problems_details.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/problems_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py index 7a24a991..d4d9163d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_bidding.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_bidding.py index 9ad4cc6c..53e9c579 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_bidding.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py index 2bfb0137..0c00d816 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py index 9debcf8c..b9bc1f61 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_ad_set_schedule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_ad_set_id.py index de783c14..4b291683 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_read_ad_set.py index f7877f7e..920cc299 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/read_model_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience.py index c07c02d4..1d9d5a9e 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_request.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_request.py index f00ee4c0..8a735161 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_request.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_response.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_response.py index f507a90e..cdb48564 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_response.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/replace_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/request_ad_set_search.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/request_ad_set_search.py index a58a5037..d54d353a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/request_ad_set_search.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/request_ad_set_search.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py index 7cd7fb6e..2044356e 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py index e75b66d1..90542032 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/requests_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py index 69122baa..3d250d93 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py index 8224f925..3fc4cdc5 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/response_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py index f835af2e..fd004080 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py index 8d219e14..8d53531c 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/responses_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/statistics_report_query_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/statistics_report_query_message.py index 0d063304..d6014da2 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/statistics_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_data_message.py index dbd2b024..92a7d457 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_entity_message.py index b733212a..7814b06d 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_message.py index a965fa47..78497244 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transactions_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_query_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_query_message.py index 924008d8..751f9b21 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_query_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_attributes.py index 920315ad..87aadeec 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_data_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_data_message.py index 725cf65e..f17f509c 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_entity_message.py index 7aeaa0ec..1829fa52 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_file.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_file.py index ee5493c3..4a29158c 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_file.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/transparency_report_file.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_ad_set_id.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_ad_set_id.py index a4a1c9cc..9e3a059a 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_patch_ad_set.py index 3131e5aa..328f4b0f 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model/write_model_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model_utils.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model_utils.py index 64fbd869..d6e7f269 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model_utils.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/rest.py b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/rest.py index b5f2b7f2..9ecd4a59 100644 --- a/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/rest.py +++ b/sdks/marketingsolutions_2023-04/criteo_api_marketingsolutions_v2023_04/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_2023-04/docs/AudienceApi.md b/sdks/marketingsolutions_2023-04/docs/AudienceApi.md index 6021f868..c385e6b0 100644 --- a/sdks/marketingsolutions_2023-04/docs/AudienceApi.md +++ b/sdks/marketingsolutions_2023-04/docs/AudienceApi.md @@ -436,7 +436,6 @@ with criteo_api_marketingsolutions_v2023_04.ApiClient(configuration) as api_clie "identifiers_example", ], gum_caller_id=1, - internal_identifiers=True, ), ), ) # ContactlistAmendmentRequest | diff --git a/sdks/marketingsolutions_2023-04/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2023-04/docs/ContactlistAmendmentAttributes.md index 4567fd90..dab37703 100644 --- a/sdks/marketingsolutions_2023-04/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_2023-04/docs/ContactlistAmendmentAttributes.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **identifiers** | **[str]** | The users tos add or remove, each in the schema specified | **identifier_type** | **str** | What type of identifiers are used | [optional] **gum_caller_id** | **int** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] -**internal_identifiers** | **bool** | The flag to indicate if identifiers are external or internal | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-04/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2023-04/docs/ContactlistOperationAttributes.md index fdd380b4..db50c0c9 100644 --- a/sdks/marketingsolutions_2023-04/docs/ContactlistOperationAttributes.md +++ b/sdks/marketingsolutions_2023-04/docs/ContactlistOperationAttributes.md @@ -6,7 +6,7 @@ the contactlist operation attributes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | **str** | The action recorded | -**contact_list_id** | **str** | the affected user list id | [optional] +**contact_list_id** | **int** | the affected user list id | [optional] **request_date** | **datetime** | When the action was recorded | [optional] **identifier_type** | **str** | The schema specified for of the identifiers | [optional] **nb_valid_identifiers** | **int** | How many identifiers were valid for the specified schema | [optional] diff --git a/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md index 5efe89ee..a0c8681e 100644 --- a/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md +++ b/sdks/marketingsolutions_2023-04/docs/NillableAdSetTargetingRule.md @@ -5,7 +5,7 @@ structure that encapsulates an object that have valid business null values. If t ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | [optional] +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-04/setup.py b/sdks/marketingsolutions_2023-04/setup.py index c888e059..4bc1b6af 100644 --- a/sdks/marketingsolutions_2023-04/setup.py +++ b/sdks/marketingsolutions_2023-04/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "2023.04.0.230601" +VERSION = "2023.04.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==2023.04.0.230601 +pip install criteo-api-marketingsolutions-sdk==2023.04.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.04.0.230726`) Then import the package: ```python diff --git a/sdks/marketingsolutions_2023-07/.gitignore b/sdks/marketingsolutions_2023-07/.gitignore new file mode 100644 index 00000000..43995bd4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/.gitignore @@ -0,0 +1,66 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/sdks/marketingsolutions_2023-07/.gitlab-ci.yml b/sdks/marketingsolutions_2023-07/.gitlab-ci.yml new file mode 100644 index 00000000..fedb5b98 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# ref: https://docs.gitlab.com/ee/ci/README.html + +stages: + - test + +.tests: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=criteo_api_marketingsolutions_v2023_07 + +test-3.6: + extends: .tests + image: python:3.6-alpine +test-3.7: + extends: .tests + image: python:3.7-alpine +test-3.8: + extends: .tests + image: python:3.8-alpine +test-3.9: + extends: .tests + image: python:3.9-alpine diff --git a/sdks/marketingsolutions_2023-07/.openapi-generator/FILES b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES new file mode 100644 index 00000000..ba9e3e6c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/.openapi-generator/FILES @@ -0,0 +1,560 @@ +.gitignore +.gitlab-ci.yml +.openapi-generator-ignore +.travis.yml +README.md +criteo_api_marketingsolutions_v2023_07/__init__.py +criteo_api_marketingsolutions_v2023_07/api/__init__.py +criteo_api_marketingsolutions_v2023_07/api/advertiser_api.py +criteo_api_marketingsolutions_v2023_07/api/analytics_api.py +criteo_api_marketingsolutions_v2023_07/api/audience_api.py +criteo_api_marketingsolutions_v2023_07/api/campaign_api.py +criteo_api_marketingsolutions_v2023_07/api/creative_api.py +criteo_api_marketingsolutions_v2023_07/api/gateway_api.py +criteo_api_marketingsolutions_v2023_07/api_client.py +criteo_api_marketingsolutions_v2023_07/api_client_builder.py +criteo_api_marketingsolutions_v2023_07/apis/__init__.py +criteo_api_marketingsolutions_v2023_07/configuration.py +criteo_api_marketingsolutions_v2023_07/criteo_api_client.py +criteo_api_marketingsolutions_v2023_07/criteo_auth.py +criteo_api_marketingsolutions_v2023_07/criteo_rest.py +criteo_api_marketingsolutions_v2023_07/exceptions.py +criteo_api_marketingsolutions_v2023_07/flow_constants.py +criteo_api_marketingsolutions_v2023_07/model/__init__.py +criteo_api_marketingsolutions_v2023_07/model/ad.py +criteo_api_marketingsolutions_v2023_07/model/ad_list_response.py +criteo_api_marketingsolutions_v2023_07/model/ad_resource.py +criteo_api_marketingsolutions_v2023_07/model/ad_response.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_response.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_input_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_resource.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_resource.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_geo_location.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting.py +criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py +criteo_api_marketingsolutions_v2023_07/model/ad_write.py +criteo_api_marketingsolutions_v2023_07/model/ad_write_request.py +criteo_api_marketingsolutions_v2023_07/model/ad_write_resource.py +criteo_api_marketingsolutions_v2023_07/model/adaptive_attributes.py +criteo_api_marketingsolutions_v2023_07/model/adaptive_colors.py +criteo_api_marketingsolutions_v2023_07/model/adaptive_write_attributes.py +criteo_api_marketingsolutions_v2023_07/model/algebra_node_v1.py +criteo_api_marketingsolutions_v2023_07/model/application_summary_model.py +criteo_api_marketingsolutions_v2023_07/model/application_summary_model_resource.py +criteo_api_marketingsolutions_v2023_07/model/application_summary_model_response.py +criteo_api_marketingsolutions_v2023_07/model/audience.py +criteo_api_marketingsolutions_v2023_07/model/audience_attributes.py +criteo_api_marketingsolutions_v2023_07/model/audience_bulk_create_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_bulk_delete_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_bulk_update_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_compute_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_compute_sizes_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_delete_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_audience_search_metadata_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_error.py +criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_name_description.py +criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_search_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_search_metadata_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_create_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_delete_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_update_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_sizes_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_delete_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_estimate_size_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_input_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_metadata_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_response.py +criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/audience_warning.py +criteo_api_marketingsolutions_v2023_07/model/basic_audience_definition.py +criteo_api_marketingsolutions_v2023_07/model/behavioral_v1.py +criteo_api_marketingsolutions_v2023_07/model/campaign.py +criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py +criteo_api_marketingsolutions_v2023_07/model/campaign_read_resource.py +criteo_api_marketingsolutions_v2023_07/model/campaign_response.py +criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py +criteo_api_marketingsolutions_v2023_07/model/campaign_search_request.py +criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py +criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py +criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py +criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_resource.py +criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py +criteo_api_marketingsolutions_v2023_07/model/common_problem.py +criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_response.py +criteo_api_marketingsolutions_v2023_07/model/contact_list_v1.py +criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment.py +criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_attributes.py +criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_request.py +criteo_api_marketingsolutions_v2023_07/model/contactlist_operation.py +criteo_api_marketingsolutions_v2023_07/model/contactlist_operation_attributes.py +criteo_api_marketingsolutions_v2023_07/model/coupon.py +criteo_api_marketingsolutions_v2023_07/model/coupon_list_response.py +criteo_api_marketingsolutions_v2023_07/model/coupon_resource.py +criteo_api_marketingsolutions_v2023_07/model/coupon_response.py +criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes.py +criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_resource.py +criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_response.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_bidding.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_budget.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_geo_location.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_request.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_resource.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_schedule.py +criteo_api_marketingsolutions_v2023_07/model/create_ad_set_targeting.py +criteo_api_marketingsolutions_v2023_07/model/create_campaign.py +criteo_api_marketingsolutions_v2023_07/model/create_campaign_request.py +criteo_api_marketingsolutions_v2023_07/model/create_campaign_resource.py +criteo_api_marketingsolutions_v2023_07/model/create_campaign_spend_limit.py +criteo_api_marketingsolutions_v2023_07/model/create_coupon.py +criteo_api_marketingsolutions_v2023_07/model/create_coupon_request.py +criteo_api_marketingsolutions_v2023_07/model/create_coupon_resource.py +criteo_api_marketingsolutions_v2023_07/model/create_image_slide.py +criteo_api_marketingsolutions_v2023_07/model/creative.py +criteo_api_marketingsolutions_v2023_07/model/creative_list_response.py +criteo_api_marketingsolutions_v2023_07/model/creative_resource.py +criteo_api_marketingsolutions_v2023_07/model/creative_response.py +criteo_api_marketingsolutions_v2023_07/model/creative_write.py +criteo_api_marketingsolutions_v2023_07/model/creative_write_request.py +criteo_api_marketingsolutions_v2023_07/model/creative_write_resource.py +criteo_api_marketingsolutions_v2023_07/model/criteo_api_error.py +criteo_api_marketingsolutions_v2023_07/model/criteo_api_warning.py +criteo_api_marketingsolutions_v2023_07/model/delete_audience_contact_list_response.py +criteo_api_marketingsolutions_v2023_07/model/delete_audience_response.py +criteo_api_marketingsolutions_v2023_07/model/dynamic_attributes.py +criteo_api_marketingsolutions_v2023_07/model/dynamic_write_attributes.py +criteo_api_marketingsolutions_v2023_07/model/entity_of_portfolio_message.py +criteo_api_marketingsolutions_v2023_07/model/error_code_response.py +criteo_api_marketingsolutions_v2023_07/model/get_audiences_response.py +criteo_api_marketingsolutions_v2023_07/model/get_portfolio_response.py +criteo_api_marketingsolutions_v2023_07/model/html_tag_attributes.py +criteo_api_marketingsolutions_v2023_07/model/html_tag_write_attributes.py +criteo_api_marketingsolutions_v2023_07/model/image_attributes.py +criteo_api_marketingsolutions_v2023_07/model/image_set.py +criteo_api_marketingsolutions_v2023_07/model/image_set_base64.py +criteo_api_marketingsolutions_v2023_07/model/image_shape.py +criteo_api_marketingsolutions_v2023_07/model/image_slide.py +criteo_api_marketingsolutions_v2023_07/model/image_write_attributes.py +criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1.py +criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_list_response.py +criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_resource.py +criteo_api_marketingsolutions_v2023_07/model/in_market_create_v1.py +criteo_api_marketingsolutions_v2023_07/model/in_market_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_07/model/in_market_update_v1.py +criteo_api_marketingsolutions_v2023_07/model/in_market_v1.py +criteo_api_marketingsolutions_v2023_07/model/location_create_v1.py +criteo_api_marketingsolutions_v2023_07/model/location_size_estimation_v1.py +criteo_api_marketingsolutions_v2023_07/model/location_update_v1.py +criteo_api_marketingsolutions_v2023_07/model/location_v1.py +criteo_api_marketingsolutions_v2023_07/model/lookalike_create_v1.py +criteo_api_marketingsolutions_v2023_07/model/lookalike_update_v1.py +criteo_api_marketingsolutions_v2023_07/model/lookalike_v1.py +criteo_api_marketingsolutions_v2023_07/model/modify_audience_response.py +criteo_api_marketingsolutions_v2023_07/model/new_audience.py +criteo_api_marketingsolutions_v2023_07/model/new_audience_attributes.py +criteo_api_marketingsolutions_v2023_07/model/new_audience_request.py +criteo_api_marketingsolutions_v2023_07/model/new_audience_response.py +criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py +criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py +criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py +criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py +criteo_api_marketingsolutions_v2023_07/model/nillable_gender_v1.py +criteo_api_marketingsolutions_v2023_07/model/nillable_int32.py +criteo_api_marketingsolutions_v2023_07/model/nillable_string.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_bidding.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_resource.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_resource.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_resource.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_resource.py +criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_scheduling.py +criteo_api_marketingsolutions_v2023_07/model/patch_campaign.py +criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py +criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py +criteo_api_marketingsolutions_v2023_07/model/patch_campaign_write_resource.py +criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py +criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_read_resource.py +criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py +criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py +criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py +criteo_api_marketingsolutions_v2023_07/model/point_of_interest_v1.py +criteo_api_marketingsolutions_v2023_07/model/portfolio_message.py +criteo_api_marketingsolutions_v2023_07/model/problem_details.py +criteo_api_marketingsolutions_v2023_07/model/problems_details.py +criteo_api_marketingsolutions_v2023_07/model/prospecting_create_v1.py +criteo_api_marketingsolutions_v2023_07/model/prospecting_update_v1.py +criteo_api_marketingsolutions_v2023_07/model/prospecting_v1.py +criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/read_ad_set_bidding.py +criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py +criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py +criteo_api_marketingsolutions_v2023_07/model/read_model_ad_set_id.py +criteo_api_marketingsolutions_v2023_07/model/read_model_read_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/replace_audience.py +criteo_api_marketingsolutions_v2023_07/model/replace_audience_request.py +criteo_api_marketingsolutions_v2023_07/model/replace_audience_response.py +criteo_api_marketingsolutions_v2023_07/model/request_ad_set_search.py +criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py +criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py +criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py +criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py +criteo_api_marketingsolutions_v2023_07/model/retargeting_create_v1.py +criteo_api_marketingsolutions_v2023_07/model/retargeting_update_v1.py +criteo_api_marketingsolutions_v2023_07/model/retargeting_v1.py +criteo_api_marketingsolutions_v2023_07/model/size.py +criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py +criteo_api_marketingsolutions_v2023_07/model/tag.py +criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py +criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py +criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py +criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py +criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py +criteo_api_marketingsolutions_v2023_07/model/update_coupon.py +criteo_api_marketingsolutions_v2023_07/model/update_coupon_request.py +criteo_api_marketingsolutions_v2023_07/model/update_coupon_resource.py +criteo_api_marketingsolutions_v2023_07/model/video_detail.py +criteo_api_marketingsolutions_v2023_07/model/write_model_ad_set_id.py +criteo_api_marketingsolutions_v2023_07/model/write_model_patch_ad_set.py +criteo_api_marketingsolutions_v2023_07/model_utils.py +criteo_api_marketingsolutions_v2023_07/models/__init__.py +criteo_api_marketingsolutions_v2023_07/rest.py +docs/Ad.md +docs/AdListResponse.md +docs/AdResource.md +docs/AdResponse.md +docs/AdSetAudienceLinkEntityV1.md +docs/AdSetAudienceLinkEntityV1Resource.md +docs/AdSetAudienceLinkEntityV1Response.md +docs/AdSetAudienceLinkInputEntityV1.md +docs/AdSetCategoryBid.md +docs/AdSetCategoryBidListResponse.md +docs/AdSetCategoryBidResource.md +docs/AdSetDeliveryLimitations.md +docs/AdSetDisplayMultiplier.md +docs/AdSetDisplayMultiplierListResponse.md +docs/AdSetDisplayMultiplierResource.md +docs/AdSetFrequencyCapping.md +docs/AdSetGeoLocation.md +docs/AdSetSearchFilter.md +docs/AdSetTargeting.md +docs/AdSetTargetingRule.md +docs/AdWrite.md +docs/AdWriteRequest.md +docs/AdWriteResource.md +docs/AdaptiveAttributes.md +docs/AdaptiveColors.md +docs/AdaptiveWriteAttributes.md +docs/AdvertiserApi.md +docs/AlgebraNodeV1.md +docs/AnalyticsApi.md +docs/ApplicationSummaryModel.md +docs/ApplicationSummaryModelResource.md +docs/ApplicationSummaryModelResponse.md +docs/Audience.md +docs/AudienceApi.md +docs/AudienceAttributes.md +docs/AudienceBulkCreateInputV1.md +docs/AudienceBulkDeleteInputV1.md +docs/AudienceBulkUpdateInputV1.md +docs/AudienceComputeSizeEntityV1Resource.md +docs/AudienceComputeSizesInputV1.md +docs/AudienceCreateEntityV1.md +docs/AudienceCreateEntityV1Resource.md +docs/AudienceDeleteEntityV1Resource.md +docs/AudienceEntityV1.md +docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md +docs/AudienceEntityV1ListResponse.md +docs/AudienceEntityV1Resource.md +docs/AudienceError.md +docs/AudienceEstimateSizeEntityV1.md +docs/AudienceEstimateSizeEntityV1Resource.md +docs/AudienceEstimateSizeInputV1.md +docs/AudienceIdEntityV1ListResponse.md +docs/AudienceIdEntityV1Resource.md +docs/AudienceNameDescription.md +docs/AudienceSearchEntityV1.md +docs/AudienceSearchEntityV1Resource.md +docs/AudienceSearchInputV1.md +docs/AudienceSearchMetadataV1.md +docs/AudienceSegmentBulkCreateInputV1.md +docs/AudienceSegmentBulkDeleteInputV1.md +docs/AudienceSegmentBulkUpdateInputV1.md +docs/AudienceSegmentComputeSizeEntityV1Resource.md +docs/AudienceSegmentComputeSizesInputV1.md +docs/AudienceSegmentCreateEntityV1.md +docs/AudienceSegmentCreateEntityV1Resource.md +docs/AudienceSegmentDeleteEntityV1Resource.md +docs/AudienceSegmentEntityV1.md +docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md +docs/AudienceSegmentEntityV1ListResponse.md +docs/AudienceSegmentEntityV1Resource.md +docs/AudienceSegmentEstimateSizeInputV1.md +docs/AudienceSegmentIdEntityV1ListResponse.md +docs/AudienceSegmentIdEntityV1Resource.md +docs/AudienceSegmentSearchEntityV1.md +docs/AudienceSegmentSearchEntityV1Resource.md +docs/AudienceSegmentSearchInputV1.md +docs/AudienceSegmentSearchMetadataV1.md +docs/AudienceSegmentSizeEntityV1.md +docs/AudienceSegmentSizeEntityV1ListResponse.md +docs/AudienceSegmentSizeEntityV1Resource.md +docs/AudienceSegmentSizeEstimationEntityV1.md +docs/AudienceSegmentSizeEstimationEntityV1Resource.md +docs/AudienceSegmentSizeEstimationV1.md +docs/AudienceSegmentSizeEstimationV1Resource.md +docs/AudienceSegmentSizeEstimationV1Response.md +docs/AudienceSegmentUpdateEntityV1.md +docs/AudienceSegmentUpdateEntityV1Resource.md +docs/AudienceSizeEntityV1.md +docs/AudienceSizeEntityV1ListResponse.md +docs/AudienceSizeEntityV1Resource.md +docs/AudienceSizeEstimationV1.md +docs/AudienceSizeEstimationV1Resource.md +docs/AudienceSizeEstimationV1Response.md +docs/AudienceUpdateEntityV1.md +docs/AudienceUpdateEntityV1Resource.md +docs/AudienceWarning.md +docs/BasicAudienceDefinition.md +docs/BehavioralV1.md +docs/Campaign.md +docs/CampaignApi.md +docs/CampaignListResponse.md +docs/CampaignReadResource.md +docs/CampaignResponse.md +docs/CampaignSearchFilters.md +docs/CampaignSearchRequest.md +docs/CampaignSpendLimit.md +docs/CampaignSpendLimitV23Q1.md +docs/CampaignV23Q1.md +docs/CampaignV23Q1Resource.md +docs/CampaignV23Q1Response.md +docs/CommonProblem.md +docs/ContactListStatisticsEntityV1.md +docs/ContactListStatisticsEntityV1Resource.md +docs/ContactListStatisticsEntityV1Response.md +docs/ContactListV1.md +docs/ContactlistAmendment.md +docs/ContactlistAmendmentAttributes.md +docs/ContactlistAmendmentRequest.md +docs/ContactlistOperation.md +docs/ContactlistOperationAttributes.md +docs/Coupon.md +docs/CouponListResponse.md +docs/CouponResource.md +docs/CouponResponse.md +docs/CouponSupportedSizes.md +docs/CouponSupportedSizesResource.md +docs/CouponSupportedSizesResponse.md +docs/CreateAdSet.md +docs/CreateAdSetBidding.md +docs/CreateAdSetBudget.md +docs/CreateAdSetGeoLocation.md +docs/CreateAdSetRequest.md +docs/CreateAdSetResource.md +docs/CreateAdSetSchedule.md +docs/CreateAdSetTargeting.md +docs/CreateCampaign.md +docs/CreateCampaignRequest.md +docs/CreateCampaignResource.md +docs/CreateCampaignSpendLimit.md +docs/CreateCoupon.md +docs/CreateCouponRequest.md +docs/CreateCouponResource.md +docs/CreateImageSlide.md +docs/Creative.md +docs/CreativeApi.md +docs/CreativeListResponse.md +docs/CreativeResource.md +docs/CreativeResponse.md +docs/CreativeWrite.md +docs/CreativeWriteRequest.md +docs/CreativeWriteResource.md +docs/CriteoApiError.md +docs/CriteoApiWarning.md +docs/DeleteAudienceContactListResponse.md +docs/DeleteAudienceResponse.md +docs/DynamicAttributes.md +docs/DynamicWriteAttributes.md +docs/EntityOfPortfolioMessage.md +docs/ErrorCodeResponse.md +docs/GatewayApi.md +docs/GetAudiencesResponse.md +docs/GetPortfolioResponse.md +docs/HtmlTagAttributes.md +docs/HtmlTagWriteAttributes.md +docs/ImageAttributes.md +docs/ImageSet.md +docs/ImageSetBase64.md +docs/ImageShape.md +docs/ImageSlide.md +docs/ImageWriteAttributes.md +docs/InMarketAudienceSegmentBrandEntityV1.md +docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md +docs/InMarketAudienceSegmentBrandEntityV1Resource.md +docs/InMarketAudienceSegmentInterestEntityV1.md +docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md +docs/InMarketAudienceSegmentInterestEntityV1Resource.md +docs/InMarketCreateV1.md +docs/InMarketSizeEstimationV1.md +docs/InMarketUpdateV1.md +docs/InMarketV1.md +docs/LocationCreateV1.md +docs/LocationSizeEstimationV1.md +docs/LocationUpdateV1.md +docs/LocationV1.md +docs/LookalikeCreateV1.md +docs/LookalikeUpdateV1.md +docs/LookalikeV1.md +docs/ModifyAudienceResponse.md +docs/NewAudience.md +docs/NewAudienceAttributes.md +docs/NewAudienceRequest.md +docs/NewAudienceResponse.md +docs/NillableAdSetTargetingRule.md +docs/NillableAdSetTargetingRuleValue.md +docs/NillableDateTime.md +docs/NillableDecimal.md +docs/NillableGenderV1.md +docs/NillableInt32.md +docs/NillableString.md +docs/PatchAdSet.md +docs/PatchAdSetBidding.md +docs/PatchAdSetBudget.md +docs/PatchAdSetCategoryBid.md +docs/PatchAdSetCategoryBidListRequest.md +docs/PatchAdSetCategoryBidResource.md +docs/PatchAdSetCategoryBidResultListResponse.md +docs/PatchAdSetCategoryBidResultResource.md +docs/PatchAdSetDisplayMultiplier.md +docs/PatchAdSetDisplayMultiplierListRequest.md +docs/PatchAdSetDisplayMultiplierResource.md +docs/PatchAdSetDisplayMultiplierResultListResponse.md +docs/PatchAdSetDisplayMultiplierResultResource.md +docs/PatchAdSetScheduling.md +docs/PatchCampaign.md +docs/PatchCampaignListRequest.md +docs/PatchCampaignSpendLimit.md +docs/PatchCampaignWriteResource.md +docs/PatchResultCampaignListResponse.md +docs/PatchResultCampaignReadResource.md +docs/PlacementsReportQueryDataMessage.md +docs/PlacementsReportQueryEntityMessage.md +docs/PlacementsReportQueryMessage.md +docs/PointOfInterestV1.md +docs/PortfolioMessage.md +docs/ProblemDetails.md +docs/ProblemsDetails.md +docs/ProspectingCreateV1.md +docs/ProspectingUpdateV1.md +docs/ProspectingV1.md +docs/ReadAdSet.md +docs/ReadAdSetBidding.md +docs/ReadAdSetBudget.md +docs/ReadAdSetSchedule.md +docs/ReadModelAdSetId.md +docs/ReadModelReadAdSet.md +docs/ReplaceAudience.md +docs/ReplaceAudienceRequest.md +docs/ReplaceAudienceResponse.md +docs/RequestAdSetSearch.md +docs/RequestsAdSetId.md +docs/RequestsPatchAdSet.md +docs/ResponseAdSetId.md +docs/ResponseReadAdSet.md +docs/ResponsesAdSetId.md +docs/ResponsesReadAdSet.md +docs/RetargetingCreateV1.md +docs/RetargetingUpdateV1.md +docs/RetargetingV1.md +docs/Size.md +docs/StatisticsReportQueryMessage.md +docs/Tag.md +docs/TransactionsReportQueryDataMessage.md +docs/TransactionsReportQueryEntityMessage.md +docs/TransactionsReportQueryMessage.md +docs/TransparencyQueryMessage.md +docs/TransparencyReportAttributes.md +docs/TransparencyReportDataMessage.md +docs/TransparencyReportEntityMessage.md +docs/TransparencyReportFile.md +docs/UpdateCoupon.md +docs/UpdateCouponRequest.md +docs/UpdateCouponResource.md +docs/VideoDetail.md +docs/WriteModelAdSetId.md +docs/WriteModelPatchAdSet.md +git_push.sh +requirements.txt +setup.cfg +setup.py +test-requirements.txt +test/example_application_with_auth_code.py +test/example_application_with_client_credentials.py +test/example_application_with_refresh_token.py +test/test_gateway_api.py +tox.ini diff --git a/sdks/marketingsolutions_2023-07/.openapi-generator/VERSION b/sdks/marketingsolutions_2023-07/.openapi-generator/VERSION new file mode 100644 index 00000000..e7e42a4b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.3.0 \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/README.md b/sdks/marketingsolutions_2023-07/README.md new file mode 100644 index 00000000..a86ff314 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/README.md @@ -0,0 +1,326 @@ +# Criteo API SDK for Python + +## Introduction +API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. +These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. + +More information: [https://developers.criteo.com/](https://developers.criteo.com/) + +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- Package version: 2023.07.0.230726 + +## Requirements + +Python 2.7 and 3.5+ + +## Installation & Usage +### pip install + +```sh +pip install criteo-api-marketingsolutions-sdk==2023.07.0.230726 +``` +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.230726`) + +Then import the package: +```python +import criteo_api_marketingsolutions_v2023_07 +``` + +### Manual Installation using [Setuptools](http://pypi.python.org/pypi/setuptools) + +Download the code or clone the repository locally, then execute the following command: + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import criteo_api_marketingsolutions_v2023_07 +``` + +## Example +There are multiple examples for the different OAuth flows that the SDK supports. +- See [test/example_application_with_client_credentials.py](test/example_application_with_client_credentials.py) for an example with Client Credentials. +- See [test/example_application_with_auth_code.py](test/example_application_with_auth_code.py) for an example with Authorization Code. +Once you follow the authorization code flow, you will have a refresh token that has to be used to regenerate access token for future usage. + - See [test/example_application_with_refresh_token.py](test/example_application_with_refresh_token.py) for an example with Refresh Token . + +## Documentation for API Endpoints + +The developers documentation is available at: *https://developers.criteo.com*. + +All URIs are relative to *https://api.criteo.com*. + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- + + +## Documentation For Models + + - [Ad](docs/Ad.md) + - [AdListResponse](docs/AdListResponse.md) + - [AdResource](docs/AdResource.md) + - [AdResponse](docs/AdResponse.md) + - [AdSetAudienceLinkEntityV1](docs/AdSetAudienceLinkEntityV1.md) + - [AdSetAudienceLinkEntityV1Resource](docs/AdSetAudienceLinkEntityV1Resource.md) + - [AdSetAudienceLinkEntityV1Response](docs/AdSetAudienceLinkEntityV1Response.md) + - [AdSetAudienceLinkInputEntityV1](docs/AdSetAudienceLinkInputEntityV1.md) + - [AdSetCategoryBid](docs/AdSetCategoryBid.md) + - [AdSetCategoryBidListResponse](docs/AdSetCategoryBidListResponse.md) + - [AdSetCategoryBidResource](docs/AdSetCategoryBidResource.md) + - [AdSetDeliveryLimitations](docs/AdSetDeliveryLimitations.md) + - [AdSetDisplayMultiplier](docs/AdSetDisplayMultiplier.md) + - [AdSetDisplayMultiplierListResponse](docs/AdSetDisplayMultiplierListResponse.md) + - [AdSetDisplayMultiplierResource](docs/AdSetDisplayMultiplierResource.md) + - [AdSetFrequencyCapping](docs/AdSetFrequencyCapping.md) + - [AdSetGeoLocation](docs/AdSetGeoLocation.md) + - [AdSetSearchFilter](docs/AdSetSearchFilter.md) + - [AdSetTargeting](docs/AdSetTargeting.md) + - [AdSetTargetingRule](docs/AdSetTargetingRule.md) + - [AdWrite](docs/AdWrite.md) + - [AdWriteRequest](docs/AdWriteRequest.md) + - [AdWriteResource](docs/AdWriteResource.md) + - [AdaptiveAttributes](docs/AdaptiveAttributes.md) + - [AdaptiveColors](docs/AdaptiveColors.md) + - [AdaptiveWriteAttributes](docs/AdaptiveWriteAttributes.md) + - [AlgebraNodeV1](docs/AlgebraNodeV1.md) + - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) + - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) + - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) + - [Audience](docs/Audience.md) + - [AudienceAttributes](docs/AudienceAttributes.md) + - [AudienceBulkCreateInputV1](docs/AudienceBulkCreateInputV1.md) + - [AudienceBulkDeleteInputV1](docs/AudienceBulkDeleteInputV1.md) + - [AudienceBulkUpdateInputV1](docs/AudienceBulkUpdateInputV1.md) + - [AudienceComputeSizeEntityV1Resource](docs/AudienceComputeSizeEntityV1Resource.md) + - [AudienceComputeSizesInputV1](docs/AudienceComputeSizesInputV1.md) + - [AudienceCreateEntityV1](docs/AudienceCreateEntityV1.md) + - [AudienceCreateEntityV1Resource](docs/AudienceCreateEntityV1Resource.md) + - [AudienceDeleteEntityV1Resource](docs/AudienceDeleteEntityV1Resource.md) + - [AudienceEntityV1](docs/AudienceEntityV1.md) + - [AudienceEntityV1AudienceSearchMetadataV1ListResponse](docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) + - [AudienceEntityV1ListResponse](docs/AudienceEntityV1ListResponse.md) + - [AudienceEntityV1Resource](docs/AudienceEntityV1Resource.md) + - [AudienceError](docs/AudienceError.md) + - [AudienceEstimateSizeEntityV1](docs/AudienceEstimateSizeEntityV1.md) + - [AudienceEstimateSizeEntityV1Resource](docs/AudienceEstimateSizeEntityV1Resource.md) + - [AudienceEstimateSizeInputV1](docs/AudienceEstimateSizeInputV1.md) + - [AudienceIdEntityV1ListResponse](docs/AudienceIdEntityV1ListResponse.md) + - [AudienceIdEntityV1Resource](docs/AudienceIdEntityV1Resource.md) + - [AudienceNameDescription](docs/AudienceNameDescription.md) + - [AudienceSearchEntityV1](docs/AudienceSearchEntityV1.md) + - [AudienceSearchEntityV1Resource](docs/AudienceSearchEntityV1Resource.md) + - [AudienceSearchInputV1](docs/AudienceSearchInputV1.md) + - [AudienceSearchMetadataV1](docs/AudienceSearchMetadataV1.md) + - [AudienceSegmentBulkCreateInputV1](docs/AudienceSegmentBulkCreateInputV1.md) + - [AudienceSegmentBulkDeleteInputV1](docs/AudienceSegmentBulkDeleteInputV1.md) + - [AudienceSegmentBulkUpdateInputV1](docs/AudienceSegmentBulkUpdateInputV1.md) + - [AudienceSegmentComputeSizeEntityV1Resource](docs/AudienceSegmentComputeSizeEntityV1Resource.md) + - [AudienceSegmentComputeSizesInputV1](docs/AudienceSegmentComputeSizesInputV1.md) + - [AudienceSegmentCreateEntityV1](docs/AudienceSegmentCreateEntityV1.md) + - [AudienceSegmentCreateEntityV1Resource](docs/AudienceSegmentCreateEntityV1Resource.md) + - [AudienceSegmentDeleteEntityV1Resource](docs/AudienceSegmentDeleteEntityV1Resource.md) + - [AudienceSegmentEntityV1](docs/AudienceSegmentEntityV1.md) + - [AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse](docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) + - [AudienceSegmentEntityV1ListResponse](docs/AudienceSegmentEntityV1ListResponse.md) + - [AudienceSegmentEntityV1Resource](docs/AudienceSegmentEntityV1Resource.md) + - [AudienceSegmentEstimateSizeInputV1](docs/AudienceSegmentEstimateSizeInputV1.md) + - [AudienceSegmentIdEntityV1ListResponse](docs/AudienceSegmentIdEntityV1ListResponse.md) + - [AudienceSegmentIdEntityV1Resource](docs/AudienceSegmentIdEntityV1Resource.md) + - [AudienceSegmentSearchEntityV1](docs/AudienceSegmentSearchEntityV1.md) + - [AudienceSegmentSearchEntityV1Resource](docs/AudienceSegmentSearchEntityV1Resource.md) + - [AudienceSegmentSearchInputV1](docs/AudienceSegmentSearchInputV1.md) + - [AudienceSegmentSearchMetadataV1](docs/AudienceSegmentSearchMetadataV1.md) + - [AudienceSegmentSizeEntityV1](docs/AudienceSegmentSizeEntityV1.md) + - [AudienceSegmentSizeEntityV1ListResponse](docs/AudienceSegmentSizeEntityV1ListResponse.md) + - [AudienceSegmentSizeEntityV1Resource](docs/AudienceSegmentSizeEntityV1Resource.md) + - [AudienceSegmentSizeEstimationEntityV1](docs/AudienceSegmentSizeEstimationEntityV1.md) + - [AudienceSegmentSizeEstimationEntityV1Resource](docs/AudienceSegmentSizeEstimationEntityV1Resource.md) + - [AudienceSegmentSizeEstimationV1](docs/AudienceSegmentSizeEstimationV1.md) + - [AudienceSegmentSizeEstimationV1Resource](docs/AudienceSegmentSizeEstimationV1Resource.md) + - [AudienceSegmentSizeEstimationV1Response](docs/AudienceSegmentSizeEstimationV1Response.md) + - [AudienceSegmentUpdateEntityV1](docs/AudienceSegmentUpdateEntityV1.md) + - [AudienceSegmentUpdateEntityV1Resource](docs/AudienceSegmentUpdateEntityV1Resource.md) + - [AudienceSizeEntityV1](docs/AudienceSizeEntityV1.md) + - [AudienceSizeEntityV1ListResponse](docs/AudienceSizeEntityV1ListResponse.md) + - [AudienceSizeEntityV1Resource](docs/AudienceSizeEntityV1Resource.md) + - [AudienceSizeEstimationV1](docs/AudienceSizeEstimationV1.md) + - [AudienceSizeEstimationV1Resource](docs/AudienceSizeEstimationV1Resource.md) + - [AudienceSizeEstimationV1Response](docs/AudienceSizeEstimationV1Response.md) + - [AudienceUpdateEntityV1](docs/AudienceUpdateEntityV1.md) + - [AudienceUpdateEntityV1Resource](docs/AudienceUpdateEntityV1Resource.md) + - [AudienceWarning](docs/AudienceWarning.md) + - [BasicAudienceDefinition](docs/BasicAudienceDefinition.md) + - [BehavioralV1](docs/BehavioralV1.md) + - [Campaign](docs/Campaign.md) + - [CampaignListResponse](docs/CampaignListResponse.md) + - [CampaignReadResource](docs/CampaignReadResource.md) + - [CampaignResponse](docs/CampaignResponse.md) + - [CampaignSearchFilters](docs/CampaignSearchFilters.md) + - [CampaignSearchRequest](docs/CampaignSearchRequest.md) + - [CampaignSpendLimit](docs/CampaignSpendLimit.md) + - [CampaignSpendLimitV23Q1](docs/CampaignSpendLimitV23Q1.md) + - [CampaignV23Q1](docs/CampaignV23Q1.md) + - [CampaignV23Q1Resource](docs/CampaignV23Q1Resource.md) + - [CampaignV23Q1Response](docs/CampaignV23Q1Response.md) + - [CommonProblem](docs/CommonProblem.md) + - [ContactListStatisticsEntityV1](docs/ContactListStatisticsEntityV1.md) + - [ContactListStatisticsEntityV1Resource](docs/ContactListStatisticsEntityV1Resource.md) + - [ContactListStatisticsEntityV1Response](docs/ContactListStatisticsEntityV1Response.md) + - [ContactListV1](docs/ContactListV1.md) + - [ContactlistAmendment](docs/ContactlistAmendment.md) + - [ContactlistAmendmentAttributes](docs/ContactlistAmendmentAttributes.md) + - [ContactlistAmendmentRequest](docs/ContactlistAmendmentRequest.md) + - [ContactlistOperation](docs/ContactlistOperation.md) + - [ContactlistOperationAttributes](docs/ContactlistOperationAttributes.md) + - [Coupon](docs/Coupon.md) + - [CouponListResponse](docs/CouponListResponse.md) + - [CouponResource](docs/CouponResource.md) + - [CouponResponse](docs/CouponResponse.md) + - [CouponSupportedSizes](docs/CouponSupportedSizes.md) + - [CouponSupportedSizesResource](docs/CouponSupportedSizesResource.md) + - [CouponSupportedSizesResponse](docs/CouponSupportedSizesResponse.md) + - [CreateAdSet](docs/CreateAdSet.md) + - [CreateAdSetBidding](docs/CreateAdSetBidding.md) + - [CreateAdSetBudget](docs/CreateAdSetBudget.md) + - [CreateAdSetGeoLocation](docs/CreateAdSetGeoLocation.md) + - [CreateAdSetRequest](docs/CreateAdSetRequest.md) + - [CreateAdSetResource](docs/CreateAdSetResource.md) + - [CreateAdSetSchedule](docs/CreateAdSetSchedule.md) + - [CreateAdSetTargeting](docs/CreateAdSetTargeting.md) + - [CreateCampaign](docs/CreateCampaign.md) + - [CreateCampaignRequest](docs/CreateCampaignRequest.md) + - [CreateCampaignResource](docs/CreateCampaignResource.md) + - [CreateCampaignSpendLimit](docs/CreateCampaignSpendLimit.md) + - [CreateCoupon](docs/CreateCoupon.md) + - [CreateCouponRequest](docs/CreateCouponRequest.md) + - [CreateCouponResource](docs/CreateCouponResource.md) + - [CreateImageSlide](docs/CreateImageSlide.md) + - [Creative](docs/Creative.md) + - [CreativeListResponse](docs/CreativeListResponse.md) + - [CreativeResource](docs/CreativeResource.md) + - [CreativeResponse](docs/CreativeResponse.md) + - [CreativeWrite](docs/CreativeWrite.md) + - [CreativeWriteRequest](docs/CreativeWriteRequest.md) + - [CreativeWriteResource](docs/CreativeWriteResource.md) + - [CriteoApiError](docs/CriteoApiError.md) + - [CriteoApiWarning](docs/CriteoApiWarning.md) + - [DeleteAudienceContactListResponse](docs/DeleteAudienceContactListResponse.md) + - [DeleteAudienceResponse](docs/DeleteAudienceResponse.md) + - [DynamicAttributes](docs/DynamicAttributes.md) + - [DynamicWriteAttributes](docs/DynamicWriteAttributes.md) + - [EntityOfPortfolioMessage](docs/EntityOfPortfolioMessage.md) + - [ErrorCodeResponse](docs/ErrorCodeResponse.md) + - [GetAudiencesResponse](docs/GetAudiencesResponse.md) + - [GetPortfolioResponse](docs/GetPortfolioResponse.md) + - [HtmlTagAttributes](docs/HtmlTagAttributes.md) + - [HtmlTagWriteAttributes](docs/HtmlTagWriteAttributes.md) + - [ImageAttributes](docs/ImageAttributes.md) + - [ImageSet](docs/ImageSet.md) + - [ImageSetBase64](docs/ImageSetBase64.md) + - [ImageShape](docs/ImageShape.md) + - [ImageSlide](docs/ImageSlide.md) + - [ImageWriteAttributes](docs/ImageWriteAttributes.md) + - [InMarketAudienceSegmentBrandEntityV1](docs/InMarketAudienceSegmentBrandEntityV1.md) + - [InMarketAudienceSegmentBrandEntityV1ListResponse](docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md) + - [InMarketAudienceSegmentBrandEntityV1Resource](docs/InMarketAudienceSegmentBrandEntityV1Resource.md) + - [InMarketAudienceSegmentInterestEntityV1](docs/InMarketAudienceSegmentInterestEntityV1.md) + - [InMarketAudienceSegmentInterestEntityV1ListResponse](docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md) + - [InMarketAudienceSegmentInterestEntityV1Resource](docs/InMarketAudienceSegmentInterestEntityV1Resource.md) + - [InMarketCreateV1](docs/InMarketCreateV1.md) + - [InMarketSizeEstimationV1](docs/InMarketSizeEstimationV1.md) + - [InMarketUpdateV1](docs/InMarketUpdateV1.md) + - [InMarketV1](docs/InMarketV1.md) + - [LocationCreateV1](docs/LocationCreateV1.md) + - [LocationSizeEstimationV1](docs/LocationSizeEstimationV1.md) + - [LocationUpdateV1](docs/LocationUpdateV1.md) + - [LocationV1](docs/LocationV1.md) + - [LookalikeCreateV1](docs/LookalikeCreateV1.md) + - [LookalikeUpdateV1](docs/LookalikeUpdateV1.md) + - [LookalikeV1](docs/LookalikeV1.md) + - [ModifyAudienceResponse](docs/ModifyAudienceResponse.md) + - [NewAudience](docs/NewAudience.md) + - [NewAudienceAttributes](docs/NewAudienceAttributes.md) + - [NewAudienceRequest](docs/NewAudienceRequest.md) + - [NewAudienceResponse](docs/NewAudienceResponse.md) + - [NillableAdSetTargetingRule](docs/NillableAdSetTargetingRule.md) + - [NillableAdSetTargetingRuleValue](docs/NillableAdSetTargetingRuleValue.md) + - [NillableDateTime](docs/NillableDateTime.md) + - [NillableDecimal](docs/NillableDecimal.md) + - [NillableGenderV1](docs/NillableGenderV1.md) + - [NillableInt32](docs/NillableInt32.md) + - [NillableString](docs/NillableString.md) + - [PatchAdSet](docs/PatchAdSet.md) + - [PatchAdSetBidding](docs/PatchAdSetBidding.md) + - [PatchAdSetBudget](docs/PatchAdSetBudget.md) + - [PatchAdSetCategoryBid](docs/PatchAdSetCategoryBid.md) + - [PatchAdSetCategoryBidListRequest](docs/PatchAdSetCategoryBidListRequest.md) + - [PatchAdSetCategoryBidResource](docs/PatchAdSetCategoryBidResource.md) + - [PatchAdSetCategoryBidResultListResponse](docs/PatchAdSetCategoryBidResultListResponse.md) + - [PatchAdSetCategoryBidResultResource](docs/PatchAdSetCategoryBidResultResource.md) + - [PatchAdSetDisplayMultiplier](docs/PatchAdSetDisplayMultiplier.md) + - [PatchAdSetDisplayMultiplierListRequest](docs/PatchAdSetDisplayMultiplierListRequest.md) + - [PatchAdSetDisplayMultiplierResource](docs/PatchAdSetDisplayMultiplierResource.md) + - [PatchAdSetDisplayMultiplierResultListResponse](docs/PatchAdSetDisplayMultiplierResultListResponse.md) + - [PatchAdSetDisplayMultiplierResultResource](docs/PatchAdSetDisplayMultiplierResultResource.md) + - [PatchAdSetScheduling](docs/PatchAdSetScheduling.md) + - [PatchCampaign](docs/PatchCampaign.md) + - [PatchCampaignListRequest](docs/PatchCampaignListRequest.md) + - [PatchCampaignSpendLimit](docs/PatchCampaignSpendLimit.md) + - [PatchCampaignWriteResource](docs/PatchCampaignWriteResource.md) + - [PatchResultCampaignListResponse](docs/PatchResultCampaignListResponse.md) + - [PatchResultCampaignReadResource](docs/PatchResultCampaignReadResource.md) + - [PlacementsReportQueryDataMessage](docs/PlacementsReportQueryDataMessage.md) + - [PlacementsReportQueryEntityMessage](docs/PlacementsReportQueryEntityMessage.md) + - [PlacementsReportQueryMessage](docs/PlacementsReportQueryMessage.md) + - [PointOfInterestV1](docs/PointOfInterestV1.md) + - [PortfolioMessage](docs/PortfolioMessage.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [ProblemsDetails](docs/ProblemsDetails.md) + - [ProspectingCreateV1](docs/ProspectingCreateV1.md) + - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) + - [ProspectingV1](docs/ProspectingV1.md) + - [ReadAdSet](docs/ReadAdSet.md) + - [ReadAdSetBidding](docs/ReadAdSetBidding.md) + - [ReadAdSetBudget](docs/ReadAdSetBudget.md) + - [ReadAdSetSchedule](docs/ReadAdSetSchedule.md) + - [ReadModelAdSetId](docs/ReadModelAdSetId.md) + - [ReadModelReadAdSet](docs/ReadModelReadAdSet.md) + - [ReplaceAudience](docs/ReplaceAudience.md) + - [ReplaceAudienceRequest](docs/ReplaceAudienceRequest.md) + - [ReplaceAudienceResponse](docs/ReplaceAudienceResponse.md) + - [RequestAdSetSearch](docs/RequestAdSetSearch.md) + - [RequestsAdSetId](docs/RequestsAdSetId.md) + - [RequestsPatchAdSet](docs/RequestsPatchAdSet.md) + - [ResponseAdSetId](docs/ResponseAdSetId.md) + - [ResponseReadAdSet](docs/ResponseReadAdSet.md) + - [ResponsesAdSetId](docs/ResponsesAdSetId.md) + - [ResponsesReadAdSet](docs/ResponsesReadAdSet.md) + - [RetargetingCreateV1](docs/RetargetingCreateV1.md) + - [RetargetingUpdateV1](docs/RetargetingUpdateV1.md) + - [RetargetingV1](docs/RetargetingV1.md) + - [Size](docs/Size.md) + - [StatisticsReportQueryMessage](docs/StatisticsReportQueryMessage.md) + - [Tag](docs/Tag.md) + - [TransactionsReportQueryDataMessage](docs/TransactionsReportQueryDataMessage.md) + - [TransactionsReportQueryEntityMessage](docs/TransactionsReportQueryEntityMessage.md) + - [TransactionsReportQueryMessage](docs/TransactionsReportQueryMessage.md) + - [TransparencyQueryMessage](docs/TransparencyQueryMessage.md) + - [TransparencyReportAttributes](docs/TransparencyReportAttributes.md) + - [TransparencyReportDataMessage](docs/TransparencyReportDataMessage.md) + - [TransparencyReportEntityMessage](docs/TransparencyReportEntityMessage.md) + - [TransparencyReportFile](docs/TransparencyReportFile.md) + - [UpdateCoupon](docs/UpdateCoupon.md) + - [UpdateCouponRequest](docs/UpdateCouponRequest.md) + - [UpdateCouponResource](docs/UpdateCouponResource.md) + - [VideoDetail](docs/VideoDetail.md) + - [WriteModelAdSetId](docs/WriteModelAdSetId.md) + - [WriteModelPatchAdSet](docs/WriteModelPatchAdSet.md) + + +## Disclaimer + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py new file mode 100644 index 00000000..5411e102 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/__init__.py @@ -0,0 +1,31 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +__version__ = "2023.07.0.230726" + +# import ApiClient +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient +from criteo_api_marketingsolutions_v2023_07.criteo_api_client import CriteoApiClient +from criteo_api_marketingsolutions_v2023_07.api_client_builder import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_07 import flow_constants + +# import Configuration +from criteo_api_marketingsolutions_v2023_07.configuration import Configuration + +# import exceptions +from criteo_api_marketingsolutions_v2023_07.exceptions import OpenApiException +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiTypeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiValueError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiKeyError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiException + + + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/__init__.py new file mode 100644 index 00000000..cba0f655 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/__init__.py @@ -0,0 +1,3 @@ +# do not import all apis into this module because that uses a lot of memory and stack frames +# if you need the ability to import all apis from one package, import them with +# from criteo_api_marketingsolutions_v2023_07.apis import AdvertiserApi diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/advertiser_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/advertiser_api.py new file mode 100644 index 00000000..7f2e4784 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/advertiser_api.py @@ -0,0 +1,163 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_marketingsolutions_v2023_07.model.get_portfolio_response import GetPortfolioResponse + + +class AdvertiserApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.api_portfolio_get_endpoint = _Endpoint( + settings={ + 'response_type': (GetPortfolioResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/advertisers/me', + 'operation_id': 'api_portfolio_get', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + }, + 'attribute_map': { + }, + 'location_map': { + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json', + 'text/plain', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def api_portfolio_get( + self, + **kwargs + ): + """api_portfolio_get # noqa: E501 + + Fetch the portfolio of Advertisers for this account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.api_portfolio_get(async_req=True) + >>> result = thread.get() + + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + GetPortfolioResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.api_portfolio_get_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py new file mode 100644 index 00000000..735215f9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/analytics_api.py @@ -0,0 +1,601 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.statistics_report_query_message import StatisticsReportQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_data_message import TransparencyReportDataMessage + + +class AnalyticsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.get_adset_report_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/statistics/report', + 'operation_id': 'get_adset_report', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'statistics_report_query_message', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'statistics_report_query_message': + (StatisticsReportQueryMessage,), + }, + 'attribute_map': { + }, + 'location_map': { + 'statistics_report_query_message': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json', + 'text/csv', + 'text/xml', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.get_placements_report_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/placements/report', + 'operation_id': 'get_placements_report', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'placements_report_query_data_message', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'placements_report_query_data_message': + (PlacementsReportQueryDataMessage,), + }, + 'attribute_map': { + }, + 'location_map': { + 'placements_report_query_data_message': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.get_transactions_report_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/transactions/report', + 'operation_id': 'get_transactions_report', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'transactions_report_query_data_message', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'transactions_report_query_data_message': + (TransactionsReportQueryDataMessage,), + }, + 'attribute_map': { + }, + 'location_map': { + 'transactions_report_query_data_message': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json', + 'text/csv', + 'text/xml', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.get_transparency_report_endpoint = _Endpoint( + settings={ + 'response_type': (TransparencyReportDataMessage,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/log-level/advertisers/{advertiser-id}/report', + 'operation_id': 'get_transparency_report', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'transparency_query_message', + ], + 'required': [ + 'advertiser_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (int,), + 'transparency_query_message': + (TransparencyQueryMessage,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'transparency_query_message': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json', + 'text/plain', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + + def get_adset_report( + self, + **kwargs + ): + """get_adset_report # noqa: E501 + + This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_adset_report(async_req=True) + >>> result = thread.get() + + + Keyword Args: + statistics_report_query_message (StatisticsReportQueryMessage): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + str + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_adset_report_endpoint.call_with_http_info(**kwargs) + + def get_placements_report( + self, + **kwargs + ): + """get_placements_report # noqa: E501 + + Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_placements_report(async_req=True) + >>> result = thread.get() + + + Keyword Args: + placements_report_query_data_message (PlacementsReportQueryDataMessage): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + str + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_placements_report_endpoint.call_with_http_info(**kwargs) + + def get_transactions_report( + self, + **kwargs + ): + """get_transactions_report # noqa: E501 + + This Transactions endpoint provides transactions id related data. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_transactions_report(async_req=True) + >>> result = thread.get() + + + Keyword Args: + transactions_report_query_data_message (TransactionsReportQueryDataMessage): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + str + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_transactions_report_endpoint.call_with_http_info(**kwargs) + + def get_transparency_report( + self, + advertiser_id, + **kwargs + ): + """get_transparency_report # noqa: E501 + + This Statistics endpoint provides publisher data. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_transparency_report(advertiser_id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (int): The advertiser id to fetch the transparency data. + + Keyword Args: + transparency_query_message (TransparencyQueryMessage): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + TransparencyReportDataMessage + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_transparency_report_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/audience_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/audience_api.py new file mode 100644 index 00000000..bbc838fd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/audience_api.py @@ -0,0 +1,3058 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_create_input_v1 import AudienceBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_delete_input_v1 import AudienceBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_update_input_v1 import AudienceBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_compute_sizes_input_v1 import AudienceComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_audience_search_metadata_v1_list_response import AudienceEntityV1AudienceSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_list_response import AudienceEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_input_v1 import AudienceEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_id_entity_v1_list_response import AudienceIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_search_input_v1 import AudienceSearchInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_create_input_v1 import AudienceSegmentBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_delete_input_v1 import AudienceSegmentBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_update_input_v1 import AudienceSegmentBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_compute_sizes_input_v1 import AudienceSegmentComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response import AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_estimate_size_input_v1 import AudienceSegmentEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_id_entity_v1_list_response import AudienceSegmentIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_input_v1 import AudienceSegmentSearchInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1_list_response import AudienceSegmentSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1_response import AudienceSegmentSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1_list_response import AudienceSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1_response import AudienceSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1_response import ContactListStatisticsEntityV1Response +from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment_request import ContactlistAmendmentRequest +from criteo_api_marketingsolutions_v2023_07.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse +from criteo_api_marketingsolutions_v2023_07.model.delete_audience_response import DeleteAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.get_audiences_response import GetAudiencesResponse +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1_list_response import InMarketAudienceSegmentBrandEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1_list_response import InMarketAudienceSegmentInterestEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.modify_audience_response import ModifyAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.new_audience_request import NewAudienceRequest +from criteo_api_marketingsolutions_v2023_07.model.new_audience_response import NewAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.replace_audience_request import ReplaceAudienceRequest +from criteo_api_marketingsolutions_v2023_07.model.replace_audience_response import ReplaceAudienceResponse + + +class AudienceApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.bulk_create_audience_segments_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/create', + 'operation_id': 'bulk_create_audience_segments', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_bulk_create_input_v1', + ], + 'required': [ + 'audience_segment_bulk_create_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_bulk_create_input_v1': + (AudienceSegmentBulkCreateInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_segment_bulk_create_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.bulk_create_audiences_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audiences/create', + 'operation_id': 'bulk_create_audiences', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_bulk_create_input_v1', + ], + 'required': [ + 'audience_bulk_create_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_bulk_create_input_v1': + (AudienceBulkCreateInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_bulk_create_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.bulk_delete_audience_segments_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentIdEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/delete', + 'operation_id': 'bulk_delete_audience_segments', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_bulk_delete_input_v1', + ], + 'required': [ + 'audience_segment_bulk_delete_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_bulk_delete_input_v1': + (AudienceSegmentBulkDeleteInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_segment_bulk_delete_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.bulk_delete_audiences_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceIdEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audiences/delete', + 'operation_id': 'bulk_delete_audiences', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_bulk_delete_input_v1', + ], + 'required': [ + 'audience_bulk_delete_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_bulk_delete_input_v1': + (AudienceBulkDeleteInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_bulk_delete_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.bulk_update_audience_segments_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments', + 'operation_id': 'bulk_update_audience_segments', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_bulk_update_input_v1', + ], + 'required': [ + 'audience_segment_bulk_update_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_bulk_update_input_v1': + (AudienceSegmentBulkUpdateInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_segment_bulk_update_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.bulk_update_audiences_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audiences', + 'operation_id': 'bulk_update_audiences', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_bulk_update_input_v1', + ], + 'required': [ + 'audience_bulk_update_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_bulk_update_input_v1': + (AudienceBulkUpdateInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_bulk_update_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.compute_audience_segments_sizes_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentSizeEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/compute-sizes', + 'operation_id': 'compute_audience_segments_sizes', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_compute_sizes_input_v1', + ], + 'required': [ + 'audience_segment_compute_sizes_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_compute_sizes_input_v1': + (AudienceSegmentComputeSizesInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_segment_compute_sizes_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.compute_audiences_sizes_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSizeEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audiences/compute-sizes', + 'operation_id': 'compute_audiences_sizes', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_compute_sizes_input_v1', + ], + 'required': [ + 'audience_compute_sizes_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_compute_sizes_input_v1': + (AudienceComputeSizesInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_compute_sizes_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.create_audience_endpoint = _Endpoint( + settings={ + 'response_type': (NewAudienceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/audiences', + 'operation_id': 'create_audience', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'new_audience_request', + ], + 'required': [ + 'new_audience_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'new_audience_request': + (NewAudienceRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'new_audience_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.delete_identifiers_endpoint = _Endpoint( + settings={ + 'response_type': (DeleteAudienceContactListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/audiences/{audience-id}/contactlist', + 'operation_id': 'delete_identifiers', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_id', + ], + 'required': [ + 'audience_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_id': + (str,), + }, + 'attribute_map': { + 'audience_id': 'audience-id', + }, + 'location_map': { + 'audience_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.estimate_audience_segment_size_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentSizeEstimationV1Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/estimate-size', + 'operation_id': 'estimate_audience_segment_size', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_estimate_size_input_v1', + ], + 'required': [ + 'audience_segment_estimate_size_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_estimate_size_input_v1': + (AudienceSegmentEstimateSizeInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_segment_estimate_size_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.estimate_audience_size_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSizeEstimationV1Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audiences/estimate-size', + 'operation_id': 'estimate_audience_size', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_estimate_size_input_v1', + ], + 'required': [ + 'audience_estimate_size_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_estimate_size_input_v1': + (AudienceEstimateSizeInputV1,), + }, + 'attribute_map': { + }, + 'location_map': { + 'audience_estimate_size_input_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.get_audience_segment_contact_list_statistics_endpoint = _Endpoint( + settings={ + 'response_type': (ContactListStatisticsEntityV1Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list', + 'operation_id': 'get_audience_segment_contact_list_statistics', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_id', + ], + 'required': [ + 'audience_segment_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_id': + (int,), + }, + 'attribute_map': { + 'audience_segment_id': 'audience-segment-id', + }, + 'location_map': { + 'audience_segment_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_audience_segments_in_market_brands_endpoint = _Endpoint( + settings={ + 'response_type': (InMarketAudienceSegmentBrandEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/in-market-brands', + 'operation_id': 'get_audience_segments_in_market_brands', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'country', + ], + 'required': [ + 'advertiser_id', + 'country', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'country': + (str,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'country': 'country', + }, + 'location_map': { + 'advertiser_id': 'query', + 'country': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_audience_segments_in_market_interests_endpoint = _Endpoint( + settings={ + 'response_type': (InMarketAudienceSegmentInterestEntityV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/in-market-interests', + 'operation_id': 'get_audience_segments_in_market_interests', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'country', + ], + 'required': [ + 'advertiser_id', + 'country', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'country': + (str,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'country': 'country', + }, + 'location_map': { + 'advertiser_id': 'query', + 'country': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_audiences_endpoint = _Endpoint( + settings={ + 'response_type': (GetAudiencesResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/audiences', + 'operation_id': 'get_audiences', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + }, + 'location_map': { + 'advertiser_id': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.modify_audience_endpoint = _Endpoint( + settings={ + 'response_type': (ReplaceAudienceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/audiences/{audience-id}', + 'operation_id': 'modify_audience', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_id', + 'replace_audience_request', + ], + 'required': [ + 'audience_id', + 'replace_audience_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_id': + (str,), + 'replace_audience_request': + (ReplaceAudienceRequest,), + }, + 'attribute_map': { + 'audience_id': 'audience-id', + }, + 'location_map': { + 'audience_id': 'path', + 'replace_audience_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.modify_audience_users_endpoint = _Endpoint( + settings={ + 'response_type': (ModifyAudienceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/audiences/{audience-id}/contactlist', + 'operation_id': 'modify_audience_users', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_id', + 'contactlist_amendment_request', + ], + 'required': [ + 'audience_id', + 'contactlist_amendment_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_id': + (str,), + 'contactlist_amendment_request': + (ContactlistAmendmentRequest,), + }, + 'attribute_map': { + 'audience_id': 'audience-id', + }, + 'location_map': { + 'audience_id': 'path', + 'contactlist_amendment_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.remove_audience_endpoint = _Endpoint( + settings={ + 'response_type': (DeleteAudienceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/audiences/{audience-id}', + 'operation_id': 'remove_audience', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_id', + ], + 'required': [ + 'audience_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_id': + (str,), + }, + 'attribute_map': { + 'audience_id': 'audience-id', + }, + 'location_map': { + 'audience_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.search_audience_segments_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audience-segments/search', + 'operation_id': 'search_audience_segments', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_segment_search_input_v1', + 'limit', + 'offset', + ], + 'required': [ + 'audience_segment_search_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'limit', + ] + }, + root_map={ + 'validations': { + ('limit',): { + + 'inclusive_maximum': 100, + 'inclusive_minimum': 0, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_segment_search_input_v1': + (AudienceSegmentSearchInputV1,), + 'limit': + (int,), + 'offset': + (int,), + }, + 'attribute_map': { + 'limit': 'limit', + 'offset': 'offset', + }, + 'location_map': { + 'audience_segment_search_input_v1': 'body', + 'limit': 'query', + 'offset': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.search_audiences_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceEntityV1AudienceSearchMetadataV1ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/audiences/search', + 'operation_id': 'search_audiences', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'audience_search_input_v1', + 'limit', + 'offset', + ], + 'required': [ + 'audience_search_input_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'limit', + ] + }, + root_map={ + 'validations': { + ('limit',): { + + 'inclusive_maximum': 100, + 'inclusive_minimum': 0, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'audience_search_input_v1': + (AudienceSearchInputV1,), + 'limit': + (int,), + 'offset': + (int,), + }, + 'attribute_map': { + 'limit': 'limit', + 'offset': 'offset', + }, + 'location_map': { + 'audience_search_input_v1': 'body', + 'limit': 'query', + 'offset': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + + def bulk_create_audience_segments( + self, + audience_segment_bulk_create_input_v1, + **kwargs + ): + """bulk_create_audience_segments # noqa: E501 + + Creates all segments with a valid configuration, and returns their IDs. For those that cannot be created, one or multiple errors are returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bulk_create_audience_segments(audience_segment_bulk_create_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_bulk_create_input_v1 (AudienceSegmentBulkCreateInputV1): Segment creation parameter + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSegmentEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_bulk_create_input_v1'] = \ + audience_segment_bulk_create_input_v1 + return self.bulk_create_audience_segments_endpoint.call_with_http_info(**kwargs) + + def bulk_create_audiences( + self, + audience_bulk_create_input_v1, + **kwargs + ): + """bulk_create_audiences # noqa: E501 + + Creates all audiences with a valid configuration, and returns their IDs. For those that cannot be created, one or multiple errors are returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bulk_create_audiences(audience_bulk_create_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_bulk_create_input_v1 (AudienceBulkCreateInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_bulk_create_input_v1'] = \ + audience_bulk_create_input_v1 + return self.bulk_create_audiences_endpoint.call_with_http_info(**kwargs) + + def bulk_delete_audience_segments( + self, + audience_segment_bulk_delete_input_v1, + **kwargs + ): + """bulk_delete_audience_segments # noqa: E501 + + Delete the segments associated to the given audience IDs. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bulk_delete_audience_segments(audience_segment_bulk_delete_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_bulk_delete_input_v1 (AudienceSegmentBulkDeleteInputV1): Segment delete request. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSegmentIdEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_bulk_delete_input_v1'] = \ + audience_segment_bulk_delete_input_v1 + return self.bulk_delete_audience_segments_endpoint.call_with_http_info(**kwargs) + + def bulk_delete_audiences( + self, + audience_bulk_delete_input_v1, + **kwargs + ): + """bulk_delete_audiences # noqa: E501 + + Deletes the audiences associated to the given audience IDs. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bulk_delete_audiences(audience_bulk_delete_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_bulk_delete_input_v1 (AudienceBulkDeleteInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceIdEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_bulk_delete_input_v1'] = \ + audience_bulk_delete_input_v1 + return self.bulk_delete_audiences_endpoint.call_with_http_info(**kwargs) + + def bulk_update_audience_segments( + self, + audience_segment_bulk_update_input_v1, + **kwargs + ): + """bulk_update_audience_segments # noqa: E501 + + Updates the properties of all segments with a valid configuration, and returns their IDs. For those that cannot be updated, one or multiple errors are returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bulk_update_audience_segments(audience_segment_bulk_update_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_bulk_update_input_v1 (AudienceSegmentBulkUpdateInputV1): Segment Update request + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSegmentEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_bulk_update_input_v1'] = \ + audience_segment_bulk_update_input_v1 + return self.bulk_update_audience_segments_endpoint.call_with_http_info(**kwargs) + + def bulk_update_audiences( + self, + audience_bulk_update_input_v1, + **kwargs + ): + """bulk_update_audiences # noqa: E501 + + Updates the properties of all audiences with a valid configuration, and returns their IDs. For those that cannot be updated, one or multiple errors are returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bulk_update_audiences(audience_bulk_update_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_bulk_update_input_v1 (AudienceBulkUpdateInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_bulk_update_input_v1'] = \ + audience_bulk_update_input_v1 + return self.bulk_update_audiences_endpoint.call_with_http_info(**kwargs) + + def compute_audience_segments_sizes( + self, + audience_segment_compute_sizes_input_v1, + **kwargs + ): + """compute_audience_segments_sizes # noqa: E501 + + Gets the size of all segments. An error is returned for those whose size calculation is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_compute_sizes_input_v1 (AudienceSegmentComputeSizesInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSegmentSizeEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_compute_sizes_input_v1'] = \ + audience_segment_compute_sizes_input_v1 + return self.compute_audience_segments_sizes_endpoint.call_with_http_info(**kwargs) + + def compute_audiences_sizes( + self, + audience_compute_sizes_input_v1, + **kwargs + ): + """compute_audiences_sizes # noqa: E501 + + Gets the size of all audiences. An error is returned for those whose size calculation is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.compute_audiences_sizes(audience_compute_sizes_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_compute_sizes_input_v1 (AudienceComputeSizesInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSizeEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_compute_sizes_input_v1'] = \ + audience_compute_sizes_input_v1 + return self.compute_audiences_sizes_endpoint.call_with_http_info(**kwargs) + + def create_audience( + self, + new_audience_request, + **kwargs + ): + """create_audience # noqa: E501 + + Create an Audience for an Advertiser # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_audience(new_audience_request, async_req=True) + >>> result = thread.get() + + Args: + new_audience_request (NewAudienceRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + NewAudienceResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['new_audience_request'] = \ + new_audience_request + return self.create_audience_endpoint.call_with_http_info(**kwargs) + + def delete_identifiers( + self, + audience_id, + **kwargs + ): + """delete_identifiers # noqa: E501 + + delete all identifiers from an Audience # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_identifiers(audience_id, async_req=True) + >>> result = thread.get() + + Args: + audience_id (str): The id of the audience to amend + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + DeleteAudienceContactListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_id'] = \ + audience_id + return self.delete_identifiers_endpoint.call_with_http_info(**kwargs) + + def estimate_audience_segment_size( + self, + audience_segment_estimate_size_input_v1, + **kwargs + ): + """estimate_audience_segment_size # noqa: E501 + + Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.estimate_audience_segment_size(audience_segment_estimate_size_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_estimate_size_input_v1 (AudienceSegmentEstimateSizeInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSegmentSizeEstimationV1Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_estimate_size_input_v1'] = \ + audience_segment_estimate_size_input_v1 + return self.estimate_audience_segment_size_endpoint.call_with_http_info(**kwargs) + + def estimate_audience_size( + self, + audience_estimate_size_input_v1, + **kwargs + ): + """estimate_audience_size # noqa: E501 + + Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.estimate_audience_size(audience_estimate_size_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_estimate_size_input_v1 (AudienceEstimateSizeInputV1): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSizeEstimationV1Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_estimate_size_input_v1'] = \ + audience_estimate_size_input_v1 + return self.estimate_audience_size_endpoint.call_with_http_info(**kwargs) + + def get_audience_segment_contact_list_statistics( + self, + audience_segment_id, + **kwargs + ): + """get_audience_segment_contact_list_statistics # noqa: E501 + + Returns the statistics of a contact list segment. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_audience_segment_contact_list_statistics(audience_segment_id, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_id (int): The segment ID. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ContactListStatisticsEntityV1Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_id'] = \ + audience_segment_id + return self.get_audience_segment_contact_list_statistics_endpoint.call_with_http_info(**kwargs) + + def get_audience_segments_in_market_brands( + self, + advertiser_id, + country, + **kwargs + ): + """get_audience_segments_in_market_brands # noqa: E501 + + Returns a list with all available in-market brands that can be used to define an in-market segment. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_audience_segments_in_market_brands(advertiser_id, country, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser ID. + country (str): The ISO 3166-1 alpha-2 country code. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + InMarketAudienceSegmentBrandEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['country'] = \ + country + return self.get_audience_segments_in_market_brands_endpoint.call_with_http_info(**kwargs) + + def get_audience_segments_in_market_interests( + self, + advertiser_id, + country, + **kwargs + ): + """get_audience_segments_in_market_interests # noqa: E501 + + Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_audience_segments_in_market_interests(advertiser_id, country, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser ID. + country (str): The ISO 3166-1 alpha-2 country code. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + InMarketAudienceSegmentInterestEntityV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['country'] = \ + country + return self.get_audience_segments_in_market_interests_endpoint.call_with_http_info(**kwargs) + + def get_audiences( + self, + **kwargs + ): + """get_audiences # noqa: E501 + + Get a list of all the audiences for the user or for the given advertiser_id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_audiences(async_req=True) + >>> result = thread.get() + + + Keyword Args: + advertiser_id (str): The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + GetAudiencesResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_audiences_endpoint.call_with_http_info(**kwargs) + + def modify_audience( + self, + audience_id, + replace_audience_request, + **kwargs + ): + """modify_audience # noqa: E501 + + Update user audience specified by the audience id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.modify_audience(audience_id, replace_audience_request, async_req=True) + >>> result = thread.get() + + Args: + audience_id (str): The id of the audience to amend + replace_audience_request (ReplaceAudienceRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ReplaceAudienceResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_id'] = \ + audience_id + kwargs['replace_audience_request'] = \ + replace_audience_request + return self.modify_audience_endpoint.call_with_http_info(**kwargs) + + def modify_audience_users( + self, + audience_id, + contactlist_amendment_request, + **kwargs + ): + """modify_audience_users # noqa: E501 + + Add/remove users to or from an audience # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.modify_audience_users(audience_id, contactlist_amendment_request, async_req=True) + >>> result = thread.get() + + Args: + audience_id (str): The id of the audience to amend + contactlist_amendment_request (ContactlistAmendmentRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ModifyAudienceResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_id'] = \ + audience_id + kwargs['contactlist_amendment_request'] = \ + contactlist_amendment_request + return self.modify_audience_users_endpoint.call_with_http_info(**kwargs) + + def remove_audience( + self, + audience_id, + **kwargs + ): + """remove_audience # noqa: E501 + + Delete an audience by id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.remove_audience(audience_id, async_req=True) + >>> result = thread.get() + + Args: + audience_id (str): The id of the audience to amend + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + DeleteAudienceResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_id'] = \ + audience_id + return self.remove_audience_endpoint.call_with_http_info(**kwargs) + + def search_audience_segments( + self, + audience_segment_search_input_v1, + **kwargs + ): + """search_audience_segments # noqa: E501 + + Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.search_audience_segments(audience_segment_search_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_segment_search_input_v1 (AudienceSegmentSearchInputV1): Segment search filters. + + Keyword Args: + limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] if omitted the server will use the default value of 50 + offset (int): The (zero-based) offset into the collection. The default is 0.. [optional] if omitted the server will use the default value of 0 + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_search_input_v1'] = \ + audience_segment_search_input_v1 + return self.search_audience_segments_endpoint.call_with_http_info(**kwargs) + + def search_audiences( + self, + audience_search_input_v1, + **kwargs + ): + """search_audiences # noqa: E501 + + Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.search_audiences(audience_search_input_v1, async_req=True) + >>> result = thread.get() + + Args: + audience_search_input_v1 (AudienceSearchInputV1): Audience search filters. + + Keyword Args: + limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] if omitted the server will use the default value of 50 + offset (int): The (zero-based) offset into the collection. The default is 0.. [optional] if omitted the server will use the default value of 0 + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceEntityV1AudienceSearchMetadataV1ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_search_input_v1'] = \ + audience_search_input_v1 + return self.search_audiences_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py new file mode 100644 index 00000000..c5795b80 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/campaign_api.py @@ -0,0 +1,2145 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_input_entity_v1 import AdSetAudienceLinkInputEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse +from criteo_api_marketingsolutions_v2023_07.model.campaign_list_response import CampaignListResponse +from criteo_api_marketingsolutions_v2023_07.model.campaign_response import CampaignResponse +from criteo_api_marketingsolutions_v2023_07.model.campaign_search_request import CampaignSearchRequest +from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1_response import CampaignV23Q1Response +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_request import CreateAdSetRequest +from criteo_api_marketingsolutions_v2023_07.model.create_campaign_request import CreateCampaignRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_list_request import PatchCampaignListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +from criteo_api_marketingsolutions_v2023_07.model.request_ad_set_search import RequestAdSetSearch +from criteo_api_marketingsolutions_v2023_07.model.requests_ad_set_id import RequestsAdSetId +from criteo_api_marketingsolutions_v2023_07.model.requests_patch_ad_set import RequestsPatchAdSet +from criteo_api_marketingsolutions_v2023_07.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_07.model.response_read_ad_set import ResponseReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId +from criteo_api_marketingsolutions_v2023_07.model.responses_read_ad_set import ResponsesReadAdSet + + +class CampaignApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.create_ad_set_endpoint = _Endpoint( + settings={ + 'response_type': (ResponseReadAdSet,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets', + 'operation_id': 'create_ad_set', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'create_ad_set_request', + ], + 'required': [ + 'create_ad_set_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'create_ad_set_request': + (CreateAdSetRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'create_ad_set_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.create_campaign_endpoint = _Endpoint( + settings={ + 'response_type': (CampaignV23Q1Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/campaigns', + 'operation_id': 'create_campaign', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'create_campaign_request', + ], + 'required': [ + 'create_campaign_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'create_campaign_request': + (CreateCampaignRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'create_campaign_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.get_ad_set_endpoint = _Endpoint( + settings={ + 'response_type': (ResponseReadAdSet,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/{adSetId}', + 'operation_id': 'get_ad_set', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'ad_set_id', + ], + 'required': [ + 'ad_set_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'ad_set_id': + (str,), + }, + 'attribute_map': { + 'ad_set_id': 'adSetId', + }, + 'location_map': { + 'ad_set_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_campaign_endpoint = _Endpoint( + settings={ + 'response_type': (CampaignResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/campaigns/{campaign-id}', + 'operation_id': 'get_campaign', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + }, + 'attribute_map': { + 'campaign_id': 'campaign-id', + }, + 'location_map': { + 'campaign_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_category_bid_list_endpoint = _Endpoint( + settings={ + 'response_type': (AdSetCategoryBidListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids', + 'operation_id': 'get_category_bid_list', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'ad_set_id', + ], + 'required': [ + 'ad_set_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'ad_set_id': + (str,), + }, + 'attribute_map': { + 'ad_set_id': 'ad-set-id', + }, + 'location_map': { + 'ad_set_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_display_multipliers_endpoint = _Endpoint( + settings={ + 'response_type': (AdSetDisplayMultiplierListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', + 'operation_id': 'get_display_multipliers', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'ad_set_id', + ], + 'required': [ + 'ad_set_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'ad_set_id': + (str,), + }, + 'attribute_map': { + 'ad_set_id': 'ad-set-id', + }, + 'location_map': { + 'ad_set_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.patch_ad_sets_endpoint = _Endpoint( + settings={ + 'response_type': (ResponseAdSetId,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets', + 'operation_id': 'patch_ad_sets', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'requests_patch_ad_set', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'requests_patch_ad_set': + (RequestsPatchAdSet,), + }, + 'attribute_map': { + }, + 'location_map': { + 'requests_patch_ad_set': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.patch_campaigns_endpoint = _Endpoint( + settings={ + 'response_type': (PatchResultCampaignListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/campaigns', + 'operation_id': 'patch_campaigns', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'patch_campaign_list_request', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'patch_campaign_list_request': + (PatchCampaignListRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'patch_campaign_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.patch_category_bid_list_endpoint = _Endpoint( + settings={ + 'response_type': (PatchAdSetCategoryBidResultListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids', + 'operation_id': 'patch_category_bid_list', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'ad_set_id', + 'patch_ad_set_category_bid_list_request', + ], + 'required': [ + 'ad_set_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'ad_set_id': + (str,), + 'patch_ad_set_category_bid_list_request': + (PatchAdSetCategoryBidListRequest,), + }, + 'attribute_map': { + 'ad_set_id': 'ad-set-id', + }, + 'location_map': { + 'ad_set_id': 'path', + 'patch_ad_set_category_bid_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.patch_display_multipliers_endpoint = _Endpoint( + settings={ + 'response_type': (PatchAdSetDisplayMultiplierResultListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers', + 'operation_id': 'patch_display_multipliers', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'ad_set_id', + 'patch_ad_set_display_multiplier_list_request', + ], + 'required': [ + 'ad_set_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'ad_set_id': + (str,), + 'patch_ad_set_display_multiplier_list_request': + (PatchAdSetDisplayMultiplierListRequest,), + }, + 'attribute_map': { + 'ad_set_id': 'ad-set-id', + }, + 'location_map': { + 'ad_set_id': 'path', + 'patch_ad_set_display_multiplier_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.search_ad_sets_endpoint = _Endpoint( + settings={ + 'response_type': (ResponsesReadAdSet,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/search', + 'operation_id': 'search_ad_sets', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'request_ad_set_search', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'request_ad_set_search': + (RequestAdSetSearch,), + }, + 'attribute_map': { + }, + 'location_map': { + 'request_ad_set_search': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.search_campaigns_endpoint = _Endpoint( + settings={ + 'response_type': (CampaignListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/campaigns/search', + 'operation_id': 'search_campaigns', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_search_request', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_search_request': + (CampaignSearchRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'campaign_search_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.start_ad_sets_endpoint = _Endpoint( + settings={ + 'response_type': (ResponsesAdSetId,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/start', + 'operation_id': 'start_ad_sets', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'requests_ad_set_id', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'requests_ad_set_id': + (RequestsAdSetId,), + }, + 'attribute_map': { + }, + 'location_map': { + 'requests_ad_set_id': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.stop_ad_sets_endpoint = _Endpoint( + settings={ + 'response_type': (ResponsesAdSetId,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/stop', + 'operation_id': 'stop_ad_sets', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'requests_ad_set_id', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'requests_ad_set_id': + (RequestsAdSetId,), + }, + 'attribute_map': { + }, + 'location_map': { + 'requests_ad_set_id': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.update_ad_set_audience_endpoint = _Endpoint( + settings={ + 'response_type': (AdSetAudienceLinkEntityV1Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience', + 'operation_id': 'update_ad_set_audience', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'ad_set_id', + 'ad_set_audience_link_input_entity_v1', + ], + 'required': [ + 'ad_set_id', + 'ad_set_audience_link_input_entity_v1', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'ad_set_id': + (str,), + 'ad_set_audience_link_input_entity_v1': + (AdSetAudienceLinkInputEntityV1,), + }, + 'attribute_map': { + 'ad_set_id': 'ad-set-id', + }, + 'location_map': { + 'ad_set_id': 'path', + 'ad_set_audience_link_input_entity_v1': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + + def create_ad_set( + self, + create_ad_set_request, + **kwargs + ): + """create_ad_set # noqa: E501 + + Create the specified ad set # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_ad_set(create_ad_set_request, async_req=True) + >>> result = thread.get() + + Args: + create_ad_set_request (CreateAdSetRequest): the ad sets to create + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResponseReadAdSet + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['create_ad_set_request'] = \ + create_ad_set_request + return self.create_ad_set_endpoint.call_with_http_info(**kwargs) + + def create_campaign( + self, + create_campaign_request, + **kwargs + ): + """create_campaign # noqa: E501 + + Create the specified campaign # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_campaign(create_campaign_request, async_req=True) + >>> result = thread.get() + + Args: + create_campaign_request (CreateCampaignRequest): the campaigns to create + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CampaignV23Q1Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['create_campaign_request'] = \ + create_campaign_request + return self.create_campaign_endpoint.call_with_http_info(**kwargs) + + def get_ad_set( + self, + ad_set_id, + **kwargs + ): + """get_ad_set # noqa: E501 + + Get the data for the specified ad set # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_ad_set(ad_set_id, async_req=True) + >>> result = thread.get() + + Args: + ad_set_id (str): Id of the ad set + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResponseReadAdSet + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['ad_set_id'] = \ + ad_set_id + return self.get_ad_set_endpoint.call_with_http_info(**kwargs) + + def get_campaign( + self, + campaign_id, + **kwargs + ): + """get_campaign # noqa: E501 + + Get the data for the specified campaign # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_campaign(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): Id of the campaign + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CampaignResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.get_campaign_endpoint.call_with_http_info(**kwargs) + + def get_category_bid_list( + self, + ad_set_id, + **kwargs + ): + """get_category_bid_list # noqa: E501 + + Get the Category Bids for all valid Categories associated to an Ad Set # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_category_bid_list(ad_set_id, async_req=True) + >>> result = thread.get() + + Args: + ad_set_id (str): Id of the Ad Set + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AdSetCategoryBidListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['ad_set_id'] = \ + ad_set_id + return self.get_category_bid_list_endpoint.call_with_http_info(**kwargs) + + def get_display_multipliers( + self, + ad_set_id, + **kwargs + ): + """get_display_multipliers # noqa: E501 + + Get the Display Multipliers for all valid Categories associated to an Ad Set # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_display_multipliers(ad_set_id, async_req=True) + >>> result = thread.get() + + Args: + ad_set_id (str): Id of the Ad Set + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AdSetDisplayMultiplierListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['ad_set_id'] = \ + ad_set_id + return self.get_display_multipliers_endpoint.call_with_http_info(**kwargs) + + def patch_ad_sets( + self, + **kwargs + ): + """patch_ad_sets # noqa: E501 + + Patch a list of AdSets. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_ad_sets(async_req=True) + >>> result = thread.get() + + + Keyword Args: + requests_patch_ad_set (RequestsPatchAdSet): List of adsets to patch.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResponseAdSetId + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.patch_ad_sets_endpoint.call_with_http_info(**kwargs) + + def patch_campaigns( + self, + **kwargs + ): + """patch_campaigns # noqa: E501 + + Patch a list of Campaigns. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_campaigns(async_req=True) + >>> result = thread.get() + + + Keyword Args: + patch_campaign_list_request (PatchCampaignListRequest): List of campaigns to patch.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PatchResultCampaignListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.patch_campaigns_endpoint.call_with_http_info(**kwargs) + + def patch_category_bid_list( + self, + ad_set_id, + **kwargs + ): + """patch_category_bid_list # noqa: E501 + + Patch Category Bids for one or more Categories in a single request. Partial success policy is followed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_category_bid_list(ad_set_id, async_req=True) + >>> result = thread.get() + + Args: + ad_set_id (str): Id of the Ad Set + + Keyword Args: + patch_ad_set_category_bid_list_request (PatchAdSetCategoryBidListRequest): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PatchAdSetCategoryBidResultListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['ad_set_id'] = \ + ad_set_id + return self.patch_category_bid_list_endpoint.call_with_http_info(**kwargs) + + def patch_display_multipliers( + self, + ad_set_id, + **kwargs + ): + """patch_display_multipliers # noqa: E501 + + Patch Display Multipliers for one or more Categories in a single request. Partial success policy is followed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.patch_display_multipliers(ad_set_id, async_req=True) + >>> result = thread.get() + + Args: + ad_set_id (str): Id of the Ad Set + + Keyword Args: + patch_ad_set_display_multiplier_list_request (PatchAdSetDisplayMultiplierListRequest): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PatchAdSetDisplayMultiplierResultListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['ad_set_id'] = \ + ad_set_id + return self.patch_display_multipliers_endpoint.call_with_http_info(**kwargs) + + def search_ad_sets( + self, + **kwargs + ): + """search_ad_sets # noqa: E501 + + Search for ad sets # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.search_ad_sets(async_req=True) + >>> result = thread.get() + + + Keyword Args: + request_ad_set_search (RequestAdSetSearch): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResponsesReadAdSet + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.search_ad_sets_endpoint.call_with_http_info(**kwargs) + + def search_campaigns( + self, + **kwargs + ): + """search_campaigns # noqa: E501 + + Search for campaigns # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.search_campaigns(async_req=True) + >>> result = thread.get() + + + Keyword Args: + campaign_search_request (CampaignSearchRequest): filters on campaigns. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CampaignListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.search_campaigns_endpoint.call_with_http_info(**kwargs) + + def start_ad_sets( + self, + **kwargs + ): + """start_ad_sets # noqa: E501 + + Start the specified list of ad sets # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.start_ad_sets(async_req=True) + >>> result = thread.get() + + + Keyword Args: + requests_ad_set_id (RequestsAdSetId): All the ad sets to start. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResponsesAdSetId + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.start_ad_sets_endpoint.call_with_http_info(**kwargs) + + def stop_ad_sets( + self, + **kwargs + ): + """stop_ad_sets # noqa: E501 + + Stop the specified list of ad sets # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.stop_ad_sets(async_req=True) + >>> result = thread.get() + + + Keyword Args: + requests_ad_set_id (RequestsAdSetId): All the ad sets to stop. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ResponsesAdSetId + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.stop_ad_sets_endpoint.call_with_http_info(**kwargs) + + def update_ad_set_audience( + self, + ad_set_id, + ad_set_audience_link_input_entity_v1, + **kwargs + ): + """update_ad_set_audience # noqa: E501 + + Link or unlink an audience with an ad set # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1, async_req=True) + >>> result = thread.get() + + Args: + ad_set_id (str): The ad set ID. + ad_set_audience_link_input_entity_v1 (AdSetAudienceLinkInputEntityV1): Ad set-Audience update request. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AdSetAudienceLinkEntityV1Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['ad_set_id'] = \ + ad_set_id + kwargs['ad_set_audience_link_input_entity_v1'] = \ + ad_set_audience_link_input_entity_v1 + return self.update_ad_set_audience_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/creative_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/creative_api.py new file mode 100644 index 00000000..2240b47a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/creative_api.py @@ -0,0 +1,2541 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_marketingsolutions_v2023_07.model.ad_list_response import AdListResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_response import AdResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_write_request import AdWriteRequest +from criteo_api_marketingsolutions_v2023_07.model.coupon_list_response import CouponListResponse +from criteo_api_marketingsolutions_v2023_07.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes_response import CouponSupportedSizesResponse +from criteo_api_marketingsolutions_v2023_07.model.create_coupon_request import CreateCouponRequest +from criteo_api_marketingsolutions_v2023_07.model.creative_list_response import CreativeListResponse +from criteo_api_marketingsolutions_v2023_07.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_07.model.creative_write_request import CreativeWriteRequest +from criteo_api_marketingsolutions_v2023_07.model.update_coupon_request import UpdateCouponRequest + + +class CreativeApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.create_advertiser_ad_endpoint = _Endpoint( + settings={ + 'response_type': (AdResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/ads', + 'operation_id': 'create_advertiser_ad', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'ad_write_request', + ], + 'required': [ + 'advertiser_id', + 'ad_write_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'ad_write_request': + (AdWriteRequest,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'ad_write_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.create_advertiser_coupon_endpoint = _Endpoint( + settings={ + 'response_type': (CouponResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons', + 'operation_id': 'create_advertiser_coupon', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'create_coupon_request', + ], + 'required': [ + 'advertiser_id', + 'create_coupon_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'create_coupon_request': + (CreateCouponRequest,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'create_coupon_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.create_advertiser_creative_endpoint = _Endpoint( + settings={ + 'response_type': (CreativeResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives', + 'operation_id': 'create_advertiser_creative', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'creative_write_request', + ], + 'required': [ + 'advertiser_id', + 'creative_write_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'creative_write_request': + (CreativeWriteRequest,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'creative_write_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.delete_ad_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ads/{id}', + 'operation_id': 'delete_ad', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (int,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) + self.delete_advertiser_coupon_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}', + 'operation_id': 'delete_advertiser_coupon', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'id', + ], + 'required': [ + 'advertiser_id', + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'id': + (str,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'id': 'id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) + self.delete_creative_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/creatives/{id}', + 'operation_id': 'delete_creative', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [], + }, + api_client=api_client + ) + self.edit_advertiser_coupon_endpoint = _Endpoint( + settings={ + 'response_type': (CouponResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}', + 'operation_id': 'edit_advertiser_coupon', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'id', + 'update_coupon_request', + ], + 'required': [ + 'advertiser_id', + 'id', + 'update_coupon_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'id': + (str,), + 'update_coupon_request': + (UpdateCouponRequest,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'id': 'id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'id': 'path', + 'update_coupon_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.edit_creative_endpoint = _Endpoint( + settings={ + 'response_type': (CreativeResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/creatives/{id}', + 'operation_id': 'edit_creative', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'creative_write_request', + ], + 'required': [ + 'id', + 'creative_write_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'creative_write_request': + (CreativeWriteRequest,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + 'creative_write_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.generate_creative_preview_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/creatives/{id}/preview', + 'operation_id': 'generate_creative_preview', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'width', + 'height', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'width': + (int,), + 'height': + (int,), + }, + 'attribute_map': { + 'id': 'id', + 'width': 'width', + 'height': 'height', + }, + 'location_map': { + 'id': 'path', + 'width': 'query', + 'height': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/html', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_ad_endpoint = _Endpoint( + settings={ + 'response_type': (AdResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/ads/{id}', + 'operation_id': 'get_ad', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (int,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_ads_endpoint = _Endpoint( + settings={ + 'response_type': (AdListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/ads', + 'operation_id': 'get_advertiser_ads', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'limit', + 'offset', + ], + 'required': [ + 'advertiser_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'limit': + (int,), + 'offset': + (int,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'limit': 'limit', + 'offset': 'offset', + }, + 'location_map': { + 'advertiser_id': 'path', + 'limit': 'query', + 'offset': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_coupon_endpoint = _Endpoint( + settings={ + 'response_type': (CouponResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}', + 'operation_id': 'get_advertiser_coupon', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'id', + ], + 'required': [ + 'advertiser_id', + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'id': + (str,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'id': 'id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_coupon_preview_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview', + 'operation_id': 'get_advertiser_coupon_preview', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'id', + 'width', + 'height', + ], + 'required': [ + 'advertiser_id', + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'id': + (str,), + 'width': + (int,), + 'height': + (int,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'id': 'id', + 'width': 'width', + 'height': 'height', + }, + 'location_map': { + 'advertiser_id': 'path', + 'id': 'path', + 'width': 'query', + 'height': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/html', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_coupon_supported_sizes_endpoint = _Endpoint( + settings={ + 'response_type': (CouponSupportedSizesResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes', + 'operation_id': 'get_advertiser_coupon_supported_sizes', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'ad_set_id', + ], + 'required': [ + 'advertiser_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'ad_set_id': + (str,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'ad_set_id': 'ad-set-id', + }, + 'location_map': { + 'advertiser_id': 'path', + 'ad_set_id': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_coupons_endpoint = _Endpoint( + settings={ + 'response_type': (CouponListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons', + 'operation_id': 'get_advertiser_coupons', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'limit', + 'offset', + ], + 'required': [ + 'advertiser_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'limit': + (int,), + 'offset': + (int,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'limit': 'limit', + 'offset': 'offset', + }, + 'location_map': { + 'advertiser_id': 'path', + 'limit': 'query', + 'offset': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_advertiser_creatives_endpoint = _Endpoint( + settings={ + 'response_type': (CreativeListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives', + 'operation_id': 'get_advertiser_creatives', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'advertiser_id', + 'limit', + 'offset', + ], + 'required': [ + 'advertiser_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'advertiser_id': + (str,), + 'limit': + (int,), + 'offset': + (int,), + }, + 'attribute_map': { + 'advertiser_id': 'advertiser-id', + 'limit': 'limit', + 'offset': 'offset', + }, + 'location_map': { + 'advertiser_id': 'path', + 'limit': 'query', + 'offset': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_creative_endpoint = _Endpoint( + settings={ + 'response_type': (CreativeResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/creatives/{id}', + 'operation_id': 'get_creative', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def create_advertiser_ad( + self, + advertiser_id, + ad_write_request, + **kwargs + ): + """create_advertiser_ad # noqa: E501 + + Create an Ad # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_advertiser_ad(advertiser_id, ad_write_request, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + ad_write_request (AdWriteRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AdResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['ad_write_request'] = \ + ad_write_request + return self.create_advertiser_ad_endpoint.call_with_http_info(**kwargs) + + def create_advertiser_coupon( + self, + advertiser_id, + create_coupon_request, + **kwargs + ): + """create_advertiser_coupon # noqa: E501 + + Create a Coupon # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_advertiser_coupon(advertiser_id, create_coupon_request, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + create_coupon_request (CreateCouponRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CouponResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['create_coupon_request'] = \ + create_coupon_request + return self.create_advertiser_coupon_endpoint.call_with_http_info(**kwargs) + + def create_advertiser_creative( + self, + advertiser_id, + creative_write_request, + **kwargs + ): + """create_advertiser_creative # noqa: E501 + + Create a Creative # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_advertiser_creative(advertiser_id, creative_write_request, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + creative_write_request (CreativeWriteRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CreativeResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['creative_write_request'] = \ + creative_write_request + return self.create_advertiser_creative_endpoint.call_with_http_info(**kwargs) + + def delete_ad( + self, + id, + **kwargs + ): + """delete_ad # noqa: E501 + + Delete an Ad # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_ad(id, async_req=True) + >>> result = thread.get() + + Args: + id (int): The ad identifier to delete. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.delete_ad_endpoint.call_with_http_info(**kwargs) + + def delete_advertiser_coupon( + self, + advertiser_id, + id, + **kwargs + ): + """delete_advertiser_coupon # noqa: E501 + + Delete a Coupon # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_advertiser_coupon(advertiser_id, id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to delete. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + return self.delete_advertiser_coupon_endpoint.call_with_http_info(**kwargs) + + def delete_creative( + self, + id, + **kwargs + ): + """delete_creative # noqa: E501 + + Delete a Creative if there are no ads binded to it # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_creative(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): The creative identifier to delete. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.delete_creative_endpoint.call_with_http_info(**kwargs) + + def edit_advertiser_coupon( + self, + advertiser_id, + id, + update_coupon_request, + **kwargs + ): + """edit_advertiser_coupon # noqa: E501 + + Edit a specific Coupon # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.edit_advertiser_coupon(advertiser_id, id, update_coupon_request, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to edit. + update_coupon_request (UpdateCouponRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CouponResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + kwargs['update_coupon_request'] = \ + update_coupon_request + return self.edit_advertiser_coupon_endpoint.call_with_http_info(**kwargs) + + def edit_creative( + self, + id, + creative_write_request, + **kwargs + ): + """edit_creative # noqa: E501 + + Edit a specific Creative # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.edit_creative(id, creative_write_request, async_req=True) + >>> result = thread.get() + + Args: + id (str): The creative identifier to edit. + creative_write_request (CreativeWriteRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CreativeResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + kwargs['creative_write_request'] = \ + creative_write_request + return self.edit_creative_endpoint.call_with_http_info(**kwargs) + + def generate_creative_preview( + self, + id, + **kwargs + ): + """generate_creative_preview # noqa: E501 + + Generate a preview of a specific Creative # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.generate_creative_preview(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): The Creative identifier to preview. + + Keyword Args: + width (int): The width of the Creative to preview.. [optional] + height (int): The height of the Creative to preview.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + str + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.generate_creative_preview_endpoint.call_with_http_info(**kwargs) + + def get_ad( + self, + id, + **kwargs + ): + """get_ad # noqa: E501 + + Get an Ad from its id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_ad(id, async_req=True) + >>> result = thread.get() + + Args: + id (int): The ad identifier to retrieve. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AdResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.get_ad_endpoint.call_with_http_info(**kwargs) + + def get_advertiser_ads( + self, + advertiser_id, + **kwargs + ): + """get_advertiser_ads # noqa: E501 + + Get the list of self-services Ads for a given advertiser # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_advertiser_ads(advertiser_id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + + Keyword Args: + limit (int): The number of ads to be returned. The default is 50.. [optional] + offset (int): The (zero-based) offset into the collection of ads. The default is 0.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AdListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_ads_endpoint.call_with_http_info(**kwargs) + + def get_advertiser_coupon( + self, + advertiser_id, + id, + **kwargs + ): + """get_advertiser_coupon # noqa: E501 + + Get a Coupon from its id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_advertiser_coupon(advertiser_id, id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to retrieve. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CouponResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + return self.get_advertiser_coupon_endpoint.call_with_http_info(**kwargs) + + def get_advertiser_coupon_preview( + self, + advertiser_id, + id, + **kwargs + ): + """get_advertiser_coupon_preview # noqa: E501 + + Get the preview of a specific Coupon # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_advertiser_coupon_preview(advertiser_id, id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to preview. + + Keyword Args: + width (int): The width of the coupon to preview.. [optional] + height (int): The height of the coupon to preview.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + str + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + kwargs['id'] = \ + id + return self.get_advertiser_coupon_preview_endpoint.call_with_http_info(**kwargs) + + def get_advertiser_coupon_supported_sizes( + self, + advertiser_id, + **kwargs + ): + """get_advertiser_coupon_supported_sizes # noqa: E501 + + Get the list of Coupon supported sizes # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_advertiser_coupon_supported_sizes(advertiser_id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + + Keyword Args: + ad_set_id (str): The ad set id on which you want to check the Coupon supported sizes.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CouponSupportedSizesResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_coupon_supported_sizes_endpoint.call_with_http_info(**kwargs) + + def get_advertiser_coupons( + self, + advertiser_id, + **kwargs + ): + """get_advertiser_coupons # noqa: E501 + + Get the list of self-services Coupons for a given advertiser # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_advertiser_coupons(advertiser_id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + + Keyword Args: + limit (int): The number of coupons to be returned. The default is 50.. [optional] + offset (int): The (zero-based) offset into the collection of coupons. The default is 0.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CouponListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_coupons_endpoint.call_with_http_info(**kwargs) + + def get_advertiser_creatives( + self, + advertiser_id, + **kwargs + ): + """get_advertiser_creatives # noqa: E501 + + Get the list of self-services Creatives for a given advertiser # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_advertiser_creatives(advertiser_id, async_req=True) + >>> result = thread.get() + + Args: + advertiser_id (str): The advertiser identifier. + + Keyword Args: + limit (int): The number of creatives to be returned. The default is 50.. [optional] + offset (int): The (zero-based) offset into the collection of creatives. The default is 0.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CreativeListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_creatives_endpoint.call_with_http_info(**kwargs) + + def get_creative( + self, + id, + **kwargs + ): + """get_creative # noqa: E501 + + Get a Creative from its id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_creative(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): The creative identifier to retrieve. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CreativeResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.get_creative_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/gateway_api.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/gateway_api.py new file mode 100644 index 00000000..55cfd327 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api/gateway_api.py @@ -0,0 +1,161 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_marketingsolutions_v2023_07.model.application_summary_model_response import ApplicationSummaryModelResponse + + +class GatewayApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.get_current_application_endpoint = _Endpoint( + settings={ + 'response_type': (ApplicationSummaryModelResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/marketing-solutions/me', + 'operation_id': 'get_current_application', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + }, + 'attribute_map': { + }, + 'location_map': { + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def get_current_application( + self, + **kwargs + ): + """get_current_application # noqa: E501 + + Get information about the currently logged application # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_current_application(async_req=True) + >>> result = thread.get() + + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ApplicationSummaryModelResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_current_application_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py new file mode 100644 index 00000000..3a9d79e9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client.py @@ -0,0 +1,898 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import json +import atexit +import mimetypes +from multiprocessing.pool import ThreadPool +import io +import os +import re +import typing +from urllib.parse import quote +from urllib3.fields import RequestField + + +from criteo_api_marketingsolutions_v2023_07 import rest +from criteo_api_marketingsolutions_v2023_07.configuration import Configuration +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiTypeError, ApiValueError, ApiException +from criteo_api_marketingsolutions_v2023_07.model_utils import ( + ModelNormal, + ModelSimple, + ModelComposed, + check_allowed_values, + check_validations, + date, + datetime, + deserialize_file, + file_type, + model_to_dict, + none_type, + validate_and_convert_types +) + + +class ApiClient(object): + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + _pool = None + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1): + if configuration is None: + configuration = Configuration.get_default_copy() + self.configuration = configuration + self.pool_threads = pool_threads + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/2023.07.0.230726/python' + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.close() + + def close(self): + if self._pool: + self._pool.close() + self._pool.join() + self._pool = None + if hasattr(atexit, 'unregister'): + atexit.unregister(self.close) + + @property + def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ + if self._pool is None: + atexit.register(self.close) + self._pool = ThreadPool(self.pool_threads) + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, + resource_path: str, + method: str, + path_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + query_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + header_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + body: typing.Optional[typing.Any] = None, + post_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None, + response_type: typing.Optional[typing.Tuple[typing.Any]] = None, + auth_settings: typing.Optional[typing.List[str]] = None, + _return_http_data_only: typing.Optional[bool] = None, + collection_formats: typing.Optional[typing.Dict[str, str]] = None, + _preload_content: bool = True, + _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + _host: typing.Optional[str] = None, + _check_type: typing.Optional[bool] = None, + _content_type: typing.Optional[str] = None, + _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None + ): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + post_params.extend(self.files_parameters(files)) + if header_params['Content-Type'].startswith("multipart"): + post_params = self.parameters_to_multipart(post_params, + (dict)) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # auth setting + self.update_params_for_auth(header_params, query_params, + auth_settings, resource_path, method, body, + request_auths=_request_auths) + + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + try: + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + except ApiException as e: + e.body = e.body.decode('utf-8') + raise e + + self.last_response = response_data + + return_data = response_data + + if not _preload_content: + return (return_data) + return return_data + + # deserialize response data + if response_type: + if response_type != (file_type,): + encoding = "utf-8" + content_type = response_data.getheader('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s\;]?", content_type) + if match: + encoding = match.group(1) + response_data.data = response_data.data.decode(encoding) + + return_data = self.deserialize( + response_data, + response_type, + _check_type + ) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def parameters_to_multipart(self, params, collection_types): + """Get parameters as list of tuples, formatting as json if value is collection_types + + :param params: Parameters as list of two-tuples + :param dict collection_types: Parameter collection types + :return: Parameters as list of tuple or urllib3.fields.RequestField + """ + new_params = [] + if collection_types is None: + collection_types = (dict) + for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501 + if isinstance( + v, collection_types): # v is instance of collection_type, formatting as application/json + v = json.dumps(v, ensure_ascii=False).encode("utf-8") + field = RequestField(k, v) + field.make_multipart(content_type="application/json; charset=utf-8") + new_params.append(field) + else: + new_params.append((k, v)) + return new_params + + @classmethod + def sanitize_for_serialization(cls, obj): + """Prepares data for transmission before it is sent with the rest client + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + If obj is io.IOBase, return the bytes + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if isinstance(obj, (ModelNormal, ModelComposed)): + return { + key: cls.sanitize_for_serialization(val) for key, + val in model_to_dict( + obj, + serialize=True).items()} + elif isinstance(obj, io.IOBase): + return cls.get_file_data_and_close_file(obj) + elif isinstance(obj, (str, int, float, none_type, bool)): + return obj + elif isinstance(obj, (datetime, date)): + return obj.isoformat() + elif isinstance(obj, ModelSimple): + return cls.sanitize_for_serialization(obj.value) + elif isinstance(obj, list): + return [cls.sanitize_for_serialization(item) for item in obj] + elif isinstance(obj, tuple): + return tuple(cls.sanitize_for_serialization(item) for item in obj) + if isinstance(obj, dict): + return {key: cls.sanitize_for_serialization(val) for key, val in obj.items()} + raise ApiValueError( + 'Unable to prepare type {} for serialization'.format( + obj.__class__.__name__)) + + def deserialize(self, response, response_type, _check_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: For the response, a tuple containing: + valid classes + a list containing valid classes (for list schemas) + a dict containing a tuple of valid classes as the value + Example values: + (str,) + (Pet,) + (float, none_type) + ([int, none_type],) + ({str: (bool, str, int, float, date, datetime, str, none_type)},) + :param _check_type: boolean, whether to check the types of the data + received from the server + :type _check_type: bool + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == (file_type,): + content_disposition = response.getheader("Content-Disposition") + return deserialize_file(response.data, self.configuration, + content_disposition=content_disposition) + + # fetch data from response object + try: + received_data = json.loads(response.data) + except ValueError: + received_data = response.data + + # store our data under the key of 'received_data' so users have some + # context if they are deserializing a string and the data type is wrong + deserialized_data = validate_and_convert_types( + received_data, + response_type, + ['received_data'], + True, + _check_type, + configuration=self.configuration + ) + return deserialized_data + + def call_api( + self, + resource_path: str, + method: str, + path_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + query_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + header_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + body: typing.Optional[typing.Any] = None, + post_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None, + response_type: typing.Optional[typing.Tuple[typing.Any]] = None, + auth_settings: typing.Optional[typing.List[str]] = None, + async_req: typing.Optional[bool] = None, + _return_http_data_only: typing.Optional[bool] = None, + collection_formats: typing.Optional[typing.Dict[str, str]] = None, + _preload_content: bool = True, + _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + _host: typing.Optional[str] = None, + _check_type: typing.Optional[bool] = None, + _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None + ): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response_type: For the response, a tuple containing: + valid classes + a list containing valid classes (for list schemas) + a dict containing a tuple of valid classes as the value + Example values: + (str,) + (Pet,) + (float, none_type) + ([int, none_type],) + ({str: (bool, str, int, float, date, datetime, str, none_type)},) + :param files: key -> field name, value -> a list of open file + objects for `multipart/form-data`. + :type files: dict + :param async_req bool: execute request asynchronously + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :type collection_formats: dict, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _check_type: boolean describing if the data back from the server + should have its type checked. + :type _check_type: bool, optional + :param _request_auths: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auths: list, optional + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout, _host, + _check_type, _request_auths=_request_auths) + + return self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, + query_params, + header_params, body, + post_params, files, + response_type, + auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host, _check_type, None, _request_auths)) + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + @staticmethod + def get_file_data_and_close_file(file_instance: io.IOBase) -> bytes: + file_data = file_instance.read() + file_instance.close() + return file_data + + def files_parameters(self, + files: typing.Optional[typing.Dict[str, + typing.List[io.IOBase]]] = None): + """Builds form parameters. + + :param files: None or a dict with key=param_name and + value is a list of open file objects + :return: List of tuples of form parameters with file data + """ + if files is None: + return [] + + params = [] + for param_name, file_instances in files.items(): + if file_instances is None: + # if the file field is nullable, skip None values + continue + for file_instance in file_instances: + if file_instance is None: + # if the file field is nullable, skip None values + continue + if file_instance.closed is True: + raise ApiValueError( + "Cannot read a closed file. The passed in file_type " + "for %s must be open." % param_name + ) + filename = os.path.basename(file_instance.name) + filedata = self.get_file_data_and_close_file(file_instance) + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([param_name, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types, method=None, body=None): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :param method: http method (e.g. POST, PATCH). + :param body: http body to send. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None + + content_types = [x.lower() for x in content_types] + + if (method == 'PATCH' and + 'application/json-patch+json' in content_types and + isinstance(body, list)): + return 'application/json-patch+json' + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, queries, auth_settings, + resource_path, method, body, request_auths=None): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :param resource_path: A string representation of the HTTP request resource path. + :param method: A string representation of the HTTP request method. + :param body: A object representing the body of the HTTP request. + The object type is the return value of _encoder.default(). + :param request_auths: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auths: + for auth_setting in request_auths: + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting) + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting) + + def _apply_auth_params(self, headers, queries, resource_path, method, body, auth_setting): + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['key'] + "=" + auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + +class Endpoint(object): + def __init__(self, settings=None, params_map=None, root_map=None, + headers_map=None, api_client=None, callable=None): + """Creates an endpoint + + Args: + settings (dict): see below key value pairs + 'response_type' (tuple/None): response type + 'auth' (list): a list of auth type keys + 'endpoint_path' (str): the endpoint path + 'operation_id' (str): endpoint string identifier + 'http_method' (str): POST/PUT/PATCH/GET etc + 'servers' (list): list of str servers that this endpoint is at + params_map (dict): see below key value pairs + 'all' (list): list of str endpoint parameter names + 'required' (list): list of required parameter names + 'nullable' (list): list of nullable parameter names + 'enum' (list): list of parameters with enum values + 'validation' (list): list of parameters with validations + root_map + 'validations' (dict): the dict mapping endpoint parameter tuple + paths to their validation dictionaries + 'allowed_values' (dict): the dict mapping endpoint parameter + tuple paths to their allowed_values (enum) dictionaries + 'openapi_types' (dict): param_name to openapi type + 'attribute_map' (dict): param_name to camelCase name + 'location_map' (dict): param_name to 'body', 'file', 'form', + 'header', 'path', 'query' + collection_format_map (dict): param_name to `csv` etc. + headers_map (dict): see below key value pairs + 'accept' (list): list of Accept header strings + 'content_type' (list): list of Content-Type header strings + api_client (ApiClient) api client instance + callable (function): the function which is invoked when the + Endpoint is called + """ + self.settings = settings + self.params_map = params_map + self.params_map['all'].extend([ + 'async_req', + '_host_index', + '_preload_content', + '_request_timeout', + '_return_http_data_only', + '_check_input_type', + '_check_return_type', + '_content_type', + '_spec_property_naming', + '_request_auths' + ]) + self.params_map['nullable'].extend(['_request_timeout']) + self.validations = root_map['validations'] + self.allowed_values = root_map['allowed_values'] + self.openapi_types = root_map['openapi_types'] + extra_types = { + 'async_req': (bool,), + '_host_index': (none_type, int), + '_preload_content': (bool,), + '_request_timeout': (none_type, float, (float,), [float], int, (int,), [int]), + '_return_http_data_only': (bool,), + '_check_input_type': (bool,), + '_check_return_type': (bool,), + '_spec_property_naming': (bool,), + '_content_type': (none_type, str), + '_request_auths': (none_type, list) + } + self.openapi_types.update(extra_types) + self.attribute_map = root_map['attribute_map'] + self.location_map = root_map['location_map'] + self.collection_format_map = root_map['collection_format_map'] + self.headers_map = headers_map + self.api_client = api_client + self.callable = callable + + def __validate_inputs(self, kwargs): + for param in self.params_map['enum']: + if param in kwargs: + check_allowed_values( + self.allowed_values, + (param,), + kwargs[param] + ) + + for param in self.params_map['validation']: + if param in kwargs: + check_validations( + self.validations, + (param,), + kwargs[param], + configuration=self.api_client.configuration + ) + + if kwargs['_check_input_type'] is False: + return + + for key, value in kwargs.items(): + fixed_val = validate_and_convert_types( + value, + self.openapi_types[key], + [key], + kwargs['_spec_property_naming'], + kwargs['_check_input_type'], + configuration=self.api_client.configuration + ) + kwargs[key] = fixed_val + + def __gather_params(self, kwargs): + params = { + 'body': None, + 'collection_format': {}, + 'file': {}, + 'form': [], + 'header': {}, + 'path': {}, + 'query': [] + } + + for param_name, param_value in kwargs.items(): + param_location = self.location_map.get(param_name) + if param_location is None: + continue + if param_location: + if param_location == 'body': + params['body'] = param_value + continue + base_name = self.attribute_map[param_name] + if (param_location == 'form' and + self.openapi_types[param_name] == (file_type,)): + params['file'][base_name] = [param_value] + elif (param_location == 'form' and + self.openapi_types[param_name] == ([file_type],)): + # param_value is already a list + params['file'][base_name] = param_value + elif param_location in {'form', 'query'}: + param_value_full = (base_name, param_value) + params[param_location].append(param_value_full) + if param_location not in {'form', 'query'}: + params[param_location][base_name] = param_value + collection_format = self.collection_format_map.get(param_name) + if collection_format: + params['collection_format'][base_name] = collection_format + + return params + + def __call__(self, *args, **kwargs): + """ This method is invoked when endpoints are called + Example: + + api_instance = AdvertiserApi() + api_instance.api_portfolio_get # this is an instance of the class Endpoint + api_instance.api_portfolio_get() # this invokes api_instance.api_portfolio_get.__call__() + which then invokes the callable functions stored in that endpoint at + api_instance.api_portfolio_get.callable or self.callable in this class + + """ + return self.callable(self, *args, **kwargs) + + def call_with_http_info(self, **kwargs): + + try: + index = self.api_client.configuration.server_operation_index.get( + self.settings['operation_id'], self.api_client.configuration.server_index + ) if kwargs['_host_index'] is None else kwargs['_host_index'] + server_variables = self.api_client.configuration.server_operation_variables.get( + self.settings['operation_id'], self.api_client.configuration.server_variables + ) + _host = self.api_client.configuration.get_host_from_settings( + index, variables=server_variables, servers=self.settings['servers'] + ) + except IndexError: + if self.settings['servers']: + raise ApiValueError( + "Invalid host index. Must be 0 <= index < %s" % + len(self.settings['servers']) + ) + _host = None + + for key, value in kwargs.items(): + if key not in self.params_map['all']: + raise ApiTypeError( + "Got an unexpected parameter '%s'" + " to method `%s`" % + (key, self.settings['operation_id']) + ) + # only throw this nullable ApiValueError if _check_input_type + # is False, if _check_input_type==True we catch this case + # in self.__validate_inputs + if (key not in self.params_map['nullable'] and value is None + and kwargs['_check_input_type'] is False): + raise ApiValueError( + "Value may not be None for non-nullable parameter `%s`" + " when calling `%s`" % + (key, self.settings['operation_id']) + ) + + for key in self.params_map['required']: + if key not in kwargs.keys(): + raise ApiValueError( + "Missing the required parameter `%s` when calling " + "`%s`" % (key, self.settings['operation_id']) + ) + + self.__validate_inputs(kwargs) + + params = self.__gather_params(kwargs) + + accept_headers_list = self.headers_map['accept'] + if accept_headers_list: + params['header']['Accept'] = self.api_client.select_header_accept( + accept_headers_list) + + if kwargs.get('_content_type'): + params['header']['Content-Type'] = kwargs['_content_type'] + else: + content_type_headers_list = self.headers_map['content_type'] + if content_type_headers_list: + if params['body'] != "": + content_types_list = self.api_client.select_header_content_type( + content_type_headers_list, self.settings['http_method'], + params['body']) + if content_types_list: + params['header']['Content-Type'] = content_types_list + + return self.api_client.call_api( + self.settings['endpoint_path'], self.settings['http_method'], + params['path'], + params['query'], + params['header'], + body=params['body'], + post_params=params['form'], + files=params['file'], + response_type=self.settings['response_type'], + auth_settings=self.settings['auth'], + async_req=kwargs['async_req'], + _check_type=kwargs['_check_return_type'], + _return_http_data_only=kwargs['_return_http_data_only'], + _preload_content=kwargs['_preload_content'], + _request_timeout=kwargs['_request_timeout'], + _host=_host, + _request_auths=kwargs['_request_auths'], + collection_formats=params['collection_format']) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client_builder.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client_builder.py new file mode 100644 index 00000000..9ade8eb9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/api_client_builder.py @@ -0,0 +1,37 @@ +from criteo_api_marketingsolutions_v2023_07.configuration import Configuration +from criteo_api_marketingsolutions_v2023_07.criteo_api_client import CriteoApiClient +from criteo_api_marketingsolutions_v2023_07 import flow_constants + +class ApiClientBuilder : + + @staticmethod + def WithClientCredentials(clientId, clientSecret, host=None): + configuration = Configuration(username=clientId, password=clientSecret, host=host) + + return CriteoApiClient(configuration) + + @staticmethod + def WithNoAuthorization(): + + return CriteoApiClient() + + @staticmethod + def WithAuthorizationCode(clientId, clientSecret, authorization_code, redirect_uri, host=None): + configuration = Configuration(username=clientId, password=clientSecret, host=host) + additional_parameters = { + 'flow' : flow_constants.AUTHORIZATION_CODE_FLOW, + 'authorization_code': authorization_code, + 'redirect_uri': redirect_uri + } + + return CriteoApiClient(configuration = configuration, additional_parameters = additional_parameters) + + @staticmethod + def WithRefreshToken(clientId, clientSecret, refreshToken, host=None): + configuration = Configuration(username=clientId, password=clientSecret, host=host) + additional_parameters = { + 'flow' : flow_constants.REFRESH_TOKEN_FLOW, + 'refresh_token': refreshToken + } + + return CriteoApiClient(configuration = configuration, additional_parameters = additional_parameters) \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/apis/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/apis/__init__.py new file mode 100644 index 00000000..acfeb7c0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/apis/__init__.py @@ -0,0 +1,22 @@ + +# flake8: noqa + +# Import all APIs into this package. +# If you have many APIs here with many many models used in each API this may +# raise a `RecursionError`. +# In order to avoid this, import only the API that you directly need like: +# +# from criteo_api_marketingsolutions_v2023_07.api.advertiser_api import AdvertiserApi +# +# or import this package, but before doing it, use: +# +# import sys +# sys.setrecursionlimit(n) + +# Import APIs into API package: +from criteo_api_marketingsolutions_v2023_07.api.advertiser_api import AdvertiserApi +from criteo_api_marketingsolutions_v2023_07.api.analytics_api import AnalyticsApi +from criteo_api_marketingsolutions_v2023_07.api.audience_api import AudienceApi +from criteo_api_marketingsolutions_v2023_07.api.campaign_api import CampaignApi +from criteo_api_marketingsolutions_v2023_07.api.creative_api import CreativeApi +from criteo_api_marketingsolutions_v2023_07.api.gateway_api import GatewayApi diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py new file mode 100644 index 00000000..0da6e135 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/configuration.py @@ -0,0 +1,461 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +from http import client as http_client +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiValueError + + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +class Configuration(object): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format + + :Example: + """ + + _default = None + + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + access_token=None, + username=None, password=None, + discard_unknown_keys=False, + disabled_client_side_validations="", + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ssl_ca_cert=None, + ): + """Constructor + """ + self._base_path = "https://api.criteo.com" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.access_token = access_token + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.discard_unknown_keys = discard_unknown_keys + self.disabled_client_side_validations = disabled_client_side_validations + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("criteo_api_marketingsolutions_v2023_07") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + self.debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy = None + """Proxy URL + """ + self.no_proxy = None + """bypass proxy for host in the no_proxy list. + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = None + """Adding retries to override urllib3 default value 3 + """ + # Enable client side validation + self.client_side_validation = True + + # Options to pass down to the underlying urllib3 socket + self.socket_options = None + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name, value): + object.__setattr__(self, name, value) + if name == 'disabled_client_side_validations': + s = set(filter(None, value.split(','))) + for v in s: + if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: + raise ApiValueError( + "Invalid keyword: '{0}''".format(v)) + self._disabled_client_side_validations = s + + @classmethod + def set_default(cls, default): + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = copy.deepcopy(default) + + @classmethod + def get_default_copy(cls): + """Return new instance of configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration passed by the set_default method. + + :return: The configuration object. + """ + if cls._default is not None: + return copy.deepcopy(cls._default) + return Configuration() + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in self.logger.items(): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in self.logger.items(): + logger.setLevel(logging.DEBUG) + # turn on http_client debug + http_client.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in self.logger.items(): + logger.setLevel(logging.WARNING) + # turn off http_client debug + http_client.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier, alias=None): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth = {} + if self.access_token is not None: + auth['oauth'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + if self.access_token is not None: + auth['oauth'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + return auth + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 2023-07\n"\ + "SDK Package Version: 2023.07.0.230726".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "https://api.criteo.com", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None, servers=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value): + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_api_client.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_api_client.py new file mode 100644 index 00000000..a3684ff6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_api_client.py @@ -0,0 +1,11 @@ +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient +from criteo_api_marketingsolutions_v2023_07.criteo_rest import CriteoRESTClientObject + +class CriteoApiClient(ApiClient): + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1, additional_parameters= {}): + super().__init__(configuration=configuration,header_name=header_name, header_value=header_value, cookie=cookie, pool_threads=pool_threads) + self.rest_client = CriteoRESTClientObject(self.configuration, additional_parameters) + + def get_refresh_token(self): + return self.rest_client.get_refresh_token() \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_auth.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_auth.py new file mode 100644 index 00000000..1e71ba6b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_auth.py @@ -0,0 +1,121 @@ +import json +from datetime import datetime, timedelta +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiException +from criteo_api_marketingsolutions_v2023_07.api_client import ApiClient +from criteo_api_marketingsolutions_v2023_07 import flow_constants + +class Token(object): + + def __init__(self, token_string , expiration_date = None): + self.expiration_date = expiration_date + self.token_string = token_string + + def has_expired(self): + if not self.expiration_date: + return False + return self.expiration_date > datetime.utcnow() + +class BasicAuth(object): + + def __init__(self, token_string): + self.token = Token(token_string) + + def get_token(self, client : ApiClient, headers) -> str: + return self.token + +class RetryingOAuth(object): + + def __init__(self, grant_type, client_id, client_secret): + self.grant_type = grant_type + self.client_id = client_id + self.client_secret = client_secret + self.token = None + self.refreshToken = None + + def get_token(self, client : ApiClient, headers) -> str: + if self.token and not self.token.has_expired(): + self.token = None + if self.grant_type == flow_constants.AUTHORIZATION_CODE_FLOW: + self.grant_type = flow_constants.REFRESH_TOKEN_FLOW + + if self.token is None: + self.refresh_token(client, headers) + + return self.token + + def refresh_token(self, client : ApiClient, headers, parameters_dict= {}): + oauth_url = client.host + '/oauth2/token' + new_headers = {'Accept': 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', + 'User-Agent': headers['User-Agent']} + params = dict(parameters_dict, **{ + 'client_id': self.client_id, + 'client_secret': self.client_secret, + 'grant_type' : self.grant_type + }) + try: + if self.grant_type == flow_constants.REFRESH_TOKEN_FLOW: + params['refresh_token'] = self.refreshToken + + response = client.request('POST', oauth_url, + headers=new_headers, + query_params=[], + post_params=list(params.items()), + _preload_content=True, + _request_timeout=None, + body=None, + no_auth=True) + data = json.loads(response.data) + self.token = Token('Bearer '+ (data['access_token'] or ''), + RetryingOAuth.compute_expiration_date(data['expires_in'])) + self.refreshToken = data['refresh_token'] + + return self.token + except ApiException as e: + raise self._enrich_exception_message(e, oauth_url) + + def get_refresh_token(self): + return self.refreshToken + + def _enrich_exception_message(self, e, url): + try: + data = json.loads(e.body or {}) + except ValueError: + data = {} + data['token_error'] = "Cannot refresh token by calling '" + url + "'" + e.body = json.dumps(data).encode() + return e + + @staticmethod + def compute_expiration_date(expires_in): + return datetime.utcnow() + timedelta(seconds=int(expires_in) + 15) + +class RetryingClientCredentials(RetryingOAuth): + + def __init__(self, client_id, client_secret): + super().__init__(flow_constants.CLIENT_CREDENTIALS_FLOW, client_id, client_secret) + +class RetryingAuthorizationCode(RetryingOAuth): + def __init__(self, client_id, client_secret, code, redirect_uri): + super().__init__(flow_constants.AUTHORIZATION_CODE_FLOW, client_id, client_secret) + self.authorization_code = code + self.redirect_uri = redirect_uri + + def refresh_token(self, client : ApiClient, headers, parameters_dict= {}): + params = dict(parameters_dict, **{ + 'code' : self.authorization_code, + 'redirect_uri' : self.redirect_uri + }) + return super().refresh_token(client, headers, params) + +class RetryingRefreshToken(RetryingOAuth): + + def __init__(self, client_id, client_secret, refresh_token): + super().__init__(flow_constants.REFRESH_TOKEN_FLOW, client_id, client_secret) + self.refreshToken = refresh_token + + def refresh_token(self, client: ApiClient, headers, parameters_dict = {}): + params = dict(parameters_dict, **{ + 'refresh_token' : self.refreshToken + }) + return super().refresh_token(client, headers,params) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_rest.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_rest.py new file mode 100644 index 00000000..b86f09bd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/criteo_rest.py @@ -0,0 +1,75 @@ +from criteo_api_marketingsolutions_v2023_07.rest import RESTClientObject +from criteo_api_marketingsolutions_v2023_07.criteo_auth import * +from criteo_api_marketingsolutions_v2023_07 import flow_constants + + +class CriteoRESTClientObject(RESTClientObject): + + def __init__(self, configuration, additional_parameters = {}, pools_size=4, maxsize=None): + super().__init__(configuration, pools_size, maxsize) + + self.host = configuration.host + client_id = configuration.username + client_secret = configuration.password + + grant_type = additional_parameters.get('flow', 'client_credentials') + if grant_type == flow_constants.AUTHORIZATION_CODE_FLOW : + self.authorization = RetryingAuthorizationCode( + client_id, + client_secret, + additional_parameters.get('authorization_code',''), + additional_parameters.get('redirect_uri','') + ) + elif grant_type == flow_constants.REFRESH_TOKEN_FLOW : + self.authorization = RetryingRefreshToken( + client_id, + client_secret, + additional_parameters.get('refresh_token', '') + ) + else: + self.authorization = RetryingClientCredentials( + client_id, + client_secret + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + return self.request(method, url, query_params, headers, body,post_params, _preload_content, _request_timeout, no_auth=False) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None, no_auth=False): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param no_auth: if True, token is not refreshed + and authorization header is not set + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + + headers = headers or {} + if not no_auth: + token = self.authorization.get_token(self, headers) + headers['Authorization'] = token.token_string + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + return super().request(method, url, query_params, headers, body, post_params, _preload_content, _request_timeout) + + def get_refresh_token(self): + return self.authorization.get_refresh_token() \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/exceptions.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/exceptions.py new file mode 100644 index 00000000..5c8fbfbb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/exceptions.py @@ -0,0 +1,158 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None): + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "Status Code: {0}\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +class NotFoundException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(NotFoundException, self).__init__(status, reason, http_resp) + + +class UnauthorizedException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(UnauthorizedException, self).__init__(status, reason, http_resp) + + +class ForbiddenException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(ForbiddenException, self).__init__(status, reason, http_resp) + + +class ServiceException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(ServiceException, self).__init__(status, reason, http_resp) + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, int): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/flow_constants.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/flow_constants.py new file mode 100644 index 00000000..496d87c3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/flow_constants.py @@ -0,0 +1,5 @@ +"""This file defines authentication flows constants.""" + +CLIENT_CREDENTIALS_FLOW = 'client_credentials' +AUTHORIZATION_CODE_FLOW = 'authorization_code' +REFRESH_TOKEN_FLOW = 'refresh_token' diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/__init__.py new file mode 100644 index 00000000..a86de51a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/__init__.py @@ -0,0 +1,5 @@ +# we can not import model classes here because that would create a circular +# reference which would not work in python2 +# do not import all models into this module because that uses a lot of memory and stack frames +# if you need the ability to import all models from one package, import them with +# from criteo_api_marketingsolutions_v2023_07.models import ModelA, ModelB diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad.py new file mode 100644 index 00000000..8f712f0a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad.py @@ -0,0 +1,292 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class Ad(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('inventory_type',): { + 'NATIVE': "Native", + 'DISPLAY': "Display", + 'VIDEO': "Video", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'creative_id': (str,), # noqa: E501 + 'ad_set_id': (str,), # noqa: E501 + 'inventory_type': (str,), # noqa: E501 + 'start_date': (str,), # noqa: E501 + 'end_date': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'creative_id': 'creativeId', # noqa: E501 + 'ad_set_id': 'adSetId', # noqa: E501 + 'inventory_type': 'inventoryType', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Ad - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name of the ad. [optional] # noqa: E501 + description (str): The description of the ad. [optional] # noqa: E501 + creative_id (str): The id of the Creative binded to this Ad. [optional] # noqa: E501 + ad_set_id (str): The id of the Ad Set binded to this Ad. [optional] # noqa: E501 + inventory_type (str): The inventory the Ad belongs to. Possible values are \"Display\" and \"Native\". This is optional since this doesn't make sense for every creative type but will throw an error if not set for a dynamic creative.. [optional] # noqa: E501 + start_date (str): The date when the ad will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Ad - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name of the ad. [optional] # noqa: E501 + description (str): The description of the ad. [optional] # noqa: E501 + creative_id (str): The id of the Creative binded to this Ad. [optional] # noqa: E501 + ad_set_id (str): The id of the Ad Set binded to this Ad. [optional] # noqa: E501 + inventory_type (str): The inventory the Ad belongs to. Possible values are \"Display\" and \"Native\". This is optional since this doesn't make sense for every creative type but will throw an error if not set for a dynamic creative.. [optional] # noqa: E501 + start_date (str): The date when the ad will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_list_response.py new file mode 100644 index 00000000..0e452445 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_resource import AdResource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AdResource'] = AdResource + globals()['CommonProblem'] = CommonProblem + + +class AdListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AdResource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AdResource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AdResource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_resource.py new file mode 100644 index 00000000..38416df2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad import Ad + globals()['Ad'] = Ad + + +class AdResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Ad,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Ad): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Ad): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_response.py new file mode 100644 index 00000000..0b483949 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_resource import AdResource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AdResource'] = AdResource + globals()['CommonProblem'] = CommonProblem + + +class AdResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AdResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1.py new file mode 100644 index 00000000..48c85052 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetAudienceLinkEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'audience_id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'audience_id': 'audienceId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + audience_id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + audience_id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_resource.py new file mode 100644 index 00000000..30267572 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1 import AdSetAudienceLinkEntityV1 + globals()['AdSetAudienceLinkEntityV1'] = AdSetAudienceLinkEntityV1 + + +class AdSetAudienceLinkEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AdSetAudienceLinkEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdSetAudienceLinkEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdSetAudienceLinkEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_response.py new file mode 100644 index 00000000..7c27cac4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_entity_v1_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1_resource import AdSetAudienceLinkEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AdSetAudienceLinkEntityV1Resource'] = AdSetAudienceLinkEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AdSetAudienceLinkEntityV1Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AdSetAudienceLinkEntityV1Resource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkEntityV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdSetAudienceLinkEntityV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkEntityV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdSetAudienceLinkEntityV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_input_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_input_entity_v1.py new file mode 100644 index 00000000..d2674142 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_audience_link_input_entity_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1_resource import AdSetAudienceLinkEntityV1Resource + globals()['AdSetAudienceLinkEntityV1Resource'] = AdSetAudienceLinkEntityV1Resource + + +class AdSetAudienceLinkInputEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AdSetAudienceLinkEntityV1Resource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkInputEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdSetAudienceLinkEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetAudienceLinkInputEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdSetAudienceLinkEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid.py new file mode 100644 index 00000000..5ec85f28 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetCategoryBid(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'category_name': (str,), # noqa: E501 + 'bid_amount': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'category_name': 'categoryName', # noqa: E501 + 'bid_amount': 'bidAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetCategoryBid - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_name (str): The name of the Category to which the Category Bid has been applied.. [optional] # noqa: E501 + bid_amount (float): The Bid amount applied to the given Category associated to an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetCategoryBid - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_name (str): The name of the Category to which the Category Bid has been applied.. [optional] # noqa: E501 + bid_amount (float): The Bid amount applied to the given Category associated to an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py new file mode 100644 index 00000000..d2ed3401 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid_resource import AdSetCategoryBidResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['AdSetCategoryBidResource'] = AdSetCategoryBidResource + globals()['ProblemDetails'] = ProblemDetails + + +class AdSetCategoryBidListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AdSetCategoryBidResource],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetCategoryBidListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AdSetCategoryBidResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetCategoryBidListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AdSetCategoryBidResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_resource.py new file mode 100644 index 00000000..82e60b96 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_category_bid_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid import AdSetCategoryBid + globals()['AdSetCategoryBid'] = AdSetCategoryBid + + +class AdSetCategoryBidResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AdSetCategoryBid,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetCategoryBidResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdSetCategoryBid): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetCategoryBidResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdSetCategoryBid): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py new file mode 100644 index 00000000..461119bd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_delivery_limitations.py @@ -0,0 +1,292 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetDeliveryLimitations(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('environments',): { + 'WEB': "web", + 'INAPP': "inApp", + }, + ('devices',): { + 'OTHER': "other", + 'DESKTOP': "desktop", + 'MOBILE': "mobile", + 'TABLET': "tablet", + }, + ('operating_systems',): { + 'ANDROID': "android", + 'IOS': "ios", + 'UNKNOWN': "unknown", + }, + } + + validations = { + ('environments',): { + }, + ('devices',): { + }, + ('operating_systems',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'environments': ([str],), # noqa: E501 + 'devices': ([str],), # noqa: E501 + 'operating_systems': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'environments': 'environments', # noqa: E501 + 'devices': 'devices', # noqa: E501 + 'operating_systems': 'operatingSystems', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetDeliveryLimitations - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + environments ([str]): List of environments which the ad set should target. [optional] # noqa: E501 + devices ([str]): List of devices which the ad set should target. [optional] # noqa: E501 + operating_systems ([str]): List of operating systems which the ad set should target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetDeliveryLimitations - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + environments ([str]): List of environments which the ad set should target. [optional] # noqa: E501 + devices ([str]): List of devices which the ad set should target. [optional] # noqa: E501 + operating_systems ([str]): List of operating systems which the ad set should target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier.py new file mode 100644 index 00000000..12a2dc52 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetDisplayMultiplier(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'category_name': (str,), # noqa: E501 + 'display_multiplier': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'category_name': 'categoryName', # noqa: E501 + 'display_multiplier': 'displayMultiplier', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetDisplayMultiplier - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_name (str): The name of the Category to which the given for which the Display Multiplier has been applied.. [optional] # noqa: E501 + display_multiplier (float): The Display Multiplier applied to the given Category associated to an Ad Set.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetDisplayMultiplier - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_name (str): The name of the Category to which the given for which the Display Multiplier has been applied.. [optional] # noqa: E501 + display_multiplier (float): The Display Multiplier applied to the given Category associated to an Ad Set.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py new file mode 100644 index 00000000..ac7d2ed5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['AdSetDisplayMultiplierResource'] = AdSetDisplayMultiplierResource + globals()['ProblemDetails'] = ProblemDetails + + +class AdSetDisplayMultiplierListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AdSetDisplayMultiplierResource],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetDisplayMultiplierListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AdSetDisplayMultiplierResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetDisplayMultiplierListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AdSetDisplayMultiplierResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_resource.py new file mode 100644 index 00000000..111db5b6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_display_multiplier_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier import AdSetDisplayMultiplier + globals()['AdSetDisplayMultiplier'] = AdSetDisplayMultiplier + + +class AdSetDisplayMultiplierResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AdSetDisplayMultiplier,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetDisplayMultiplierResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdSetDisplayMultiplier): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetDisplayMultiplierResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdSetDisplayMultiplier): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py new file mode 100644 index 00000000..0daf7a90 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_frequency_capping.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetFrequencyCapping(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('frequency',): { + 'HOURLY': "hourly", + 'DAILY': "daily", + 'LIFETIME': "lifetime", + 'ADVANCED': "advanced", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'frequency': (str,), # noqa: E501 + 'maximum_impressions': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'frequency': 'frequency', # noqa: E501 + 'maximum_impressions': 'maximumImpressions', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetFrequencyCapping - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + frequency (str): Period on which impression limitation is calculated. [optional] # noqa: E501 + maximum_impressions (int): Maximum impressions for the specified period. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetFrequencyCapping - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + frequency (str): Period on which impression limitation is calculated. [optional] # noqa: E501 + maximum_impressions (int): Maximum impressions for the specified period. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_geo_location.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_geo_location.py new file mode 100644 index 00000000..20e197f1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_geo_location.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule + globals()['NillableAdSetTargetingRule'] = NillableAdSetTargetingRule + + +class AdSetGeoLocation(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'countries': (NillableAdSetTargetingRule,), # noqa: E501 + 'subdivisions': (NillableAdSetTargetingRule,), # noqa: E501 + 'zip_codes': (NillableAdSetTargetingRule,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'countries': 'countries', # noqa: E501 + 'subdivisions': 'subdivisions', # noqa: E501 + 'zip_codes': 'zipCodes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetGeoLocation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + countries (NillableAdSetTargetingRule): [optional] # noqa: E501 + subdivisions (NillableAdSetTargetingRule): [optional] # noqa: E501 + zip_codes (NillableAdSetTargetingRule): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetGeoLocation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + countries (NillableAdSetTargetingRule): [optional] # noqa: E501 + subdivisions (NillableAdSetTargetingRule): [optional] # noqa: E501 + zip_codes (NillableAdSetTargetingRule): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py new file mode 100644 index 00000000..b2afa5c5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_search_filter.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetSearchFilter(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('ad_set_ids',): { + }, + ('advertiser_ids',): { + }, + ('campaign_ids',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'ad_set_ids': ([str],), # noqa: E501 + 'advertiser_ids': ([str],), # noqa: E501 + 'campaign_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'ad_set_ids': 'adSetIds', # noqa: E501 + 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'campaign_ids': 'campaignIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetSearchFilter - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + ad_set_ids ([str]): Ad set ids to filter on. [optional] # noqa: E501 + advertiser_ids ([str]): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 + campaign_ids ([str]): Campaign ids to filter on. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetSearchFilter - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + ad_set_ids ([str]): Ad set ids to filter on. [optional] # noqa: E501 + advertiser_ids ([str]): Advertiser ids which ad sets belongs to (indirectly via their marketing campaign). [optional] # noqa: E501 + campaign_ids ([str]): Campaign ids to filter on. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting.py new file mode 100644 index 00000000..c7768037 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_delivery_limitations import AdSetDeliveryLimitations + from criteo_api_marketingsolutions_v2023_07.model.ad_set_frequency_capping import AdSetFrequencyCapping + from criteo_api_marketingsolutions_v2023_07.model.ad_set_geo_location import AdSetGeoLocation + globals()['AdSetDeliveryLimitations'] = AdSetDeliveryLimitations + globals()['AdSetFrequencyCapping'] = AdSetFrequencyCapping + globals()['AdSetGeoLocation'] = AdSetGeoLocation + + +class AdSetTargeting(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'delivery_limitations': (AdSetDeliveryLimitations,), # noqa: E501 + 'geo_location': (AdSetGeoLocation,), # noqa: E501 + 'frequency_capping': (AdSetFrequencyCapping,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'delivery_limitations': 'deliveryLimitations', # noqa: E501 + 'geo_location': 'geoLocation', # noqa: E501 + 'frequency_capping': 'frequencyCapping', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetTargeting - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501 + geo_location (AdSetGeoLocation): [optional] # noqa: E501 + frequency_capping (AdSetFrequencyCapping): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetTargeting - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501 + geo_location (AdSetGeoLocation): [optional] # noqa: E501 + frequency_capping (AdSetFrequencyCapping): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py new file mode 100644 index 00000000..1d571aa4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_set_targeting_rule.py @@ -0,0 +1,274 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdSetTargetingRule(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('operand',): { + 'UNDEFINED': "undefined", + 'IN': "in", + 'NOTIN': "notIn", + }, + } + + validations = { + ('values',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'operand': (str,), # noqa: E501 + 'values': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'operand': 'operand', # noqa: E501 + 'values': 'values', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdSetTargetingRule - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + operand (str): Operand which states how the values should be applied. [optional] # noqa: E501 + values ([str]): List of values to apply. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdSetTargetingRule - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + operand (str): Operand which states how the values should be applied. [optional] # noqa: E501 + values ([str]): List of values to apply. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write.py new file mode 100644 index 00000000..a5061d4a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write.py @@ -0,0 +1,303 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdWrite(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('inventory_type',): { + 'DISPLAY': "Display", + 'NATIVE': "Native", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'creative_id': (str,), # noqa: E501 + 'ad_set_id': (str,), # noqa: E501 + 'start_date': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'inventory_type': (str,), # noqa: E501 + 'end_date': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'creative_id': 'creativeId', # noqa: E501 + 'ad_set_id': 'adSetId', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'description': 'description', # noqa: E501 + 'inventory_type': 'inventoryType', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, creative_id, ad_set_id, start_date, *args, **kwargs): # noqa: E501 + """AdWrite - a model defined in OpenAPI + + Args: + name (str): The name of the ad + creative_id (str): The id of the Creative bound to this Ad + ad_set_id (str): The id of the Ad Set bound to this Ad + start_date (str): The date when the ad will be launched String must be in ISO8601 format + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the ad. [optional] # noqa: E501 + inventory_type (str): The inventory the Ad to be created or updated belongs to. Possible values are \"Display\" and \"Native\". This is optional since this doesn't make sense for every creative type but will throw an error if not set for a dynamic creative.. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.creative_id = creative_id + self.ad_set_id = ad_set_id + self.start_date = start_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, creative_id, ad_set_id, start_date, *args, **kwargs): # noqa: E501 + """AdWrite - a model defined in OpenAPI + + Args: + name (str): The name of the ad + creative_id (str): The id of the Creative bound to this Ad + ad_set_id (str): The id of the Ad Set bound to this Ad + start_date (str): The date when the ad will be launched String must be in ISO8601 format + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the ad. [optional] # noqa: E501 + inventory_type (str): The inventory the Ad to be created or updated belongs to. Possible values are \"Display\" and \"Native\". This is optional since this doesn't make sense for every creative type but will throw an error if not set for a dynamic creative.. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.creative_id = creative_id + self.ad_set_id = ad_set_id + self.start_date = start_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_request.py new file mode 100644 index 00000000..aa889443 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_write_resource import AdWriteResource + globals()['AdWriteResource'] = AdWriteResource + + +class AdWriteRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AdWriteResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdWriteRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdWriteResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdWriteRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AdWriteResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_resource.py new file mode 100644 index 00000000..165caf33 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/ad_write_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_write import AdWrite + globals()['AdWrite'] = AdWrite + + +class AdWriteResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AdWrite,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AdWriteResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdWrite): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AdWriteResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AdWrite): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_attributes.py new file mode 100644 index 00000000..54c140a9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_attributes.py @@ -0,0 +1,360 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.adaptive_colors import AdaptiveColors + from criteo_api_marketingsolutions_v2023_07.model.image_set import ImageSet + from criteo_api_marketingsolutions_v2023_07.model.image_shape import ImageShape + from criteo_api_marketingsolutions_v2023_07.model.video_detail import VideoDetail + globals()['AdaptiveColors'] = AdaptiveColors + globals()['ImageSet'] = ImageSet + globals()['ImageShape'] = ImageShape + globals()['VideoDetail'] = VideoDetail + + +class AdaptiveAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('layouts',): { + 'EDITORIAL': "Editorial", + 'MONTAGE': "Montage", + 'INBANNERVIDEO': "InBannerVideo", + }, + ('image_display',): { + 'SHOWFULLIMAGE': "ShowFullImage", + 'ZOOMONIMAGE': "ZoomOnImage", + }, + } + + validations = { + ('layouts',): { + }, + ('logos',): { + }, + ('calls_to_action',): { + }, + ('image_sets',): { + }, + ('videos',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'layouts': ([str],), # noqa: E501 + 'logos': ([ImageShape],), # noqa: E501 + 'headline_text': (str,), # noqa: E501 + 'headline_font': (str,), # noqa: E501 + 'description_text': (str,), # noqa: E501 + 'description_font': (str,), # noqa: E501 + 'calls_to_action': ([str],), # noqa: E501 + 'colors': (AdaptiveColors,), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 + 'image_sets': ([ImageSet],), # noqa: E501 + 'image_display': (str,), # noqa: E501 + 'videos': ([VideoDetail],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'layouts': 'layouts', # noqa: E501 + 'logos': 'logos', # noqa: E501 + 'headline_text': 'headlineText', # noqa: E501 + 'headline_font': 'headlineFont', # noqa: E501 + 'description_text': 'descriptionText', # noqa: E501 + 'description_font': 'descriptionFont', # noqa: E501 + 'calls_to_action': 'callsToAction', # noqa: E501 + 'colors': 'colors', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 + 'image_sets': 'imageSets', # noqa: E501 + 'image_display': 'imageDisplay', # noqa: E501 + 'videos': 'videos', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, layouts, logos, headline_text, headline_font, description_text, description_font, calls_to_action, colors, landing_page_url, *args, **kwargs): # noqa: E501 + """AdaptiveAttributes - a model defined in OpenAPI + + Args: + layouts ([str]): The Adaptive layouts that are enabled. It can contain any of the following values: \"Editorial\", “Montage“, \"InBannerVideo\". + logos ([ImageShape]): Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net + headline_text (str): The headline text of the banner + headline_font (str): Font of the headline Valid supported font like \"Arial\" + description_text (str): The description text of the banner + description_font (str): Font of the description Valid supported font like \"Arial\" + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + colors (AdaptiveColors): + landing_page_url (str): Web redirection of the landing page url + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + image_sets ([ImageSet]): Multiple image sets, each image set consists of multiple images and a headline text.. [optional] # noqa: E501 + image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your image set should fit inside the allocated space (\"ShowFullImage\") or whether it should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 + videos ([VideoDetail]): Multiple videos potentially in different shapes.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.layouts = layouts + self.logos = logos + self.headline_text = headline_text + self.headline_font = headline_font + self.description_text = description_text + self.description_font = description_font + self.calls_to_action = calls_to_action + self.colors = colors + self.landing_page_url = landing_page_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, layouts, logos, headline_text, headline_font, description_text, description_font, calls_to_action, colors, landing_page_url, *args, **kwargs): # noqa: E501 + """AdaptiveAttributes - a model defined in OpenAPI + + Args: + layouts ([str]): The Adaptive layouts that are enabled. It can contain any of the following values: \"Editorial\", “Montage“, \"InBannerVideo\". + logos ([ImageShape]): Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net + headline_text (str): The headline text of the banner + headline_font (str): Font of the headline Valid supported font like \"Arial\" + description_text (str): The description text of the banner + description_font (str): Font of the description Valid supported font like \"Arial\" + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + colors (AdaptiveColors): + landing_page_url (str): Web redirection of the landing page url + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + image_sets ([ImageSet]): Multiple image sets, each image set consists of multiple images and a headline text.. [optional] # noqa: E501 + image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your image set should fit inside the allocated space (\"ShowFullImage\") or whether it should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 + videos ([VideoDetail]): Multiple videos potentially in different shapes.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.layouts = layouts + self.logos = logos + self.headline_text = headline_text + self.headline_font = headline_font + self.description_text = description_text + self.description_font = description_font + self.calls_to_action = calls_to_action + self.colors = colors + self.landing_page_url = landing_page_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_colors.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_colors.py new file mode 100644 index 00000000..8d872b4c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_colors.py @@ -0,0 +1,299 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AdaptiveColors(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'logo_area_and_title_color': (str,), # noqa: E501 + 'background_color': (str,), # noqa: E501 + 'text1_color': (str,), # noqa: E501 + 'text2_color': (str,), # noqa: E501 + 'cta_background_color': (str,), # noqa: E501 + 'cta_text_color': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'logo_area_and_title_color': 'logoAreaAndTitleColor', # noqa: E501 + 'background_color': 'backgroundColor', # noqa: E501 + 'text1_color': 'text1Color', # noqa: E501 + 'text2_color': 'text2Color', # noqa: E501 + 'cta_background_color': 'ctaBackgroundColor', # noqa: E501 + 'cta_text_color': 'ctaTextColor', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, logo_area_and_title_color, background_color, text1_color, text2_color, cta_background_color, cta_text_color, *args, **kwargs): # noqa: E501 + """AdaptiveColors - a model defined in OpenAPI + + Args: + logo_area_and_title_color (str): Color of the creative's logo area. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). + background_color (str): Color of the creative's background. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") + text1_color (str): Color of the headline and the description texts. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") + text2_color (str): Color of the image set's headline text. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") + cta_background_color (str): Color of the background of the CTA. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). + cta_text_color (str): Color of the text of the CTA. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.logo_area_and_title_color = logo_area_and_title_color + self.background_color = background_color + self.text1_color = text1_color + self.text2_color = text2_color + self.cta_background_color = cta_background_color + self.cta_text_color = cta_text_color + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, logo_area_and_title_color, background_color, text1_color, text2_color, cta_background_color, cta_text_color, *args, **kwargs): # noqa: E501 + """AdaptiveColors - a model defined in OpenAPI + + Args: + logo_area_and_title_color (str): Color of the creative's logo area. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). + background_color (str): Color of the creative's background. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") + text1_color (str): Color of the headline and the description texts. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") + text2_color (str): Color of the image set's headline text. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") + cta_background_color (str): Color of the background of the CTA. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). + cta_text_color (str): Color of the text of the CTA. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.logo_area_and_title_color = logo_area_and_title_color + self.background_color = background_color + self.text1_color = text1_color + self.text2_color = text2_color + self.cta_background_color = cta_background_color + self.cta_text_color = cta_text_color + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_write_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_write_attributes.py new file mode 100644 index 00000000..24769d01 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/adaptive_write_attributes.py @@ -0,0 +1,356 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.adaptive_colors import AdaptiveColors + from criteo_api_marketingsolutions_v2023_07.model.image_set_base64 import ImageSetBase64 + globals()['AdaptiveColors'] = AdaptiveColors + globals()['ImageSetBase64'] = ImageSetBase64 + + +class AdaptiveWriteAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('layouts',): { + 'EDITORIAL': "Editorial", + 'MONTAGE': "Montage", + 'INBANNERVIDEO': "InBannerVideo", + }, + ('image_display',): { + 'SHOWFULLIMAGE': "ShowFullImage", + 'ZOOMONIMAGE': "ZoomOnImage", + }, + } + + validations = { + ('layouts',): { + 'min_items': 1, + }, + ('calls_to_action',): { + 'min_items': 1, + }, + ('image_sets_base64',): { + }, + ('video_base64_strings',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'layouts': ([str],), # noqa: E501 + 'logo_base64_string': (str,), # noqa: E501 + 'headline_text': (str,), # noqa: E501 + 'headline_font': (str,), # noqa: E501 + 'description_text': (str,), # noqa: E501 + 'description_font': (str,), # noqa: E501 + 'calls_to_action': ([str],), # noqa: E501 + 'colors': (AdaptiveColors,), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 + 'image_sets_base64': ([ImageSetBase64],), # noqa: E501 + 'image_display': (str,), # noqa: E501 + 'video_base64_strings': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'layouts': 'layouts', # noqa: E501 + 'logo_base64_string': 'logoBase64String', # noqa: E501 + 'headline_text': 'headlineText', # noqa: E501 + 'headline_font': 'headlineFont', # noqa: E501 + 'description_text': 'descriptionText', # noqa: E501 + 'description_font': 'descriptionFont', # noqa: E501 + 'calls_to_action': 'callsToAction', # noqa: E501 + 'colors': 'colors', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 + 'image_sets_base64': 'imageSetsBase64', # noqa: E501 + 'image_display': 'imageDisplay', # noqa: E501 + 'video_base64_strings': 'videoBase64Strings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, layouts, logo_base64_string, headline_text, headline_font, description_text, description_font, calls_to_action, colors, landing_page_url, *args, **kwargs): # noqa: E501 + """AdaptiveWriteAttributes - a model defined in OpenAPI + + Args: + layouts ([str]): The Adaptive layouts that are enabled. It can contain any of the following values: \"Editorial\", “Montage“, \"InBannerVideo\". + logo_base64_string (str): Logo image as a base-64 encoded string + headline_text (str): The headline text of the banner + headline_font (str): Font of the headline Valid supported font like \"Arial\" + description_text (str): The description text of the banner + description_font (str): Font of the description Valid supported font like \"Arial\" + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + colors (AdaptiveColors): + landing_page_url (str): Web redirection of the landing page url. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + image_sets_base64 ([ImageSetBase64]): Multiple image sets, each image set consists of multiple images as a base-64 encoded string and a headline text.. [optional] # noqa: E501 + image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your image set should fit inside the allocated space (\"ShowFullImage\") or whether it should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 + video_base64_strings ([str]): Multiple videos potentially in different shapes, each video is a base-64 encoded string.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.layouts = layouts + self.logo_base64_string = logo_base64_string + self.headline_text = headline_text + self.headline_font = headline_font + self.description_text = description_text + self.description_font = description_font + self.calls_to_action = calls_to_action + self.colors = colors + self.landing_page_url = landing_page_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, layouts, logo_base64_string, headline_text, headline_font, description_text, description_font, calls_to_action, colors, landing_page_url, *args, **kwargs): # noqa: E501 + """AdaptiveWriteAttributes - a model defined in OpenAPI + + Args: + layouts ([str]): The Adaptive layouts that are enabled. It can contain any of the following values: \"Editorial\", “Montage“, \"InBannerVideo\". + logo_base64_string (str): Logo image as a base-64 encoded string + headline_text (str): The headline text of the banner + headline_font (str): Font of the headline Valid supported font like \"Arial\" + description_text (str): The description text of the banner + description_font (str): Font of the description Valid supported font like \"Arial\" + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + colors (AdaptiveColors): + landing_page_url (str): Web redirection of the landing page url. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + image_sets_base64 ([ImageSetBase64]): Multiple image sets, each image set consists of multiple images as a base-64 encoded string and a headline text.. [optional] # noqa: E501 + image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your image set should fit inside the allocated space (\"ShowFullImage\") or whether it should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 + video_base64_strings ([str]): Multiple videos potentially in different shapes, each video is a base-64 encoded string.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.layouts = layouts + self.logo_base64_string = logo_base64_string + self.headline_text = headline_text + self.headline_font = headline_font + self.description_text = description_text + self.description_font = description_font + self.calls_to_action = calls_to_action + self.colors = colors + self.landing_page_url = landing_page_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/algebra_node_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/algebra_node_v1.py new file mode 100644 index 00000000..8db7b473 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/algebra_node_v1.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AlgebraNodeV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + '_and': ([AlgebraNodeV1],), # noqa: E501 + '_or': ([AlgebraNodeV1],), # noqa: E501 + '_not': (AlgebraNodeV1,), # noqa: E501 + 'audience_segment_id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + '_and': 'and', # noqa: E501 + '_or': 'or', # noqa: E501 + '_not': 'not', # noqa: E501 + 'audience_segment_id': 'audienceSegmentId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AlgebraNodeV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + _and ([AlgebraNodeV1]): [optional] # noqa: E501 + _or ([AlgebraNodeV1]): [optional] # noqa: E501 + _not (AlgebraNodeV1): [optional] # noqa: E501 + audience_segment_id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AlgebraNodeV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + _and ([AlgebraNodeV1]): [optional] # noqa: E501 + _or ([AlgebraNodeV1]): [optional] # noqa: E501 + _not (AlgebraNodeV1): [optional] # noqa: E501 + audience_segment_id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model.py new file mode 100644 index 00000000..f40ebb01 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ApplicationSummaryModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'application_id': (int,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'organization_id': (int,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'criteo_service': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'application_id': 'applicationId', # noqa: E501 + 'name': 'name', # noqa: E501 + 'organization_id': 'organizationId', # noqa: E501 + 'description': 'description', # noqa: E501 + 'criteo_service': 'criteoService', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + application_id (int): [optional] # noqa: E501 + name (str): [optional] # noqa: E501 + organization_id (int): [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + criteo_service (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + application_id (int): [optional] # noqa: E501 + name (str): [optional] # noqa: E501 + organization_id (int): [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + criteo_service (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_resource.py new file mode 100644 index 00000000..e79843b6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.application_summary_model import ApplicationSummaryModel + globals()['ApplicationSummaryModel'] = ApplicationSummaryModel + + +class ApplicationSummaryModelResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ApplicationSummaryModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ApplicationSummaryModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ApplicationSummaryModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_response.py new file mode 100644 index 00000000..7a45053e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/application_summary_model_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.application_summary_model_resource import ApplicationSummaryModelResource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['ApplicationSummaryModelResource'] = ApplicationSummaryModelResource + globals()['CommonProblem'] = CommonProblem + + +class ApplicationSummaryModelResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ApplicationSummaryModelResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ApplicationSummaryModelResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ApplicationSummaryModelResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_status.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience.py similarity index 91% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_status.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience.py index b26af5da..bb286a70 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_status.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.report_status_attributes import ReportStatusAttributes - globals()['ReportStatusAttributes'] = ReportStatusAttributes + from criteo_api_marketingsolutions_v2023_07.model.audience_attributes import AudienceAttributes + globals()['AudienceAttributes'] = AudienceAttributes -class ReportStatus(ModelNormal): +class Audience(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,9 +87,9 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (ReportStatusAttributes,), # noqa: E501 - 'id': (str,), # noqa: E501 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (AudienceAttributes,), # noqa: E501 } @cached_property @@ -98,9 +98,9 @@ def discriminator(): attribute_map = { - 'attributes': 'attributes', # noqa: E501 - 'id': 'id', # noqa: E501 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -110,13 +110,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI + def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501 + """Audience - a model defined in OpenAPI Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" + type (str): the name of the entity type + id (str): id of the Audience + attributes (AudienceAttributes): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -180,9 +180,9 @@ def _from_openapi_data(cls, attributes, id, type, *args, **kwargs): # noqa: E50 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes - self.id = id self.type = type + self.id = id + self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -203,13 +203,13 @@ def _from_openapi_data(cls, attributes, id, type, *args, **kwargs): # noqa: E50 ]) @convert_js_args_to_python_args - def __init__(self, attributes, id, type, *args, **kwargs): # noqa: E501 - """ReportStatus - a model defined in OpenAPI + def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501 + """Audience - a model defined in OpenAPI Args: - attributes (ReportStatusAttributes): - id (str): The reportId - type (str): Always \"RetailMediaReportStatus\" + type (str): the name of the entity type + id (str): id of the Audience + attributes (AudienceAttributes): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -271,9 +271,9 @@ def __init__(self, attributes, id, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes - self.id = id self.type = type + self.id = id + self.attributes = attributes for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_attributes.py new file mode 100644 index 00000000..5874c79c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_attributes.py @@ -0,0 +1,303 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'created': (datetime,), # noqa: E501 + 'updated': (datetime,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'nb_lines': (int,), # noqa: E501 + 'nb_lines_email': (int,), # noqa: E501 + 'nb_matches_email': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'created': 'created', # noqa: E501 + 'updated': 'updated', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'nb_lines': 'nbLines', # noqa: E501 + 'nb_lines_email': 'nbLinesEmail', # noqa: E501 + 'nb_matches_email': 'nbMatchesEmail', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, description, created, updated, *args, **kwargs): # noqa: E501 + """AudienceAttributes - a model defined in OpenAPI + + Args: + name (str): The name of the Audience + description (str): The string description of the Audience + created (datetime): Date and time ISO 8601 formatted string + updated (datetime): Date and time ISO 8601 formatted string + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_id (str): The advertiser id that owns this Audience. [optional] # noqa: E501 + nb_lines (int): The number of line in the audience available once processed. [optional] # noqa: E501 + nb_lines_email (int): The number of email line in the audience available once processed. [optional] # noqa: E501 + nb_matches_email (int): The number of email matches in the audience available once processed. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.description = description + self.created = created + self.updated = updated + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, description, created, updated, *args, **kwargs): # noqa: E501 + """AudienceAttributes - a model defined in OpenAPI + + Args: + name (str): The name of the Audience + description (str): The string description of the Audience + created (datetime): Date and time ISO 8601 formatted string + updated (datetime): Date and time ISO 8601 formatted string + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_id (str): The advertiser id that owns this Audience. [optional] # noqa: E501 + nb_lines (int): The number of line in the audience available once processed. [optional] # noqa: E501 + nb_lines_email (int): The number of email line in the audience available once processed. [optional] # noqa: E501 + nb_matches_email (int): The number of email matches in the audience available once processed. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.description = description + self.created = created + self.updated = updated + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_create_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_create_input_v1.py new file mode 100644 index 00000000..7422a97f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_create_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_create_entity_v1_resource import AudienceCreateEntityV1Resource + globals()['AudienceCreateEntityV1Resource'] = AudienceCreateEntityV1Resource + + +class AudienceBulkCreateInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceCreateEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceBulkCreateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceCreateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceBulkCreateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceCreateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_delete_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_delete_input_v1.py new file mode 100644 index 00000000..dff893bc --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_delete_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_delete_entity_v1_resource import AudienceDeleteEntityV1Resource + globals()['AudienceDeleteEntityV1Resource'] = AudienceDeleteEntityV1Resource + + +class AudienceBulkDeleteInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceDeleteEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceBulkDeleteInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceDeleteEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceBulkDeleteInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceDeleteEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_update_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_update_input_v1.py new file mode 100644 index 00000000..5e316d3b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_bulk_update_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_update_entity_v1_resource import AudienceUpdateEntityV1Resource + globals()['AudienceUpdateEntityV1Resource'] = AudienceUpdateEntityV1Resource + + +class AudienceBulkUpdateInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceUpdateEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceBulkUpdateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceUpdateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceBulkUpdateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceUpdateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_size_entity_v1_resource.py new file mode 100644 index 00000000..09958dce --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_size_entity_v1_resource.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceComputeSizeEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceComputeSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience of people of interest for a marketer.. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceComputeSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience of people of interest for a marketer.. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_sizes_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_sizes_input_v1.py new file mode 100644 index 00000000..00a3eb39 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_compute_sizes_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_compute_size_entity_v1_resource import AudienceComputeSizeEntityV1Resource + globals()['AudienceComputeSizeEntityV1Resource'] = AudienceComputeSizeEntityV1Resource + + +class AudienceComputeSizesInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceComputeSizeEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceComputeSizesInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceComputeSizeEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceComputeSizesInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceComputeSizeEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1.py new file mode 100644 index 00000000..04ff07a3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.algebra_node_v1 import AlgebraNodeV1 + globals()['AlgebraNodeV1'] = AlgebraNodeV1 + + +class AudienceCreateEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'algebra': (AlgebraNodeV1,), # noqa: E501 + 'description': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'algebra': 'algebra', # noqa: E501 + 'description': 'description', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceCreateEntityV1 - a model defined in OpenAPI + + Args: + name (str): Name of the audience + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): Description of the audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.advertiser_id = advertiser_id + self.algebra = algebra + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceCreateEntityV1 - a model defined in OpenAPI + + Args: + name (str): Name of the audience + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): Description of the audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.advertiser_id = advertiser_id + self.algebra = algebra + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1_resource.py new file mode 100644 index 00000000..7718b226 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_create_entity_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_create_entity_v1 import AudienceCreateEntityV1 + globals()['AudienceCreateEntityV1'] = AudienceCreateEntityV1 + + +class AudienceCreateEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceCreateEntityV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceCreateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceCreateEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceCreateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceCreateEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_delete_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_delete_entity_v1_resource.py new file mode 100644 index 00000000..c7be5b32 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_delete_entity_v1_resource.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceDeleteEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceDeleteEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience to delete. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceDeleteEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience to delete. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1.py new file mode 100644 index 00000000..346b674f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1.py @@ -0,0 +1,295 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.algebra_node_v1 import AlgebraNodeV1 + globals()['AlgebraNodeV1'] = AlgebraNodeV1 + + +class AudienceEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('ad_set_ids',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'ad_set_ids': ([str],), # noqa: E501 + 'algebra': (AlgebraNodeV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'ad_set_ids': 'adSetIds', # noqa: E501 + 'algebra': 'algebra', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the audience. [optional] # noqa: E501 + description (str): Description of the audience. [optional] # noqa: E501 + created_at (datetime): ISO-8601 timestamp in UTC of audience creation (read-only). [optional] # noqa: E501 + updated_at (datetime): ISO-8601 timestamp in UTC of audience update (read-only). [optional] # noqa: E501 + advertiser_id (str): Advertiser associated to the audience. [optional] # noqa: E501 + ad_set_ids ([str]): Ad sets associated to the audience. [optional] # noqa: E501 + algebra (AlgebraNodeV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the audience. [optional] # noqa: E501 + description (str): Description of the audience. [optional] # noqa: E501 + created_at (datetime): ISO-8601 timestamp in UTC of audience creation (read-only). [optional] # noqa: E501 + updated_at (datetime): ISO-8601 timestamp in UTC of audience update (read-only). [optional] # noqa: E501 + advertiser_id (str): Advertiser associated to the audience. [optional] # noqa: E501 + ad_set_ids ([str]): Ad sets associated to the audience. [optional] # noqa: E501 + algebra (AlgebraNodeV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_audience_search_metadata_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_audience_search_metadata_v1_list_response.py new file mode 100644 index 00000000..1af70be5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_audience_search_metadata_v1_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_resource import AudienceEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.audience_search_metadata_v1 import AudienceSearchMetadataV1 + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceEntityV1Resource'] = AudienceEntityV1Resource + globals()['AudienceSearchMetadataV1'] = AudienceSearchMetadataV1 + globals()['CommonProblem'] = CommonProblem + + +class AudienceEntityV1AudienceSearchMetadataV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'meta': (AudienceSearchMetadataV1,), # noqa: E501 + 'data': ([AudienceEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'meta': 'meta', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceEntityV1AudienceSearchMetadataV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + meta (AudienceSearchMetadataV1): [optional] # noqa: E501 + data ([AudienceEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceEntityV1AudienceSearchMetadataV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + meta (AudienceSearchMetadataV1): [optional] # noqa: E501 + data ([AudienceEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_list_response.py new file mode 100644 index 00000000..182c37a9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_resource import AudienceEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceEntityV1Resource'] = AudienceEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_resource.py new file mode 100644 index 00000000..4b1d45fa --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1 import AudienceEntityV1 + globals()['AudienceEntityV1'] = AudienceEntityV1 + + +class AudienceEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AudienceEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_error.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_error.py new file mode 100644 index 00000000..6570745d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_error.py @@ -0,0 +1,310 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceError(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'trace_id': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'stack_trace': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'trace_id': 'traceId', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, code, instance, *args, **kwargs): # noqa: E501 + """AudienceError - a model defined in OpenAPI + + Args: + type (str): (REQUIRED) The classification of the error + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + title (str): (RECOMMENDED) A short, human-readable summary of the problem type. [optional] # noqa: E501 + detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace ([str]): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.code = code + self.instance = instance + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, code, instance, *args, **kwargs): # noqa: E501 + """AudienceError - a model defined in OpenAPI + + Args: + type (str): (REQUIRED) The classification of the error + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + title (str): (RECOMMENDED) A short, human-readable summary of the problem type. [optional] # noqa: E501 + detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace ([str]): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.code = code + self.instance = instance + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1.py new file mode 100644 index 00000000..b1a9b3f4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.algebra_node_v1 import AlgebraNodeV1 + globals()['AlgebraNodeV1'] = AlgebraNodeV1 + + +class AudienceEstimateSizeEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'advertiser_id': (str,), # noqa: E501 + 'algebra': (AlgebraNodeV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'advertiser_id': 'advertiserId', # noqa: E501 + 'algebra': 'algebra', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeEntityV1 - a model defined in OpenAPI + + Args: + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_id = advertiser_id + self.algebra = algebra + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, advertiser_id, algebra, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeEntityV1 - a model defined in OpenAPI + + Args: + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_id = advertiser_id + self.algebra = algebra + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1_resource.py new file mode 100644 index 00000000..b177b7ef --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_entity_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_entity_v1 import AudienceEstimateSizeEntityV1 + globals()['AudienceEstimateSizeEntityV1'] = AudienceEstimateSizeEntityV1 + + +class AudienceEstimateSizeEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceEstimateSizeEntityV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceEstimateSizeEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceEstimateSizeEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_input_v1.py new file mode 100644 index 00000000..363f924b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_estimate_size_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_entity_v1_resource import AudienceEstimateSizeEntityV1Resource + globals()['AudienceEstimateSizeEntityV1Resource'] = AudienceEstimateSizeEntityV1Resource + + +class AudienceEstimateSizeInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AudienceEstimateSizeEntityV1Resource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceEstimateSizeEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceEstimateSizeInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceEstimateSizeEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_list_response.py new file mode 100644 index 00000000..af904a4b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_id_entity_v1_resource import AudienceIdEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceIdEntityV1Resource'] = AudienceIdEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceIdEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceIdEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceIdEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceIdEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceIdEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceIdEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_resource.py new file mode 100644 index 00000000..ed20b500 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_id_entity_v1_resource.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceIdEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceIdEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity with only its ID. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceIdEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity with only its ID. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_name_description.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_name_description.py new file mode 100644 index 00000000..24afbe4e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_name_description.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceNameDescription(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceNameDescription - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name to designate the audience by. [optional] # noqa: E501 + description (str): The description of the audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceNameDescription - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name to designate the audience by. [optional] # noqa: E501 + description (str): The description of the audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1.py new file mode 100644 index 00000000..26d0e9d0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSearchEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'audience_ids': ([str],), # noqa: E501 + 'advertiser_ids': ([str],), # noqa: E501 + 'audience_segment_ids': ([str],), # noqa: E501 + 'ad_set_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'audience_ids': 'audienceIds', # noqa: E501 + 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'audience_segment_ids': 'audienceSegmentIds', # noqa: E501 + 'ad_set_ids': 'adSetIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSearchEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + audience_ids ([str]): List of audience ids. [optional] # noqa: E501 + advertiser_ids ([str]): List of advertiser ids. [optional] # noqa: E501 + audience_segment_ids ([str]): List of segment ids (linked to the result audiences). [optional] # noqa: E501 + ad_set_ids ([str]): List of AdSet ids. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSearchEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + audience_ids ([str]): List of audience ids. [optional] # noqa: E501 + advertiser_ids ([str]): List of advertiser ids. [optional] # noqa: E501 + audience_segment_ids ([str]): List of segment ids (linked to the result audiences). [optional] # noqa: E501 + ad_set_ids ([str]): List of AdSet ids. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1_resource.py new file mode 100644 index 00000000..b132d3d9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_entity_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_search_entity_v1 import AudienceSearchEntityV1 + globals()['AudienceSearchEntityV1'] = AudienceSearchEntityV1 + + +class AudienceSearchEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceSearchEntityV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSearchEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSearchEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSearchEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSearchEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_input_v1.py new file mode 100644 index 00000000..52dd6e5b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_search_entity_v1_resource import AudienceSearchEntityV1Resource + globals()['AudienceSearchEntityV1Resource'] = AudienceSearchEntityV1Resource + + +class AudienceSearchInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AudienceSearchEntityV1Resource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSearchInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSearchEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSearchInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSearchEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_metadata_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_metadata_v1.py new file mode 100644 index 00000000..f96ab8e5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_search_metadata_v1.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSearchMetadataV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'total_items': (int,), # noqa: E501 + 'limit': (int,), # noqa: E501 + 'offset': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'total_items': 'totalItems', # noqa: E501 + 'limit': 'limit', # noqa: E501 + 'offset': 'offset', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSearchMetadataV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + total_items (int): Total number of items. [optional] # noqa: E501 + limit (int): Max item of the current page. [optional] # noqa: E501 + offset (int): Number of item to skip. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSearchMetadataV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + total_items (int): Total number of items. [optional] # noqa: E501 + limit (int): Max item of the current page. [optional] # noqa: E501 + offset (int): Number of item to skip. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_create_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_create_input_v1.py new file mode 100644 index 00000000..79820050 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_create_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_create_entity_v1_resource import AudienceSegmentCreateEntityV1Resource + globals()['AudienceSegmentCreateEntityV1Resource'] = AudienceSegmentCreateEntityV1Resource + + +class AudienceSegmentBulkCreateInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentCreateEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentBulkCreateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentCreateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentBulkCreateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentCreateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_delete_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_delete_input_v1.py new file mode 100644 index 00000000..23d52dd8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_delete_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_delete_entity_v1_resource import AudienceSegmentDeleteEntityV1Resource + globals()['AudienceSegmentDeleteEntityV1Resource'] = AudienceSegmentDeleteEntityV1Resource + + +class AudienceSegmentBulkDeleteInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentDeleteEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentBulkDeleteInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentDeleteEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentBulkDeleteInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentDeleteEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_update_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_update_input_v1.py new file mode 100644 index 00000000..b2155601 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_bulk_update_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_update_entity_v1_resource import AudienceSegmentUpdateEntityV1Resource + globals()['AudienceSegmentUpdateEntityV1Resource'] = AudienceSegmentUpdateEntityV1Resource + + +class AudienceSegmentBulkUpdateInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentUpdateEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentBulkUpdateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentUpdateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentBulkUpdateInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentUpdateEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_size_entity_v1_resource.py new file mode 100644 index 00000000..ca3f9a17 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_size_entity_v1_resource.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentComputeSizeEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentComputeSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Set of rules that defines specific people to target.. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentComputeSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Set of rules that defines specific people to target.. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_sizes_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_sizes_input_v1.py new file mode 100644 index 00000000..32a74f13 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_compute_sizes_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_compute_size_entity_v1_resource import AudienceSegmentComputeSizeEntityV1Resource + globals()['AudienceSegmentComputeSizeEntityV1Resource'] = AudienceSegmentComputeSizeEntityV1Resource + + +class AudienceSegmentComputeSizesInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentComputeSizeEntityV1Resource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentComputeSizesInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentComputeSizeEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentComputeSizesInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentComputeSizeEntityV1Resource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1.py new file mode 100644 index 00000000..c2b09962 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1.py @@ -0,0 +1,317 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.in_market_create_v1 import InMarketCreateV1 + from criteo_api_marketingsolutions_v2023_07.model.location_create_v1 import LocationCreateV1 + from criteo_api_marketingsolutions_v2023_07.model.lookalike_create_v1 import LookalikeCreateV1 + from criteo_api_marketingsolutions_v2023_07.model.prospecting_create_v1 import ProspectingCreateV1 + from criteo_api_marketingsolutions_v2023_07.model.retargeting_create_v1 import RetargetingCreateV1 + globals()['InMarketCreateV1'] = InMarketCreateV1 + globals()['LocationCreateV1'] = LocationCreateV1 + globals()['LookalikeCreateV1'] = LookalikeCreateV1 + globals()['ProspectingCreateV1'] = ProspectingCreateV1 + globals()['RetargetingCreateV1'] = RetargetingCreateV1 + + +class AudienceSegmentCreateEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'in_market': (InMarketCreateV1,), # noqa: E501 + 'prospecting': (ProspectingCreateV1,), # noqa: E501 + 'contact_list': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'location': (LocationCreateV1,), # noqa: E501 + 'retargeting': (RetargetingCreateV1,), # noqa: E501 + 'lookalike': (LookalikeCreateV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'description': 'description', # noqa: E501 + 'in_market': 'inMarket', # noqa: E501 + 'prospecting': 'prospecting', # noqa: E501 + 'contact_list': 'contactList', # noqa: E501 + 'location': 'location', # noqa: E501 + 'retargeting': 'retargeting', # noqa: E501 + 'lookalike': 'lookalike', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, advertiser_id, *args, **kwargs): # noqa: E501 + """AudienceSegmentCreateEntityV1 - a model defined in OpenAPI + + Args: + name (str): Name of the segment + advertiser_id (str): Advertiser associated to the segment + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): Description of the segment. [optional] # noqa: E501 + in_market (InMarketCreateV1): [optional] # noqa: E501 + prospecting (ProspectingCreateV1): [optional] # noqa: E501 + contact_list ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target users with your contact lists.. [optional] # noqa: E501 + location (LocationCreateV1): [optional] # noqa: E501 + retargeting (RetargetingCreateV1): [optional] # noqa: E501 + lookalike (LookalikeCreateV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.advertiser_id = advertiser_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, advertiser_id, *args, **kwargs): # noqa: E501 + """AudienceSegmentCreateEntityV1 - a model defined in OpenAPI + + Args: + name (str): Name of the segment + advertiser_id (str): Advertiser associated to the segment + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): Description of the segment. [optional] # noqa: E501 + in_market (InMarketCreateV1): [optional] # noqa: E501 + prospecting (ProspectingCreateV1): [optional] # noqa: E501 + contact_list ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target users with your contact lists.. [optional] # noqa: E501 + location (LocationCreateV1): [optional] # noqa: E501 + retargeting (RetargetingCreateV1): [optional] # noqa: E501 + lookalike (LookalikeCreateV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.advertiser_id = advertiser_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1_resource.py new file mode 100644 index 00000000..a8acd551 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_create_entity_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_create_entity_v1 import AudienceSegmentCreateEntityV1 + globals()['AudienceSegmentCreateEntityV1'] = AudienceSegmentCreateEntityV1 + + +class AudienceSegmentCreateEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceSegmentCreateEntityV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentCreateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentCreateEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentCreateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentCreateEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_delete_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_delete_entity_v1_resource.py new file mode 100644 index 00000000..68285ffd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_delete_entity_v1_resource.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentDeleteEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentDeleteEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Segment to delete. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentDeleteEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Segment to delete. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1.py new file mode 100644 index 00000000..8a27dd12 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1.py @@ -0,0 +1,339 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.behavioral_v1 import BehavioralV1 + from criteo_api_marketingsolutions_v2023_07.model.contact_list_v1 import ContactListV1 + from criteo_api_marketingsolutions_v2023_07.model.in_market_v1 import InMarketV1 + from criteo_api_marketingsolutions_v2023_07.model.location_v1 import LocationV1 + from criteo_api_marketingsolutions_v2023_07.model.lookalike_v1 import LookalikeV1 + from criteo_api_marketingsolutions_v2023_07.model.prospecting_v1 import ProspectingV1 + from criteo_api_marketingsolutions_v2023_07.model.retargeting_v1 import RetargetingV1 + globals()['BehavioralV1'] = BehavioralV1 + globals()['ContactListV1'] = ContactListV1 + globals()['InMarketV1'] = InMarketV1 + globals()['LocationV1'] = LocationV1 + globals()['LookalikeV1'] = LookalikeV1 + globals()['ProspectingV1'] = ProspectingV1 + globals()['RetargetingV1'] = RetargetingV1 + + +class AudienceSegmentEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "Unknown", + 'INMARKET': "InMarket", + 'PROSPECTING': "Prospecting", + 'CONTACTLIST': "ContactList", + 'LOCATION': "Location", + 'BEHAVIORAL': "Behavioral", + 'RETARGETING': "Retargeting", + 'LOOKALIKE': "Lookalike", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'in_market': (InMarketV1,), # noqa: E501 + 'prospecting': (ProspectingV1,), # noqa: E501 + 'contact_list': (ContactListV1,), # noqa: E501 + 'location': (LocationV1,), # noqa: E501 + 'behavioral': (BehavioralV1,), # noqa: E501 + 'retargeting': (RetargetingV1,), # noqa: E501 + 'lookalike': (LookalikeV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'type': 'type', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'in_market': 'inMarket', # noqa: E501 + 'prospecting': 'prospecting', # noqa: E501 + 'contact_list': 'contactList', # noqa: E501 + 'location': 'location', # noqa: E501 + 'behavioral': 'behavioral', # noqa: E501 + 'retargeting': 'retargeting', # noqa: E501 + 'lookalike': 'lookalike', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the segment. [optional] # noqa: E501 + description (str): Description of the segment. [optional] # noqa: E501 + type (str): Type of segment (read-only). [optional] # noqa: E501 + created_at (datetime): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501 + updated_at (datetime): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 + advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 + in_market (InMarketV1): [optional] # noqa: E501 + prospecting (ProspectingV1): [optional] # noqa: E501 + contact_list (ContactListV1): [optional] # noqa: E501 + location (LocationV1): [optional] # noqa: E501 + behavioral (BehavioralV1): [optional] # noqa: E501 + retargeting (RetargetingV1): [optional] # noqa: E501 + lookalike (LookalikeV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the segment. [optional] # noqa: E501 + description (str): Description of the segment. [optional] # noqa: E501 + type (str): Type of segment (read-only). [optional] # noqa: E501 + created_at (datetime): ISO-8601 timestamp in UTC of segment creation (read-only). [optional] # noqa: E501 + updated_at (datetime): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 + advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 + in_market (InMarketV1): [optional] # noqa: E501 + prospecting (ProspectingV1): [optional] # noqa: E501 + contact_list (ContactListV1): [optional] # noqa: E501 + location (LocationV1): [optional] # noqa: E501 + behavioral (BehavioralV1): [optional] # noqa: E501 + retargeting (RetargetingV1): [optional] # noqa: E501 + lookalike (LookalikeV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py new file mode 100644 index 00000000..dfc05368 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_resource import AudienceSegmentEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_metadata_v1 import AudienceSegmentSearchMetadataV1 + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSegmentEntityV1Resource'] = AudienceSegmentEntityV1Resource + globals()['AudienceSegmentSearchMetadataV1'] = AudienceSegmentSearchMetadataV1 + globals()['CommonProblem'] = CommonProblem + + +class AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'meta': (AudienceSegmentSearchMetadataV1,), # noqa: E501 + 'data': ([AudienceSegmentEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'meta': 'meta', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + meta (AudienceSegmentSearchMetadataV1): [optional] # noqa: E501 + data ([AudienceSegmentEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + meta (AudienceSegmentSearchMetadataV1): [optional] # noqa: E501 + data ([AudienceSegmentEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_list_response.py new file mode 100644 index 00000000..945e8089 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_resource import AudienceSegmentEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSegmentEntityV1Resource'] = AudienceSegmentEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceSegmentEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_resource.py new file mode 100644 index 00000000..988ca022 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1 import AudienceSegmentEntityV1 + globals()['AudienceSegmentEntityV1'] = AudienceSegmentEntityV1 + + +class AudienceSegmentEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AudienceSegmentEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSegmentEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSegmentEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_estimate_size_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_estimate_size_input_v1.py new file mode 100644 index 00000000..af2a0b2a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_estimate_size_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_entity_v1_resource import AudienceSegmentSizeEstimationEntityV1Resource + globals()['AudienceSegmentSizeEstimationEntityV1Resource'] = AudienceSegmentSizeEstimationEntityV1Resource + + +class AudienceSegmentEstimateSizeInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AudienceSegmentSizeEstimationEntityV1Resource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentEstimateSizeInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSegmentSizeEstimationEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentEstimateSizeInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSegmentSizeEstimationEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_list_response.py new file mode 100644 index 00000000..6dc1ff81 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_id_entity_v1_resource import AudienceSegmentIdEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSegmentIdEntityV1Resource'] = AudienceSegmentIdEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceSegmentIdEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentIdEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentIdEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentIdEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentIdEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentIdEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_resource.py new file mode 100644 index 00000000..5f5d6505 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_id_entity_v1_resource.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentIdEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentIdEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience Segment entity only with its ID. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentIdEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience Segment entity only with its ID. [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1.py new file mode 100644 index 00000000..ebef8800 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentSearchEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('audience_segment_types',): { + 'UNKNOWN': "Unknown", + 'INMARKET': "InMarket", + 'PROSPECTING': "Prospecting", + 'CONTACTLIST': "ContactList", + 'LOCATION': "Location", + 'BEHAVIORAL': "Behavioral", + 'RETARGETING': "Retargeting", + 'LOOKALIKE': "Lookalike", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'audience_segment_ids': ([str],), # noqa: E501 + 'advertiser_ids': ([str],), # noqa: E501 + 'audience_segment_types': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'audience_segment_ids': 'audienceSegmentIds', # noqa: E501 + 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'audience_segment_types': 'audienceSegmentTypes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + audience_segment_ids ([str]): List of segment ids. [optional] # noqa: E501 + advertiser_ids ([str]): List of advertiser ids. [optional] # noqa: E501 + audience_segment_types ([str]): List of segment types. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + audience_segment_ids ([str]): List of segment ids. [optional] # noqa: E501 + advertiser_ids ([str]): List of advertiser ids. [optional] # noqa: E501 + audience_segment_types ([str]): List of segment types. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1_resource.py new file mode 100644 index 00000000..38327b5a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_entity_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_entity_v1 import AudienceSegmentSearchEntityV1 + globals()['AudienceSegmentSearchEntityV1'] = AudienceSegmentSearchEntityV1 + + +class AudienceSegmentSearchEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceSegmentSearchEntityV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentSearchEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentSearchEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_input_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_input_v1.py new file mode 100644 index 00000000..5785ae1f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_input_v1.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_entity_v1_resource import AudienceSegmentSearchEntityV1Resource + globals()['AudienceSegmentSearchEntityV1Resource'] = AudienceSegmentSearchEntityV1Resource + + +class AudienceSegmentSearchInputV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AudienceSegmentSearchEntityV1Resource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSegmentSearchEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchInputV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSegmentSearchEntityV1Resource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_metadata_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_metadata_v1.py new file mode 100644 index 00000000..15a1605a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_search_metadata_v1.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentSearchMetadataV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'total_items': (int,), # noqa: E501 + 'limit': (int,), # noqa: E501 + 'offset': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'total_items': 'totalItems', # noqa: E501 + 'limit': 'limit', # noqa: E501 + 'offset': 'offset', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchMetadataV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + total_items (int): Total number of items. [optional] # noqa: E501 + limit (int): Max item of the current page. [optional] # noqa: E501 + offset (int): Number of item to skip. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSearchMetadataV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + total_items (int): Total number of items. [optional] # noqa: E501 + limit (int): Max item of the current page. [optional] # noqa: E501 + offset (int): Number of item to skip. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1.py new file mode 100644 index 00000000..6683c47b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentSizeEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'size': 'size', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_list_response.py new file mode 100644 index 00000000..efe9bd43 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1_resource import AudienceSegmentSizeEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSegmentSizeEntityV1Resource'] = AudienceSegmentSizeEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceSegmentSizeEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSegmentSizeEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentSizeEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSegmentSizeEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_resource.py new file mode 100644 index 00000000..21c8864b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1 import AudienceSegmentSizeEntityV1 + globals()['AudienceSegmentSizeEntityV1'] = AudienceSegmentSizeEntityV1 + + +class AudienceSegmentSizeEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AudienceSegmentSizeEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSegmentSizeEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSegmentSizeEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1.py new file mode 100644 index 00000000..910559eb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.in_market_size_estimation_v1 import InMarketSizeEstimationV1 + from criteo_api_marketingsolutions_v2023_07.model.location_size_estimation_v1 import LocationSizeEstimationV1 + globals()['InMarketSizeEstimationV1'] = InMarketSizeEstimationV1 + globals()['LocationSizeEstimationV1'] = LocationSizeEstimationV1 + + +class AudienceSegmentSizeEstimationEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'advertiser_id': (str,), # noqa: E501 + 'in_market': (InMarketSizeEstimationV1,), # noqa: E501 + 'location': (LocationSizeEstimationV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'advertiser_id': 'advertiserId', # noqa: E501 + 'in_market': 'inMarket', # noqa: E501 + 'location': 'location', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, advertiser_id, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationEntityV1 - a model defined in OpenAPI + + Args: + advertiser_id (str): Advertiser associated to the segment + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + in_market (InMarketSizeEstimationV1): [optional] # noqa: E501 + location (LocationSizeEstimationV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_id = advertiser_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, advertiser_id, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationEntityV1 - a model defined in OpenAPI + + Args: + advertiser_id (str): Advertiser associated to the segment + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + in_market (InMarketSizeEstimationV1): [optional] # noqa: E501 + location (LocationSizeEstimationV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_id = advertiser_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1_resource.py new file mode 100644 index 00000000..e63f1848 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_entity_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_entity_v1 import AudienceSegmentSizeEstimationEntityV1 + globals()['AudienceSegmentSizeEstimationEntityV1'] = AudienceSegmentSizeEstimationEntityV1 + + +class AudienceSegmentSizeEstimationEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceSegmentSizeEstimationEntityV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentSizeEstimationEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentSizeEstimationEntityV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1.py new file mode 100644 index 00000000..bd187985 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSegmentSizeEstimationV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'size': 'size', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_resource.py new file mode 100644 index 00000000..ff37be08 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1 import AudienceSegmentSizeEstimationV1 + globals()['AudienceSegmentSizeEstimationV1'] = AudienceSegmentSizeEstimationV1 + + +class AudienceSegmentSizeEstimationV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceSegmentSizeEstimationV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentSizeEstimationV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSegmentSizeEstimationV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_response.py new file mode 100644 index 00000000..ef4cdeb5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_size_estimation_v1_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1_resource import AudienceSegmentSizeEstimationV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSegmentSizeEstimationV1Resource'] = AudienceSegmentSizeEstimationV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceSegmentSizeEstimationV1Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AudienceSegmentSizeEstimationV1Resource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSegmentSizeEstimationV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentSizeEstimationV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSegmentSizeEstimationV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1.py new file mode 100644 index 00000000..ab7d3f91 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1.py @@ -0,0 +1,303 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.in_market_update_v1 import InMarketUpdateV1 + from criteo_api_marketingsolutions_v2023_07.model.location_update_v1 import LocationUpdateV1 + from criteo_api_marketingsolutions_v2023_07.model.lookalike_update_v1 import LookalikeUpdateV1 + from criteo_api_marketingsolutions_v2023_07.model.nillable_string import NillableString + from criteo_api_marketingsolutions_v2023_07.model.prospecting_update_v1 import ProspectingUpdateV1 + from criteo_api_marketingsolutions_v2023_07.model.retargeting_update_v1 import RetargetingUpdateV1 + globals()['InMarketUpdateV1'] = InMarketUpdateV1 + globals()['LocationUpdateV1'] = LocationUpdateV1 + globals()['LookalikeUpdateV1'] = LookalikeUpdateV1 + globals()['NillableString'] = NillableString + globals()['ProspectingUpdateV1'] = ProspectingUpdateV1 + globals()['RetargetingUpdateV1'] = RetargetingUpdateV1 + + +class AudienceSegmentUpdateEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'description': (NillableString,), # noqa: E501 + 'in_market': (InMarketUpdateV1,), # noqa: E501 + 'location': (LocationUpdateV1,), # noqa: E501 + 'retargeting': (RetargetingUpdateV1,), # noqa: E501 + 'lookalike': (LookalikeUpdateV1,), # noqa: E501 + 'prospecting': (ProspectingUpdateV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'in_market': 'inMarket', # noqa: E501 + 'location': 'location', # noqa: E501 + 'retargeting': 'retargeting', # noqa: E501 + 'lookalike': 'lookalike', # noqa: E501 + 'prospecting': 'prospecting', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentUpdateEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the segment. [optional] # noqa: E501 + description (NillableString): [optional] # noqa: E501 + in_market (InMarketUpdateV1): [optional] # noqa: E501 + location (LocationUpdateV1): [optional] # noqa: E501 + retargeting (RetargetingUpdateV1): [optional] # noqa: E501 + lookalike (LookalikeUpdateV1): [optional] # noqa: E501 + prospecting (ProspectingUpdateV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentUpdateEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the segment. [optional] # noqa: E501 + description (NillableString): [optional] # noqa: E501 + in_market (InMarketUpdateV1): [optional] # noqa: E501 + location (LocationUpdateV1): [optional] # noqa: E501 + retargeting (RetargetingUpdateV1): [optional] # noqa: E501 + lookalike (LookalikeUpdateV1): [optional] # noqa: E501 + prospecting (ProspectingUpdateV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1_resource.py new file mode 100644 index 00000000..d578b324 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_segment_update_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_segment_update_entity_v1 import AudienceSegmentUpdateEntityV1 + globals()['AudienceSegmentUpdateEntityV1'] = AudienceSegmentUpdateEntityV1 + + +class AudienceSegmentUpdateEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AudienceSegmentUpdateEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSegmentUpdateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSegmentUpdateEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSegmentUpdateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSegmentUpdateEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/map_string.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1.py similarity index 93% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/map_string.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1.py index 94e2259d..1ba6a4de 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/map_string.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError -class MapString(ModelNormal): +class AudienceSizeEntityV1(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -66,7 +66,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ - return (str,) # noqa: E501 + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -81,6 +81,7 @@ def openapi_types(): and the value is attribute type. """ return { + 'size': (int,), # noqa: E501 } @cached_property @@ -89,6 +90,7 @@ def discriminator(): attribute_map = { + 'size': 'size', # noqa: E501 } read_only_vars = { @@ -99,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI + """AudienceSizeEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -132,6 +134,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -184,7 +187,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """MapString - a model defined in OpenAPI + """AudienceSizeEntityV1 - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -217,6 +220,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_list_response.py new file mode 100644 index 00000000..99f3c923 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1_resource import AudienceSizeEntityV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSizeEntityV1Resource'] = AudienceSizeEntityV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceSizeEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([AudienceSizeEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSizeEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSizeEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSizeEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([AudienceSizeEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_resource.py new file mode 100644 index 00000000..2aed0411 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1 import AudienceSizeEntityV1 + globals()['AudienceSizeEntityV1'] = AudienceSizeEntityV1 + + +class AudienceSizeEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AudienceSizeEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSizeEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSizeEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceSizeEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1.py new file mode 100644 index 00000000..737b95c8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceSizeEstimationV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'size': 'size', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSizeEstimationV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSizeEstimationV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + size (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_resource.py new file mode 100644 index 00000000..e28e65af --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1 import AudienceSizeEstimationV1 + globals()['AudienceSizeEstimationV1'] = AudienceSizeEstimationV1 + + +class AudienceSizeEstimationV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceSizeEstimationV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSizeEstimationV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSizeEstimationV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSizeEstimationV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AudienceSizeEstimationV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_response.py new file mode 100644 index 00000000..6c42ed74 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_size_estimation_v1_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1_resource import AudienceSizeEstimationV1Resource + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + globals()['AudienceSizeEstimationV1Resource'] = AudienceSizeEstimationV1Resource + globals()['CommonProblem'] = CommonProblem + + +class AudienceSizeEstimationV1Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AudienceSizeEstimationV1Resource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceSizeEstimationV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSizeEstimationV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceSizeEstimationV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AudienceSizeEstimationV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1.py new file mode 100644 index 00000000..82b19b3e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.algebra_node_v1 import AlgebraNodeV1 + from criteo_api_marketingsolutions_v2023_07.model.nillable_string import NillableString + globals()['AlgebraNodeV1'] = AlgebraNodeV1 + globals()['NillableString'] = NillableString + + +class AudienceUpdateEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'description': (NillableString,), # noqa: E501 + 'algebra': (AlgebraNodeV1,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'algebra': 'algebra', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceUpdateEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the audience. [optional] # noqa: E501 + description (NillableString): [optional] # noqa: E501 + algebra (AlgebraNodeV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceUpdateEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the audience. [optional] # noqa: E501 + description (NillableString): [optional] # noqa: E501 + algebra (AlgebraNodeV1): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1_resource.py new file mode 100644 index 00000000..34d628f8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_update_entity_v1 import AudienceUpdateEntityV1 + globals()['AudienceUpdateEntityV1'] = AudienceUpdateEntityV1 + + +class AudienceUpdateEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (AudienceUpdateEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceUpdateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceUpdateEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceUpdateEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceUpdateEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_warning.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_warning.py new file mode 100644 index 00000000..8b73462a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/audience_warning.py @@ -0,0 +1,312 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class AudienceWarning(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'trace_id': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'source': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'stack_trace': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'trace_id': 'traceId', # noqa: E501 + 'title': 'title', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, code, instance, detail, *args, **kwargs): # noqa: E501 + """AudienceWarning - a model defined in OpenAPI + + Args: + type (str): (REQUIRED) The classification of the error + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem + detail (str): (REQUIRED) A human-readable explanation specific to this occurrence of the problem + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + title (str): (RECOMMENDED) A short, human-readable summary of the problem type. [optional] # noqa: E501 + source ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace ([str]): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.code = code + self.instance = instance + self.detail = detail + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, code, instance, detail, *args, **kwargs): # noqa: E501 + """AudienceWarning - a model defined in OpenAPI + + Args: + type (str): (REQUIRED) The classification of the error + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem + detail (str): (REQUIRED) A human-readable explanation specific to this occurrence of the problem + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + title (str): (RECOMMENDED) A short, human-readable summary of the problem type. [optional] # noqa: E501 + source ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace ([str]): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.code = code + self.instance = instance + self.detail = detail + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/basic_audience_definition.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/basic_audience_definition.py new file mode 100644 index 00000000..41dd8121 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/basic_audience_definition.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_name_description import AudienceNameDescription + globals()['AudienceNameDescription'] = AudienceNameDescription + + +class BasicAudienceDefinition(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (AudienceNameDescription,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """BasicAudienceDefinition - a model defined in OpenAPI + + Args: + id (str): the id of the entity type + type (str): the name of the entity type + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceNameDescription): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """BasicAudienceDefinition - a model defined in OpenAPI + + Args: + id (str): the id of the entity type + type (str): the name of the entity type + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (AudienceNameDescription): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/behavioral_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/behavioral_v1.py new file mode 100644 index 00000000..8bf4de92 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/behavioral_v1.py @@ -0,0 +1,288 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class BehavioralV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('category',): { + 'UNKNOWN': "Unknown", + 'LIFESTYLES': "Lifestyles", + 'LIFEEVENTS': "LifeEvents", + 'SEASONAL': "Seasonal", + 'BUYINGPATTERNS': "BuyingPatterns", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'category': (str,), # noqa: E501 + 'country': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'category': 'category', # noqa: E501 + 'country': 'country', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, category, *args, **kwargs): # noqa: E501 + """BehavioralV1 - a model defined in OpenAPI + + Args: + category (str): The type of behavioral + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (str): The users' country. [optional] # noqa: E501 + start_date (datetime): Desired date when the behavioral will start. [optional] # noqa: E501 + end_date (datetime): Desired date when the behavioral will end. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.category = category + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, category, *args, **kwargs): # noqa: E501 + """BehavioralV1 - a model defined in OpenAPI + + Args: + category (str): The type of behavioral + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (str): The users' country. [optional] # noqa: E501 + start_date (datetime): Desired date when the behavioral will start. [optional] # noqa: E501 + end_date (datetime): Desired date when the behavioral will end. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.category = category + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py new file mode 100644 index 00000000..467acf37 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign.py @@ -0,0 +1,290 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_spend_limit import CampaignSpendLimit + globals()['CampaignSpendLimit'] = CampaignSpendLimit + + +class Campaign(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('goal',): { + 'UNSPECIFIED': "Unspecified", + 'ACQUISITION': "Acquisition", + 'RETENTION': "Retention", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'objective': (str,), # noqa: E501 + 'spend_limit': (CampaignSpendLimit,), # noqa: E501 + 'goal': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'objective': 'objective', # noqa: E501 + 'spend_limit': 'spendLimit', # noqa: E501 + 'goal': 'goal', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Campaign - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the campaign. [optional] # noqa: E501 + advertiser_id (str): Advertiser id of the campaign. [optional] # noqa: E501 + objective (str): Campaign's marketing objective. [optional] # noqa: E501 + spend_limit (CampaignSpendLimit): [optional] # noqa: E501 + goal (str): Goal of the campaign. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Campaign - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the campaign. [optional] # noqa: E501 + advertiser_id (str): Advertiser id of the campaign. [optional] # noqa: E501 + objective (str): Campaign's marketing objective. [optional] # noqa: E501 + spend_limit (CampaignSpendLimit): [optional] # noqa: E501 + goal (str): Goal of the campaign. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py new file mode 100644 index 00000000..8eb02fed --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_list_response.py @@ -0,0 +1,288 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_read_resource import CampaignReadResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['CampaignReadResource'] = CampaignReadResource + globals()['ProblemDetails'] = ProblemDetails + + +class CampaignListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([CampaignReadResource],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'data', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([CampaignReadResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([CampaignReadResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_read_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_read_resource.py new file mode 100644 index 00000000..22d36cbd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_read_resource.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign import Campaign + globals()['Campaign'] = Campaign + + +class CampaignReadResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (Campaign,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + 'type', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignReadResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + attributes (Campaign): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignReadResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + attributes (Campaign): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py new file mode 100644 index 00000000..38c0389c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_read_resource import CampaignReadResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['CampaignReadResource'] = CampaignReadResource + globals()['ProblemDetails'] = ProblemDetails + + +class CampaignResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CampaignReadResource,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CampaignReadResource): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CampaignReadResource): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py new file mode 100644 index 00000000..2574d103 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_filters.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CampaignSearchFilters(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('campaign_ids',): { + }, + ('advertiser_ids',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'campaign_ids': ([str],), # noqa: E501 + 'advertiser_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'campaign_ids': 'campaignIds', # noqa: E501 + 'advertiser_ids': 'advertiserIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignSearchFilters - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_ids ([str]): Campaign ids to filter on. [optional] # noqa: E501 + advertiser_ids ([str]): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignSearchFilters - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_ids ([str]): Campaign ids to filter on. [optional] # noqa: E501 + advertiser_ids ([str]): Advertiser ids to which campaigns are linked to. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_request.py new file mode 100644 index 00000000..67d1c349 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_search_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_search_filters import CampaignSearchFilters + globals()['CampaignSearchFilters'] = CampaignSearchFilters + + +class CampaignSearchRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'filters': (CampaignSearchFilters,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'filters': 'filters', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignSearchRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + filters (CampaignSearchFilters): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignSearchRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + filters (CampaignSearchFilters): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py new file mode 100644 index 00000000..a654b3b4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class CampaignSpendLimit(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('spend_limit_type',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('spend_limit_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'spend_limit_type': (str,), # noqa: E501 + 'spend_limit_renewal': (str,), # noqa: E501 + 'spend_limit_amount': (NillableDecimal,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'spend_limit_type': 'spendLimitType', # noqa: E501 + 'spend_limit_renewal': 'spendLimitRenewal', # noqa: E501 + 'spend_limit_amount': 'spendLimitAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignSpendLimit - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignSpendLimit - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py new file mode 100644 index 00000000..c0cdca6d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_spend_limit_v23_q1.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class CampaignSpendLimitV23Q1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('spend_limit_type',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('spend_limit_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'spend_limit_type': (str,), # noqa: E501 + 'spend_limit_renewal': (str,), # noqa: E501 + 'spend_limit_amount': (NillableDecimal,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'spend_limit_type': 'spendLimitType', # noqa: E501 + 'spend_limit_renewal': 'spendLimitRenewal', # noqa: E501 + 'spend_limit_amount': 'spendLimitAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignSpendLimitV23Q1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignSpendLimitV23Q1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py new file mode 100644 index 00000000..89b54b0e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1.py @@ -0,0 +1,286 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_spend_limit_v23_q1 import CampaignSpendLimitV23Q1 + globals()['CampaignSpendLimitV23Q1'] = CampaignSpendLimitV23Q1 + + +class CampaignV23Q1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('goal',): { + 'UNSPECIFIED': "unspecified", + 'ACQUISITION': "acquisition", + 'RETENTION': "retention", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'spend_limit': (CampaignSpendLimitV23Q1,), # noqa: E501 + 'goal': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'spend_limit': 'spendLimit', # noqa: E501 + 'goal': 'goal', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignV23Q1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the campaign. [optional] # noqa: E501 + advertiser_id (str): Advertiser id of the campaign. [optional] # noqa: E501 + spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 + goal (str): Goal of the campaign. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignV23Q1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the campaign. [optional] # noqa: E501 + advertiser_id (str): Advertiser id of the campaign. [optional] # noqa: E501 + spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501 + goal (str): Goal of the campaign. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_resource.py new file mode 100644 index 00000000..883cb9c5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1 import CampaignV23Q1 + globals()['CampaignV23Q1'] = CampaignV23Q1 + + +class CampaignV23Q1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (CampaignV23Q1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignV23Q1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CampaignV23Q1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignV23Q1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CampaignV23Q1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py new file mode 100644 index 00000000..b679800c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/campaign_v23_q1_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1_resource import CampaignV23Q1Resource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['CampaignV23Q1Resource'] = CampaignV23Q1Resource + globals()['ProblemDetails'] = ProblemDetails + + +class CampaignV23Q1Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CampaignV23Q1Resource,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignV23Q1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CampaignV23Q1Resource): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignV23Q1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CampaignV23Q1Resource): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/common_problem.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/common_problem.py new file mode 100644 index 00000000..910aeca7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/common_problem.py @@ -0,0 +1,305 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CommonProblem(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_id': (str,), # noqa: E501 + 'trace_identifier': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_id': 'traceId', # noqa: E501 + 'trace_identifier': 'traceIdentifier', # noqa: E501 + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonProblem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): The problem's category.. [optional] # noqa: E501 + code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonProblem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): The problem's category.. [optional] # noqa: E501 + code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1.py new file mode 100644 index 00000000..a573456b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ContactListStatisticsEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'number_of_identifiers': (int,), # noqa: E501 + 'number_of_matches': (int,), # noqa: E501 + 'match_rate': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'number_of_identifiers': 'numberOfIdentifiers', # noqa: E501 + 'number_of_matches': 'numberOfMatches', # noqa: E501 + 'match_rate': 'matchRate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ContactListStatisticsEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + number_of_identifiers (int): Number of identifiers in the contact list.. [optional] # noqa: E501 + number_of_matches (int): Number of matched identifiers in the contact list.. [optional] # noqa: E501 + match_rate (float): Percentage of matched identifiers in the contact list. Can differ from matches/identifiers depending on the contact list type.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ContactListStatisticsEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + number_of_identifiers (int): Number of identifiers in the contact list.. [optional] # noqa: E501 + number_of_matches (int): Number of matched identifiers in the contact list.. [optional] # noqa: E501 + match_rate (float): Percentage of matched identifiers in the contact list. Can differ from matches/identifiers depending on the contact list type.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_resource.py new file mode 100644 index 00000000..c254e5c3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1 import ContactListStatisticsEntityV1 + globals()['ContactListStatisticsEntityV1'] = ContactListStatisticsEntityV1 + + +class ContactListStatisticsEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (ContactListStatisticsEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ContactListStatisticsEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ContactListStatisticsEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ContactListStatisticsEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ContactListStatisticsEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_response.py new file mode 100644 index 00000000..2e085f84 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_statistics_entity_v1_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1_resource import ContactListStatisticsEntityV1Resource + globals()['CommonProblem'] = CommonProblem + globals()['ContactListStatisticsEntityV1Resource'] = ContactListStatisticsEntityV1Resource + + +class ContactListStatisticsEntityV1Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ContactListStatisticsEntityV1Resource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ContactListStatisticsEntityV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ContactListStatisticsEntityV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ContactListStatisticsEntityV1Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ContactListStatisticsEntityV1Resource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_v1.py new file mode 100644 index 00000000..b260cf6c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contact_list_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ContactListV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'is_read_only': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'is_read_only': 'isReadOnly', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ContactListV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + is_read_only (bool): Is the segment read-only. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ContactListV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + is_read_only (bool): Is the segment read-only. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment.py new file mode 100644 index 00000000..c70e5a33 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes + globals()['ContactlistAmendmentAttributes'] = ContactlistAmendmentAttributes + + +class ContactlistAmendment(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ContactlistAmendmentAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """ContactlistAmendment - a model defined in OpenAPI + + Args: + type (str): User List + attributes (ContactlistAmendmentAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """ContactlistAmendment - a model defined in OpenAPI + + Args: + type (str): User List + attributes (ContactlistAmendmentAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_attributes.py new file mode 100644 index 00000000..7bbd0255 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_attributes.py @@ -0,0 +1,294 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ContactlistAmendmentAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('operation',): { + 'ADD': "add", + 'REMOVE': "remove", + }, + ('identifier_type',): { + 'EMAIL': "email", + 'MADID': "madid", + 'IDENTITYLINK': "identityLink", + 'GUM': "gum", + 'CUSTOMERID': "customerid", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'operation': (str,), # noqa: E501 + 'identifiers': ([str],), # noqa: E501 + 'identifier_type': (str,), # noqa: E501 + 'gum_caller_id': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'operation': 'operation', # noqa: E501 + 'identifiers': 'identifiers', # noqa: E501 + 'identifier_type': 'identifierType', # noqa: E501 + 'gum_caller_id': 'gumCallerId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E501 + """ContactlistAmendmentAttributes - a model defined in OpenAPI + + Args: + operation (str): Operation to add or remove users + identifiers ([str]): The users tos add or remove, each in the schema specified + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 + gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.operation = operation + self.identifiers = identifiers + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501 + """ContactlistAmendmentAttributes - a model defined in OpenAPI + + Args: + operation (str): Operation to add or remove users + identifiers ([str]): The users tos add or remove, each in the schema specified + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 + gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.operation = operation + self.identifiers = identifiers + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_request.py similarity index 93% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_request.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_request.py index db431190..6f86c8df 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_request.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_amendment_request.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.report_request import ReportRequest - globals()['ReportRequest'] = ReportRequest + from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment import ContactlistAmendment + globals()['ContactlistAmendment'] = ContactlistAmendment -class EnvelopeReportRequest(ModelNormal): +class ContactlistAmendmentRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReportRequest,), # noqa: E501 + 'data': (ContactlistAmendment,), # noqa: E501 } @cached_property @@ -107,10 +107,10 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """EnvelopeReportRequest - a model defined in OpenAPI + """ContactlistAmendmentRequest - a model defined in OpenAPI Args: - data (ReportRequest): + data (ContactlistAmendment): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,10 +196,10 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, data, *args, **kwargs): # noqa: E501 - """EnvelopeReportRequest - a model defined in OpenAPI + """ContactlistAmendmentRequest - a model defined in OpenAPI Args: - data (ReportRequest): + data (ContactlistAmendment): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation.py new file mode 100644 index 00000000..9adc403d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.contactlist_operation_attributes import ContactlistOperationAttributes + globals()['ContactlistOperationAttributes'] = ContactlistOperationAttributes + + +class ContactlistOperation(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ContactlistOperationAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """ContactlistOperation - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (ContactlistOperationAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """ContactlistOperation - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (ContactlistOperationAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation_attributes.py new file mode 100644 index 00000000..091dc7c2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/contactlist_operation_attributes.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ContactlistOperationAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'operation': (str,), # noqa: E501 + 'contact_list_id': (int,), # noqa: E501 + 'request_date': (datetime,), # noqa: E501 + 'identifier_type': (str,), # noqa: E501 + 'nb_valid_identifiers': (int,), # noqa: E501 + 'nb_invalid_identifiers': (int,), # noqa: E501 + 'sample_invalid_identifiers': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'operation': 'operation', # noqa: E501 + 'contact_list_id': 'contactListId', # noqa: E501 + 'request_date': 'requestDate', # noqa: E501 + 'identifier_type': 'identifierType', # noqa: E501 + 'nb_valid_identifiers': 'nbValidIdentifiers', # noqa: E501 + 'nb_invalid_identifiers': 'nbInvalidIdentifiers', # noqa: E501 + 'sample_invalid_identifiers': 'sampleInvalidIdentifiers', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, operation, *args, **kwargs): # noqa: E501 + """ContactlistOperationAttributes - a model defined in OpenAPI + + Args: + operation (str): The action recorded + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + contact_list_id (int): the affected user list id. [optional] # noqa: E501 + request_date (datetime): When the action was recorded. [optional] # noqa: E501 + identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 + nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 + nb_invalid_identifiers (int): How many identifiers were invalid for the specified schema. [optional] # noqa: E501 + sample_invalid_identifiers ([str]): A sample of invalid identifiers if there is some. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.operation = operation + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, operation, *args, **kwargs): # noqa: E501 + """ContactlistOperationAttributes - a model defined in OpenAPI + + Args: + operation (str): The action recorded + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + contact_list_id (int): the affected user list id. [optional] # noqa: E501 + request_date (datetime): When the action was recorded. [optional] # noqa: E501 + identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 + nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 + nb_invalid_identifiers (int): How many identifiers were invalid for the specified schema. [optional] # noqa: E501 + sample_invalid_identifiers ([str]): A sample of invalid identifiers if there is some. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.operation = operation + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon.py new file mode 100644 index 00000000..004437e8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon.py @@ -0,0 +1,323 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.image_slide import ImageSlide + globals()['ImageSlide'] = ImageSlide + + +class Coupon(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('images',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'author': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'ad_set_id': (str,), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 + 'start_date': (str,), # noqa: E501 + 'end_date': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'images': ([ImageSlide],), # noqa: E501 + 'show_every': (int,), # noqa: E501 + 'show_duration': (int,), # noqa: E501 + 'rotations_number': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'description': 'description', # noqa: E501 + 'author': 'author', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'ad_set_id': 'adSetId', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'format': 'format', # noqa: E501 + 'status': 'status', # noqa: E501 + 'images': 'images', # noqa: E501 + 'show_every': 'showEvery', # noqa: E501 + 'show_duration': 'showDuration', # noqa: E501 + 'rotations_number': 'rotationsNumber', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Coupon - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name of the Coupon. [optional] # noqa: E501 + description (str): The description of the Coupon. [optional] # noqa: E501 + author (str): The login of the person who created this Coupon. [optional] # noqa: E501 + advertiser_id (str): Advertiser linked to the Coupon. [optional] # noqa: E501 + ad_set_id (str): The id of the Ad Set on which the Coupon is applied to. [optional] # noqa: E501 + landing_page_url (str): Web redirection of the landing page url. [optional] # noqa: E501 + start_date (str): The date when the Coupon will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + format (str): Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\". [optional] # noqa: E501 + status (str): The status of the Coupon. [optional] # noqa: E501 + images ([ImageSlide]): List of slides containing the image URLs. [optional] # noqa: E501 + show_every (int): Show the Coupon every N seconds (between 1 and 10). [optional] # noqa: E501 + show_duration (int): Show Coupon for a duration of N seconds (between 1 and 5). [optional] # noqa: E501 + rotations_number (int): Number of rotations for the Coupons (from 1 to 10 times). [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Coupon - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name of the Coupon. [optional] # noqa: E501 + description (str): The description of the Coupon. [optional] # noqa: E501 + author (str): The login of the person who created this Coupon. [optional] # noqa: E501 + advertiser_id (str): Advertiser linked to the Coupon. [optional] # noqa: E501 + ad_set_id (str): The id of the Ad Set on which the Coupon is applied to. [optional] # noqa: E501 + landing_page_url (str): Web redirection of the landing page url. [optional] # noqa: E501 + start_date (str): The date when the Coupon will be launched String must be in ISO8601 format. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + format (str): Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\". [optional] # noqa: E501 + status (str): The status of the Coupon. [optional] # noqa: E501 + images ([ImageSlide]): List of slides containing the image URLs. [optional] # noqa: E501 + show_every (int): Show the Coupon every N seconds (between 1 and 10). [optional] # noqa: E501 + show_duration (int): Show Coupon for a duration of N seconds (between 1 and 5). [optional] # noqa: E501 + rotations_number (int): Number of rotations for the Coupons (from 1 to 10 times). [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_list_response.py new file mode 100644 index 00000000..e98e0cd7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.coupon_resource import CouponResource + globals()['CommonProblem'] = CommonProblem + globals()['CouponResource'] = CouponResource + + +class CouponListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([CouponResource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CouponListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([CouponResource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CouponListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([CouponResource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_resource.py new file mode 100644 index 00000000..ade35ab9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.coupon import Coupon + globals()['Coupon'] = Coupon + + +class CouponResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Coupon,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CouponResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Coupon): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CouponResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Coupon): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_response.py new file mode 100644 index 00000000..e4866ef2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.coupon_resource import CouponResource + globals()['CommonProblem'] = CommonProblem + globals()['CouponResource'] = CouponResource + + +class CouponResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CouponResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CouponResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CouponResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CouponResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CouponResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes.py new file mode 100644 index 00000000..f7506d95 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CouponSupportedSizes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('logo_zone',): { + }, + ('full_frame',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'logo_zone': ([str],), # noqa: E501 + 'full_frame': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'logo_zone': 'logoZone', # noqa: E501 + 'full_frame': 'fullFrame', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CouponSupportedSizes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + logo_zone ([str]): Array of LogoZone sizes as string in width x height format. [optional] # noqa: E501 + full_frame ([str]): Array of FullFrame sizes as string in width x height format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CouponSupportedSizes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + logo_zone ([str]): Array of LogoZone sizes as string in width x height format. [optional] # noqa: E501 + full_frame ([str]): Array of FullFrame sizes as string in width x height format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_resource.py new file mode 100644 index 00000000..e6f3246b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes import CouponSupportedSizes + globals()['CouponSupportedSizes'] = CouponSupportedSizes + + +class CouponSupportedSizesResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (CouponSupportedSizes,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CouponSupportedSizesResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CouponSupportedSizes): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CouponSupportedSizesResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CouponSupportedSizes): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_response.py new file mode 100644 index 00000000..1bdab04f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/coupon_supported_sizes_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes_resource import CouponSupportedSizesResource + globals()['CommonProblem'] = CommonProblem + globals()['CouponSupportedSizesResource'] = CouponSupportedSizesResource + + +class CouponSupportedSizesResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CouponSupportedSizesResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CouponSupportedSizesResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CouponSupportedSizesResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CouponSupportedSizesResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CouponSupportedSizesResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py new file mode 100644 index 00000000..b696de68 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set.py @@ -0,0 +1,352 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_bidding import CreateAdSetBidding + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_budget import CreateAdSetBudget + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_schedule import CreateAdSetSchedule + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_targeting import CreateAdSetTargeting + globals()['CreateAdSetBidding'] = CreateAdSetBidding + globals()['CreateAdSetBudget'] = CreateAdSetBudget + globals()['CreateAdSetSchedule'] = CreateAdSetSchedule + globals()['CreateAdSetTargeting'] = CreateAdSetTargeting + + +class CreateAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('objective',): { + 'CUSTOMACTION': "customAction", + 'CLICKS': "clicks", + 'CONVERSIONS': "conversions", + 'DISPLAYS': "displays", + 'APPPROMOTION': "appPromotion", + 'REVENUE': "revenue", + 'STORECONVERSIONS': "storeConversions", + 'VALUE': "value", + 'REACH': "reach", + 'VISITS': "visits", + 'VIDEOVIEWS': "videoViews", + }, + ('media_type',): { + 'DISPLAY': "display", + 'VIDEO': "video", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'dataset_id': (str,), # noqa: E501 + 'campaign_id': (str,), # noqa: E501 + 'objective': (str,), # noqa: E501 + 'schedule': (CreateAdSetSchedule,), # noqa: E501 + 'bidding': (CreateAdSetBidding,), # noqa: E501 + 'targeting': (CreateAdSetTargeting,), # noqa: E501 + 'budget': (CreateAdSetBudget,), # noqa: E501 + 'tracking_code': (str,), # noqa: E501 + 'media_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'dataset_id': 'datasetId', # noqa: E501 + 'campaign_id': 'campaignId', # noqa: E501 + 'objective': 'objective', # noqa: E501 + 'schedule': 'schedule', # noqa: E501 + 'bidding': 'bidding', # noqa: E501 + 'targeting': 'targeting', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'tracking_code': 'trackingCode', # noqa: E501 + 'media_type': 'mediaType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, budget, tracking_code, media_type, *args, **kwargs): # noqa: E501 + """CreateAdSet - a model defined in OpenAPI + + Args: + name (str): Name of the ad set + dataset_id (str): Dataset id of this ad set + campaign_id (str): Campaign id this ad set belongs to + objective (str): Objective of the ad set + schedule (CreateAdSetSchedule): + bidding (CreateAdSetBidding): + targeting (CreateAdSetTargeting): + budget (CreateAdSetBudget): + tracking_code (str): The click tracking code associated to this Ad Set. + media_type (str): Media type for the ad set + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.dataset_id = dataset_id + self.campaign_id = campaign_id + self.objective = objective + self.schedule = schedule + self.bidding = bidding + self.targeting = targeting + self.budget = budget + self.tracking_code = tracking_code + self.media_type = media_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, budget, tracking_code, media_type, *args, **kwargs): # noqa: E501 + """CreateAdSet - a model defined in OpenAPI + + Args: + name (str): Name of the ad set + dataset_id (str): Dataset id of this ad set + campaign_id (str): Campaign id this ad set belongs to + objective (str): Objective of the ad set + schedule (CreateAdSetSchedule): + bidding (CreateAdSetBidding): + targeting (CreateAdSetTargeting): + budget (CreateAdSetBudget): + tracking_code (str): The click tracking code associated to this Ad Set. + media_type (str): Media type for the ad set + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.dataset_id = dataset_id + self.campaign_id = campaign_id + self.objective = objective + self.schedule = schedule + self.bidding = bidding + self.targeting = targeting + self.budget = budget + self.tracking_code = tracking_code + self.media_type = media_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_bidding.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_bidding.py new file mode 100644 index 00000000..c461af06 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_bidding.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CreateAdSetBidding(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('cost_controller',): { + 'COS': "COS", + 'CPC': "CPC", + 'CPI': "CPI", + 'CPM': "CPM", + 'CPO': "CPO", + 'CPSV': "CPSV", + 'CPV': "CPV", + 'DAILYBUDGET': "dailyBudget", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'cost_controller': (str,), # noqa: E501 + 'bid_amount': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'cost_controller': 'costController', # noqa: E501 + 'bid_amount': 'bidAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, cost_controller, *args, **kwargs): # noqa: E501 + """CreateAdSetBidding - a model defined in OpenAPI + + Args: + cost_controller (str): How spend is controlled + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (float): Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.cost_controller = cost_controller + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, cost_controller, *args, **kwargs): # noqa: E501 + """CreateAdSetBidding - a model defined in OpenAPI + + Args: + cost_controller (str): How spend is controlled + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (float): Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.cost_controller = cost_controller + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_budget.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_budget.py new file mode 100644 index 00000000..8229b7bb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_budget.py @@ -0,0 +1,309 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CreateAdSetBudget(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('budget_strategy',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('budget_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + ('budget_delivery_smoothing',): { + 'ACCELERATED': "accelerated", + 'STANDARD': "standard", + }, + ('budget_delivery_week',): { + 'UNDEFINED': "undefined", + 'MONDAYTOSUNDAY': "mondayToSunday", + 'TUESDAYTOMONDAY': "tuesdayToMonday", + 'WEDNESDAYTOTUESDAY': "wednesdayToTuesday", + 'THURSDAYTOWEDNESDAY': "thursdayToWednesday", + 'FRIDAYTOTHURSDAY': "fridayToThursday", + 'SATURDAYTOFRIDAY': "saturdayToFriday", + 'SUNDAYTOSATURDAY': "sundayToSaturday", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'budget_strategy': (str,), # noqa: E501 + 'budget_renewal': (str,), # noqa: E501 + 'budget_delivery_smoothing': (str,), # noqa: E501 + 'budget_delivery_week': (str,), # noqa: E501 + 'budget_amount': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'budget_strategy': 'budgetStrategy', # noqa: E501 + 'budget_renewal': 'budgetRenewal', # noqa: E501 + 'budget_delivery_smoothing': 'budgetDeliverySmoothing', # noqa: E501 + 'budget_delivery_week': 'budgetDeliveryWeek', # noqa: E501 + 'budget_amount': 'budgetAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, budget_strategy, *args, **kwargs): # noqa: E501 + """CreateAdSetBudget - a model defined in OpenAPI + + Args: + budget_strategy (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget_renewal (str): [optional] # noqa: E501 + budget_delivery_smoothing (str): [optional] # noqa: E501 + budget_delivery_week (str): [optional] # noqa: E501 + budget_amount (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.budget_strategy = budget_strategy + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, budget_strategy, *args, **kwargs): # noqa: E501 + """CreateAdSetBudget - a model defined in OpenAPI + + Args: + budget_strategy (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget_renewal (str): [optional] # noqa: E501 + budget_delivery_smoothing (str): [optional] # noqa: E501 + budget_delivery_week (str): [optional] # noqa: E501 + budget_amount (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.budget_strategy = budget_strategy + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_geo_location.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_geo_location.py new file mode 100644 index 00000000..4543ade3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_geo_location.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_targeting_rule import AdSetTargetingRule + globals()['AdSetTargetingRule'] = AdSetTargetingRule + + +class CreateAdSetGeoLocation(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'countries': (AdSetTargetingRule,), # noqa: E501 + 'subdivisions': (AdSetTargetingRule,), # noqa: E501 + 'zip_codes': (AdSetTargetingRule,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'countries': 'countries', # noqa: E501 + 'subdivisions': 'subdivisions', # noqa: E501 + 'zip_codes': 'zipCodes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateAdSetGeoLocation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + countries (AdSetTargetingRule): [optional] # noqa: E501 + subdivisions (AdSetTargetingRule): [optional] # noqa: E501 + zip_codes (AdSetTargetingRule): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateAdSetGeoLocation - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + countries (AdSetTargetingRule): [optional] # noqa: E501 + subdivisions (AdSetTargetingRule): [optional] # noqa: E501 + zip_codes (AdSetTargetingRule): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_request.py new file mode 100644 index 00000000..76ed5886 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_resource import CreateAdSetResource + globals()['CreateAdSetResource'] = CreateAdSetResource + + +class CreateAdSetRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateAdSetResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateAdSetRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateAdSetResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateAdSetRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateAdSetResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_resource.py new file mode 100644 index 00000000..0e9d7210 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set import CreateAdSet + globals()['CreateAdSet'] = CreateAdSet + + +class CreateAdSetResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (CreateAdSet,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateAdSetResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreateAdSet): [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateAdSetResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreateAdSet): [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_schedule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_schedule.py new file mode 100644 index 00000000..0693752b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_schedule.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CreateAdSetSchedule(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, start_date, *args, **kwargs): # noqa: E501 + """CreateAdSetSchedule - a model defined in OpenAPI + + Args: + start_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, start_date, *args, **kwargs): # noqa: E501 + """CreateAdSetSchedule - a model defined in OpenAPI + + Args: + start_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_targeting.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_targeting.py new file mode 100644 index 00000000..a0c7e6e2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_ad_set_targeting.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_delivery_limitations import AdSetDeliveryLimitations + from criteo_api_marketingsolutions_v2023_07.model.ad_set_frequency_capping import AdSetFrequencyCapping + from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_geo_location import CreateAdSetGeoLocation + globals()['AdSetDeliveryLimitations'] = AdSetDeliveryLimitations + globals()['AdSetFrequencyCapping'] = AdSetFrequencyCapping + globals()['CreateAdSetGeoLocation'] = CreateAdSetGeoLocation + + +class CreateAdSetTargeting(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'frequency_capping': (AdSetFrequencyCapping,), # noqa: E501 + 'delivery_limitations': (AdSetDeliveryLimitations,), # noqa: E501 + 'geo_location': (CreateAdSetGeoLocation,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'frequency_capping': 'frequencyCapping', # noqa: E501 + 'delivery_limitations': 'deliveryLimitations', # noqa: E501 + 'geo_location': 'geoLocation', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, frequency_capping, *args, **kwargs): # noqa: E501 + """CreateAdSetTargeting - a model defined in OpenAPI + + Args: + frequency_capping (AdSetFrequencyCapping): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501 + geo_location (CreateAdSetGeoLocation): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.frequency_capping = frequency_capping + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, frequency_capping, *args, **kwargs): # noqa: E501 + """CreateAdSetTargeting - a model defined in OpenAPI + + Args: + frequency_capping (AdSetFrequencyCapping): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501 + geo_location (CreateAdSetGeoLocation): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.frequency_capping = frequency_capping + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py new file mode 100644 index 00000000..22d85cc6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign.py @@ -0,0 +1,298 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_campaign_spend_limit import CreateCampaignSpendLimit + globals()['CreateCampaignSpendLimit'] = CreateCampaignSpendLimit + + +class CreateCampaign(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('goal',): { + 'UNSPECIFIED': "Unspecified", + 'ACQUISITION': "Acquisition", + 'RETENTION': "Retention", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'goal': (str,), # noqa: E501 + 'spend_limit': (CreateCampaignSpendLimit,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'goal': 'goal', # noqa: E501 + 'spend_limit': 'spendLimit', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, advertiser_id, goal, spend_limit, *args, **kwargs): # noqa: E501 + """CreateCampaign - a model defined in OpenAPI + + Args: + name (str): Name of the campaign + advertiser_id (str): Advertiser id this campaign belongs to + goal (str): Goal for the marketing campaign + spend_limit (CreateCampaignSpendLimit): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.advertiser_id = advertiser_id + self.goal = goal + self.spend_limit = spend_limit + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, advertiser_id, goal, spend_limit, *args, **kwargs): # noqa: E501 + """CreateCampaign - a model defined in OpenAPI + + Args: + name (str): Name of the campaign + advertiser_id (str): Advertiser id this campaign belongs to + goal (str): Goal for the marketing campaign + spend_limit (CreateCampaignSpendLimit): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.advertiser_id = advertiser_id + self.goal = goal + self.spend_limit = spend_limit + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_request.py new file mode 100644 index 00000000..b3fd5f77 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_campaign_resource import CreateCampaignResource + globals()['CreateCampaignResource'] = CreateCampaignResource + + +class CreateCampaignRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateCampaignResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateCampaignRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateCampaignResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateCampaignRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateCampaignResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_resource.py new file mode 100644 index 00000000..da6837cf --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_campaign import CreateCampaign + globals()['CreateCampaign'] = CreateCampaign + + +class CreateCampaignResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (CreateCampaign,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateCampaignResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreateCampaign): [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateCampaignResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreateCampaign): [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_spend_limit.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_spend_limit.py new file mode 100644 index 00000000..8082ff60 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_campaign_spend_limit.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CreateCampaignSpendLimit(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('spend_limit_type',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('spend_limit_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'spend_limit_type': (str,), # noqa: E501 + 'spend_limit_renewal': (str,), # noqa: E501 + 'spend_limit_amount': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'spend_limit_type': 'spendLimitType', # noqa: E501 + 'spend_limit_renewal': 'spendLimitRenewal', # noqa: E501 + 'spend_limit_amount': 'spendLimitAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, spend_limit_type, *args, **kwargs): # noqa: E501 + """CreateCampaignSpendLimit - a model defined in OpenAPI + + Args: + spend_limit_type (str): Whether your spend limit is capped or not + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (float): The amount of the spend limit. null if spendLimitType is uncapped.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.spend_limit_type = spend_limit_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, spend_limit_type, *args, **kwargs): # noqa: E501 + """CreateCampaignSpendLimit - a model defined in OpenAPI + + Args: + spend_limit_type (str): Whether your spend limit is capped or not + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (float): The amount of the spend limit. null if spendLimitType is uncapped.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.spend_limit_type = spend_limit_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon.py new file mode 100644 index 00000000..28d2d435 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon.py @@ -0,0 +1,349 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_image_slide import CreateImageSlide + globals()['CreateImageSlide'] = CreateImageSlide + + +class CreateCoupon(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('format',): { + 'FULLFRAME': "FullFrame", + 'LOGOZONE': "LogoZone", + }, + } + + validations = { + ('images',): { + }, + ('show_every',): { + 'inclusive_maximum': 10, + 'inclusive_minimum': 1, + }, + ('show_duration',): { + 'inclusive_maximum': 5, + 'inclusive_minimum': 1, + }, + ('rotations_number',): { + 'inclusive_maximum': 10, + 'inclusive_minimum': 1, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'ad_set_id': (str,), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 + 'start_date': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'images': ([CreateImageSlide],), # noqa: E501 + 'show_every': (int,), # noqa: E501 + 'show_duration': (int,), # noqa: E501 + 'rotations_number': (int,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'end_date': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'ad_set_id': 'adSetId', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'format': 'format', # noqa: E501 + 'images': 'images', # noqa: E501 + 'show_every': 'showEvery', # noqa: E501 + 'show_duration': 'showDuration', # noqa: E501 + 'rotations_number': 'rotationsNumber', # noqa: E501 + 'description': 'description', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, ad_set_id, landing_page_url, start_date, format, images, show_every, show_duration, rotations_number, *args, **kwargs): # noqa: E501 + """CreateCoupon - a model defined in OpenAPI + + Args: + name (str): The name of the Coupon + ad_set_id (str): The id of the Ad Set on which the Coupon is applied to + landing_page_url (str): Web redirection of the landing page url + start_date (str): The date when the coupon will be launched String must be in ISO8601 format + format (str): Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\" + images ([CreateImageSlide]): List of slides containing the images as a base-64 encoded string + show_every (int): Show the Coupon every N seconds (between 1 and 10) + show_duration (int): Show Coupon for a duration of N seconds (between 1 and 5) + rotations_number (int): Number of rotations for the Coupons (from 1 to 10 times) + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the Coupon. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.ad_set_id = ad_set_id + self.landing_page_url = landing_page_url + self.start_date = start_date + self.format = format + self.images = images + self.show_every = show_every + self.show_duration = show_duration + self.rotations_number = rotations_number + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, ad_set_id, landing_page_url, start_date, format, images, show_every, show_duration, rotations_number, *args, **kwargs): # noqa: E501 + """CreateCoupon - a model defined in OpenAPI + + Args: + name (str): The name of the Coupon + ad_set_id (str): The id of the Ad Set on which the Coupon is applied to + landing_page_url (str): Web redirection of the landing page url + start_date (str): The date when the coupon will be launched String must be in ISO8601 format + format (str): Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\" + images ([CreateImageSlide]): List of slides containing the images as a base-64 encoded string + show_every (int): Show the Coupon every N seconds (between 1 and 10) + show_duration (int): Show Coupon for a duration of N seconds (between 1 and 5) + rotations_number (int): Number of rotations for the Coupons (from 1 to 10 times) + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the Coupon. [optional] # noqa: E501 + end_date (str): The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.ad_set_id = ad_set_id + self.landing_page_url = landing_page_url + self.start_date = start_date + self.format = format + self.images = images + self.show_every = show_every + self.show_duration = show_duration + self.rotations_number = rotations_number + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_request.py new file mode 100644 index 00000000..c2b85bf4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_coupon_resource import CreateCouponResource + globals()['CreateCouponResource'] = CreateCouponResource + + +class CreateCouponRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateCouponResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateCouponRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateCouponResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateCouponRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateCouponResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_resource.py new file mode 100644 index 00000000..e14622e0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_coupon_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.create_coupon import CreateCoupon + globals()['CreateCoupon'] = CreateCoupon + + +class CreateCouponResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (CreateCoupon,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateCouponResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreateCoupon): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateCouponResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreateCoupon): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_image_slide.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_image_slide.py new file mode 100644 index 00000000..7912aa1f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/create_image_slide.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CreateImageSlide(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('slide_base64_strings',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'width': (int,), # noqa: E501 + 'height': (int,), # noqa: E501 + 'slide_base64_strings': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'width': 'width', # noqa: E501 + 'height': 'height', # noqa: E501 + 'slide_base64_strings': 'slideBase64Strings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateImageSlide - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + width (int): Width of the Coupon slide. [optional] # noqa: E501 + height (int): Height of the Coupon slide. [optional] # noqa: E501 + slide_base64_strings ([str]): Array of images of the same size as a base-64 encoded string. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateImageSlide - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + width (int): Width of the Coupon slide. [optional] # noqa: E501 + height (int): Height of the Coupon slide. [optional] # noqa: E501 + slide_base64_strings ([str]): Array of images of the same size as a base-64 encoded string. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative.py new file mode 100644 index 00000000..d4db131e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative.py @@ -0,0 +1,327 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.adaptive_attributes import AdaptiveAttributes + from criteo_api_marketingsolutions_v2023_07.model.dynamic_attributes import DynamicAttributes + from criteo_api_marketingsolutions_v2023_07.model.html_tag_attributes import HtmlTagAttributes + from criteo_api_marketingsolutions_v2023_07.model.image_attributes import ImageAttributes + globals()['AdaptiveAttributes'] = AdaptiveAttributes + globals()['DynamicAttributes'] = DynamicAttributes + globals()['HtmlTagAttributes'] = HtmlTagAttributes + globals()['ImageAttributes'] = ImageAttributes + + +class Creative(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'author': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'dataset_id': (str,), # noqa: E501 + 'image_attributes': (ImageAttributes,), # noqa: E501 + 'html_tag_attributes': (HtmlTagAttributes,), # noqa: E501 + 'dynamic_attributes': (DynamicAttributes,), # noqa: E501 + 'adaptive_attributes': (AdaptiveAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'author': 'author', # noqa: E501 + 'status': 'status', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'description': 'description', # noqa: E501 + 'format': 'format', # noqa: E501 + 'dataset_id': 'datasetId', # noqa: E501 + 'image_attributes': 'imageAttributes', # noqa: E501 + 'html_tag_attributes': 'htmlTagAttributes', # noqa: E501 + 'dynamic_attributes': 'dynamicAttributes', # noqa: E501 + 'adaptive_attributes': 'adaptiveAttributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, author, status, advertiser_id, *args, **kwargs): # noqa: E501 + """Creative - a model defined in OpenAPI + + Args: + name (str): The name of the creative + author (str): The login of the person who created this creative ( + status (str): The status of the creative + advertiser_id (str): Advertiser linked to the Creative + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the creative. [optional] # noqa: E501 + format (str): The format of the creative. [optional] # noqa: E501 + dataset_id (str): Data set id linked to the Creative. [optional] # noqa: E501 + image_attributes (ImageAttributes): [optional] # noqa: E501 + html_tag_attributes (HtmlTagAttributes): [optional] # noqa: E501 + dynamic_attributes (DynamicAttributes): [optional] # noqa: E501 + adaptive_attributes (AdaptiveAttributes): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.author = author + self.status = status + self.advertiser_id = advertiser_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, author, status, advertiser_id, *args, **kwargs): # noqa: E501 + """Creative - a model defined in OpenAPI + + Args: + name (str): The name of the creative + author (str): The login of the person who created this creative ( + status (str): The status of the creative + advertiser_id (str): Advertiser linked to the Creative + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the creative. [optional] # noqa: E501 + format (str): The format of the creative. [optional] # noqa: E501 + dataset_id (str): Data set id linked to the Creative. [optional] # noqa: E501 + image_attributes (ImageAttributes): [optional] # noqa: E501 + html_tag_attributes (HtmlTagAttributes): [optional] # noqa: E501 + dynamic_attributes (DynamicAttributes): [optional] # noqa: E501 + adaptive_attributes (AdaptiveAttributes): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.author = author + self.status = status + self.advertiser_id = advertiser_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_list_response.py new file mode 100644 index 00000000..7330be24 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.creative_resource import CreativeResource + globals()['CommonProblem'] = CommonProblem + globals()['CreativeResource'] = CreativeResource + + +class CreativeListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([CreativeResource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreativeListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([CreativeResource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreativeListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([CreativeResource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_resource.py new file mode 100644 index 00000000..fb9d23a8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.creative import Creative + globals()['Creative'] = Creative + + +class CreativeResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Creative,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreativeResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Creative): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreativeResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Creative): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_response.py new file mode 100644 index 00000000..11097f37 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.creative_resource import CreativeResource + globals()['CommonProblem'] = CommonProblem + globals()['CreativeResource'] = CreativeResource + + +class CreativeResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreativeResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreativeResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreativeResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreativeResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreativeResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write.py new file mode 100644 index 00000000..a4743353 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write.py @@ -0,0 +1,319 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.adaptive_write_attributes import AdaptiveWriteAttributes + from criteo_api_marketingsolutions_v2023_07.model.dynamic_write_attributes import DynamicWriteAttributes + from criteo_api_marketingsolutions_v2023_07.model.html_tag_write_attributes import HtmlTagWriteAttributes + from criteo_api_marketingsolutions_v2023_07.model.image_write_attributes import ImageWriteAttributes + globals()['AdaptiveWriteAttributes'] = AdaptiveWriteAttributes + globals()['DynamicWriteAttributes'] = DynamicWriteAttributes + globals()['HtmlTagWriteAttributes'] = HtmlTagWriteAttributes + globals()['ImageWriteAttributes'] = ImageWriteAttributes + + +class CreativeWrite(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('format',): { + 'IMAGE': "Image", + 'HTMLTAG': "HtmlTag", + 'DYNAMIC': "Dynamic", + 'ADAPTIVE': "Adaptive", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'dataset_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'image_write_attributes': (ImageWriteAttributes,), # noqa: E501 + 'html_tag_write_attributes': (HtmlTagWriteAttributes,), # noqa: E501 + 'dynamic_write_attributes': (DynamicWriteAttributes,), # noqa: E501 + 'adaptive_write_attributes': (AdaptiveWriteAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'format': 'format', # noqa: E501 + 'dataset_id': 'datasetId', # noqa: E501 + 'description': 'description', # noqa: E501 + 'image_write_attributes': 'imageWriteAttributes', # noqa: E501 + 'html_tag_write_attributes': 'htmlTagWriteAttributes', # noqa: E501 + 'dynamic_write_attributes': 'dynamicWriteAttributes', # noqa: E501 + 'adaptive_write_attributes': 'adaptiveWriteAttributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, format, dataset_id, *args, **kwargs): # noqa: E501 + """CreativeWrite - a model defined in OpenAPI + + Args: + name (str): The name of the creative + format (str): The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" + dataset_id (str): Dataset linked to the Creative + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the creative. [optional] # noqa: E501 + image_write_attributes (ImageWriteAttributes): [optional] # noqa: E501 + html_tag_write_attributes (HtmlTagWriteAttributes): [optional] # noqa: E501 + dynamic_write_attributes (DynamicWriteAttributes): [optional] # noqa: E501 + adaptive_write_attributes (AdaptiveWriteAttributes): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.format = format + self.dataset_id = dataset_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, format, dataset_id, *args, **kwargs): # noqa: E501 + """CreativeWrite - a model defined in OpenAPI + + Args: + name (str): The name of the creative + format (str): The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" + dataset_id (str): Dataset linked to the Creative + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + description (str): The description of the creative. [optional] # noqa: E501 + image_write_attributes (ImageWriteAttributes): [optional] # noqa: E501 + html_tag_write_attributes (HtmlTagWriteAttributes): [optional] # noqa: E501 + dynamic_write_attributes (DynamicWriteAttributes): [optional] # noqa: E501 + adaptive_write_attributes (AdaptiveWriteAttributes): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.format = format + self.dataset_id = dataset_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_request.py new file mode 100644 index 00000000..d2075394 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.creative_write_resource import CreativeWriteResource + globals()['CreativeWriteResource'] = CreativeWriteResource + + +class CreativeWriteRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreativeWriteResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreativeWriteRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreativeWriteResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreativeWriteRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreativeWriteResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_resource.py new file mode 100644 index 00000000..2a7511e2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/creative_write_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.creative_write import CreativeWrite + globals()['CreativeWrite'] = CreativeWrite + + +class CreativeWriteResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (CreativeWrite,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreativeWriteResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreativeWrite): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreativeWriteResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CreativeWrite): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error_v2.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_error.py similarity index 96% rename from sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error_v2.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_error.py index 6461acc0..155cd2b1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error_v2.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_error.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError -class CriteoApiErrorV2(ModelNormal): +class CriteoApiError(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,7 +56,7 @@ class CriteoApiErrorV2(ModelNormal): allowed_values = { ('type',): { - 'ACCESS-CONTROL': "access-control", + 'ACCESS_CONTROL': "access_control", 'AUTHENTICATION': "authentication", 'AUTHORIZATION': "authorization", 'AVAILABILITY': "availability", @@ -73,7 +73,6 @@ class CriteoApiErrorV2(ModelNormal): 'INVALID': "invalid", 'INVALID-RANGED': "invalid-ranged", 'INVALID-TIMESPAN': "invalid-timespan", - 'PERMISSION-DENIED': "permission-denied", }, } @@ -133,7 +132,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CriteoApiErrorV2 - a model defined in OpenAPI + """CriteoApiError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -225,7 +224,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CriteoApiErrorV2 - a model defined in OpenAPI + """CriteoApiError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_warning.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_warning.py new file mode 100644 index 00000000..408671a5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/criteo_api_warning.py @@ -0,0 +1,302 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class CriteoApiWarning(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'ACCESS_CONTROL': "access_control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + ('code',): { + 'INTERNAL-ERROR': "internal-error", + 'DEPRECATED-FIELD': "deprecated-field", + 'ENDPOINT-DEPRECATED': "endpoint-deprecated", + 'REQUIRED-FIELD': "required-field", + 'INVALID-DATE-FORMAT': "invalid-date-format", + 'INVALID': "invalid", + 'INVALID-RANGED': "invalid-ranged", + 'INVALID-TIMESPAN': "invalid-timespan", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_id': 'traceId', # noqa: E501 + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CriteoApiWarning - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The correlation ID provided by the gateway. [optional] # noqa: E501 + type (str): A machine-readable code specifying error category. [optional] # noqa: E501 + code (str): A machine-readable error code string in kabab-case. Unique across Criteo. [optional] # noqa: E501 + instance (str): A URI reference that identifies the specific occurrence of the problem. [optional] # noqa: E501 + title (str): A short, human-readable remarks of the problem type.. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CriteoApiWarning - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The correlation ID provided by the gateway. [optional] # noqa: E501 + type (str): A machine-readable code specifying error category. [optional] # noqa: E501 + code (str): A machine-readable error code string in kabab-case. Unique across Criteo. [optional] # noqa: E501 + instance (str): A URI reference that identifies the specific occurrence of the problem. [optional] # noqa: E501 + title (str): A short, human-readable remarks of the problem type.. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_contact_list_response.py new file mode 100644 index 00000000..b3f4dab4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_contact_list_response.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_07.model.basic_audience_definition import BasicAudienceDefinition + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + globals()['BasicAudienceDefinition'] = BasicAudienceDefinition + + +class DeleteAudienceContactListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (BasicAudienceDefinition,), # noqa: E501 + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, errors, warnings, *args, **kwargs): # noqa: E501 + """DeleteAudienceContactListResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, errors, warnings, *args, **kwargs): # noqa: E501 + """DeleteAudienceContactListResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_response.py new file mode 100644 index 00000000..130b1ad1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/delete_audience_response.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_07.model.basic_audience_definition import BasicAudienceDefinition + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + globals()['BasicAudienceDefinition'] = BasicAudienceDefinition + + +class DeleteAudienceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (BasicAudienceDefinition,), # noqa: E501 + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, errors, warnings, *args, **kwargs): # noqa: E501 + """DeleteAudienceResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, errors, warnings, *args, **kwargs): # noqa: E501 + """DeleteAudienceResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_attributes.py new file mode 100644 index 00000000..b820eb7a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_attributes.py @@ -0,0 +1,301 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.image_shape import ImageShape + globals()['ImageShape'] = ImageShape + + +class DynamicAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('product_image_display',): { + 'SHOWFULLIMAGE': "ShowFullImage", + 'ZOOMONIMAGE': "ZoomOnImage", + }, + } + + validations = { + ('logos',): { + }, + ('calls_to_action',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'logos': ([ImageShape],), # noqa: E501 + 'creative_background_color': (str,), # noqa: E501 + 'body_text_color': (str,), # noqa: E501 + 'prices_color': (str,), # noqa: E501 + 'primary_font': (str,), # noqa: E501 + 'calls_to_action': ([str],), # noqa: E501 + 'product_image_display': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'logos': 'logos', # noqa: E501 + 'creative_background_color': 'creativeBackgroundColor', # noqa: E501 + 'body_text_color': 'bodyTextColor', # noqa: E501 + 'prices_color': 'pricesColor', # noqa: E501 + 'primary_font': 'primaryFont', # noqa: E501 + 'calls_to_action': 'callsToAction', # noqa: E501 + 'product_image_display': 'productImageDisplay', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """DynamicAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + logos ([ImageShape]): Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + creative_background_color (str): Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + body_text_color (str): Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + prices_color (str): Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”.. [optional] # noqa: E501 + product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """DynamicAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + logos ([ImageShape]): Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + creative_background_color (str): Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + body_text_color (str): Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + prices_color (str): Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”.. [optional] # noqa: E501 + product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_write_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_write_attributes.py new file mode 100644 index 00000000..0d987c0c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/dynamic_write_attributes.py @@ -0,0 +1,308 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class DynamicWriteAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('product_image_display',): { + 'SHOWFULLIMAGE': "ShowFullImage", + 'ZOOMONIMAGE': "ZoomOnImage", + }, + } + + validations = { + ('calls_to_action',): { + 'min_items': 1, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'logo_base64_string': (str,), # noqa: E501 + 'body_text_color': (str,), # noqa: E501 + 'prices_color': (str,), # noqa: E501 + 'calls_to_action': ([str],), # noqa: E501 + 'product_image_display': (str,), # noqa: E501 + 'creative_background_color': (str,), # noqa: E501 + 'primary_font': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'logo_base64_string': 'logoBase64String', # noqa: E501 + 'body_text_color': 'bodyTextColor', # noqa: E501 + 'prices_color': 'pricesColor', # noqa: E501 + 'calls_to_action': 'callsToAction', # noqa: E501 + 'product_image_display': 'productImageDisplay', # noqa: E501 + 'creative_background_color': 'creativeBackgroundColor', # noqa: E501 + 'primary_font': 'primaryFont', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, logo_base64_string, body_text_color, prices_color, calls_to_action, product_image_display, *args, **kwargs): # noqa: E501 + """DynamicWriteAttributes - a model defined in OpenAPI + + Args: + logo_base64_string (str): Logo image as a base-64 encoded string + body_text_color (str): Color of the creative's body text Valid hexadecimal RGB color (e.g. \"AB00FF\") + prices_color (str): Color of the creative's prices Valid hexadecimal RGB color (e.g. \"AB00FF\") + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + creative_background_color (str): Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.logo_base64_string = logo_base64_string + self.body_text_color = body_text_color + self.prices_color = prices_color + self.calls_to_action = calls_to_action + self.product_image_display = product_image_display + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, logo_base64_string, body_text_color, prices_color, calls_to_action, product_image_display, *args, **kwargs): # noqa: E501 + """DynamicWriteAttributes - a model defined in OpenAPI + + Args: + logo_base64_string (str): Logo image as a base-64 encoded string + body_text_color (str): Color of the creative's body text Valid hexadecimal RGB color (e.g. \"AB00FF\") + prices_color (str): Color of the creative's prices Valid hexadecimal RGB color (e.g. \"AB00FF\") + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + creative_background_color (str): Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\"). [optional] # noqa: E501 + primary_font (str): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.logo_base64_string = logo_base64_string + self.body_text_color = body_text_color + self.prices_color = prices_color + self.calls_to_action = calls_to_action + self.product_image_display = product_image_display + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/entity_of_portfolio_message.py new file mode 100644 index 00000000..c0ad53b8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/entity_of_portfolio_message.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.portfolio_message import PortfolioMessage + globals()['PortfolioMessage'] = PortfolioMessage + + +class EntityOfPortfolioMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'CAMPAIGN': "campaign", + 'ADSET': "adset", + 'AD': "ad", + 'ADVERTISER': "advertiser", + 'AGENCY': "agency", + 'PUBLISHER': "publisher", + 'ADDRESS': "address", + 'CLIENT': "client", + 'CONTACT': "contact", + 'INDUSTRY': "industry", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (PortfolioMessage,), # noqa: E501 + 'meta': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + 'meta': 'meta', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """EntityOfPortfolioMessage - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): A string containing the entity type. [optional] # noqa: E501 + id (str): A opaque string containing the unique Id of the entity. [optional] # noqa: E501 + attributes (PortfolioMessage): [optional] # noqa: E501 + meta ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A meta object that contains application-specific metadata. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """EntityOfPortfolioMessage - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): A string containing the entity type. [optional] # noqa: E501 + id (str): A opaque string containing the unique Id of the entity. [optional] # noqa: E501 + attributes (PortfolioMessage): [optional] # noqa: E501 + meta ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): A meta object that contains application-specific metadata. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/error_code_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/error_code_response.py new file mode 100644 index 00000000..064ca93c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/error_code_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + + +class ErrorCodeResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, errors, *args, **kwargs): # noqa: E501 + """ErrorCodeResponse - a model defined in OpenAPI + + Args: + errors ([AudienceError]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + warnings ([AudienceWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.errors = errors + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, errors, *args, **kwargs): # noqa: E501 + """ErrorCodeResponse - a model defined in OpenAPI + + Args: + errors ([AudienceError]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + warnings ([AudienceWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.errors = errors + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_audiences_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_audiences_response.py new file mode 100644 index 00000000..e9ea1f4f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_audiences_response.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience import Audience + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + globals()['Audience'] = Audience + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + + +class GetAudiencesResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([Audience],), # noqa: E501 + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, errors, warnings, *args, **kwargs): # noqa: E501 + """GetAudiencesResponse - a model defined in OpenAPI + + Args: + data ([Audience]): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, errors, warnings, *args, **kwargs): # noqa: E501 + """GetAudiencesResponse - a model defined in OpenAPI + + Args: + data ([Audience]): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_portfolio_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_portfolio_response.py new file mode 100644 index 00000000..f71f4f68 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/get_portfolio_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.criteo_api_error import CriteoApiError + from criteo_api_marketingsolutions_v2023_07.model.criteo_api_warning import CriteoApiWarning + from criteo_api_marketingsolutions_v2023_07.model.entity_of_portfolio_message import EntityOfPortfolioMessage + globals()['CriteoApiError'] = CriteoApiError + globals()['CriteoApiWarning'] = CriteoApiWarning + globals()['EntityOfPortfolioMessage'] = EntityOfPortfolioMessage + + +class GetPortfolioResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('errors',): { + }, + ('warnings',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([EntityOfPortfolioMessage],), # noqa: E501 + 'errors': ([CriteoApiError],), # noqa: E501 + 'warnings': ([CriteoApiWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """GetPortfolioResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([EntityOfPortfolioMessage]): The response�s primary data. [optional] # noqa: E501 + errors ([CriteoApiError]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + warnings ([CriteoApiWarning]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """GetPortfolioResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([EntityOfPortfolioMessage]): The response�s primary data. [optional] # noqa: E501 + errors ([CriteoApiError]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + warnings ([CriteoApiWarning]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_attributes.py new file mode 100644 index 00000000..e5bfeb5b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_attributes.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.tag import Tag + globals()['Tag'] = Tag + + +class HtmlTagAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('tags',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'tags': ([Tag],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'tags': 'tags', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """HtmlTagAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + tags ([Tag]): An array containing the html tags. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """HtmlTagAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + tags ([Tag]): An array containing the html tags. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_write_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_write_attributes.py new file mode 100644 index 00000000..3bf658a0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/html_tag_write_attributes.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.tag import Tag + globals()['Tag'] = Tag + + +class HtmlTagWriteAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('tags',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'tags': ([Tag],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'tags': 'tags', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, tags, *args, **kwargs): # noqa: E501 + """HtmlTagWriteAttributes - a model defined in OpenAPI + + Args: + tags ([Tag]): An array containing the html tags + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.tags = tags + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, tags, *args, **kwargs): # noqa: E501 + """HtmlTagWriteAttributes - a model defined in OpenAPI + + Args: + tags ([Tag]): An array containing the html tags + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.tags = tags + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_attributes.py new file mode 100644 index 00000000..8d8bdcef --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_attributes.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ImageAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('urls',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'urls': ([str],), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'urls': 'urls', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ImageAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + urls ([str]): Array of images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + landing_page_url (str): Web redirection of the landing page url. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ImageAttributes - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + urls ([str]): Array of images uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + landing_page_url (str): Web redirection of the landing page url. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set.py new file mode 100644 index 00000000..6605dd3e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.image_shape import ImageShape + globals()['ImageShape'] = ImageShape + + +class ImageSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('images',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'images': ([ImageShape],), # noqa: E501 + 'headline_text': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'images': 'images', # noqa: E501 + 'headline_text': 'headlineText', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, images, *args, **kwargs): # noqa: E501 + """ImageSet - a model defined in OpenAPI + + Args: + images ([ImageShape]): The images' urls with their shapes. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + headline_text (str): The headline of the image set. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.images = images + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, images, *args, **kwargs): # noqa: E501 + """ImageSet - a model defined in OpenAPI + + Args: + images ([ImageShape]): The images' urls with their shapes. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + headline_text (str): The headline of the image set. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.images = images + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set_base64.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set_base64.py new file mode 100644 index 00000000..ce0f9113 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_set_base64.py @@ -0,0 +1,276 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ImageSetBase64(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('image_base64_strings',): { + 'min_items': 1, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'image_base64_strings': ([str],), # noqa: E501 + 'headline_text': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'image_base64_strings': 'imageBase64Strings', # noqa: E501 + 'headline_text': 'headlineText', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, image_base64_strings, *args, **kwargs): # noqa: E501 + """ImageSetBase64 - a model defined in OpenAPI + + Args: + image_base64_strings ([str]): Multiple images potentially in different shapes, each image is a base-64 encoded string. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + headline_text (str): The headline of the image set. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.image_base64_strings = image_base64_strings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, image_base64_strings, *args, **kwargs): # noqa: E501 + """ImageSetBase64 - a model defined in OpenAPI + + Args: + image_base64_strings ([str]): Multiple images potentially in different shapes, each image is a base-64 encoded string. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + headline_text (str): The headline of the image set. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.image_base64_strings = image_base64_strings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_shape.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_shape.py new file mode 100644 index 00000000..c1d7561f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_shape.py @@ -0,0 +1,280 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ImageShape(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('shape',): { + 'HORIZONTAL': "Horizontal", + 'VERTICAL': "Vertical", + 'SQUARE': "Square", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'shape': (str,), # noqa: E501 + 'url': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'shape': 'shape', # noqa: E501 + 'url': 'url', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, shape, url, *args, **kwargs): # noqa: E501 + """ImageShape - a model defined in OpenAPI + + Args: + shape (str): Ratio of the image + url (str): URL of the image uploaded on demostatic.criteo.com when deploying and then static.criteo.net + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.shape = shape + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, shape, url, *args, **kwargs): # noqa: E501 + """ImageShape - a model defined in OpenAPI + + Args: + shape (str): Ratio of the image + url (str): URL of the image uploaded on demostatic.criteo.com when deploying and then static.criteo.net + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.shape = shape + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_slide.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_slide.py new file mode 100644 index 00000000..b1ef553f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_slide.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ImageSlide(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('slide_urls',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'width': (int,), # noqa: E501 + 'height': (int,), # noqa: E501 + 'slide_urls': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'width': 'width', # noqa: E501 + 'height': 'height', # noqa: E501 + 'slide_urls': 'slideUrls', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ImageSlide - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + width (int): Width of the Coupon slide. [optional] # noqa: E501 + height (int): Height of the Coupon slide. [optional] # noqa: E501 + slide_urls ([str]): Array of images of the same size uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ImageSlide - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + width (int): Width of the Coupon slide. [optional] # noqa: E501 + height (int): Height of the Coupon slide. [optional] # noqa: E501 + slide_urls ([str]): Array of images of the same size uploaded on demostatic.criteo.com when deploying and then static.criteo.net. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_write_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_write_attributes.py new file mode 100644 index 00000000..c78a06a4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/image_write_attributes.py @@ -0,0 +1,278 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ImageWriteAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('base64_strings',): { + 'min_items': 1, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'base64_strings': ([str],), # noqa: E501 + 'landing_page_url': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'base64_strings': 'base64Strings', # noqa: E501 + 'landing_page_url': 'landingPageUrl', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, base64_strings, landing_page_url, *args, **kwargs): # noqa: E501 + """ImageWriteAttributes - a model defined in OpenAPI + + Args: + base64_strings ([str]): Array of images as a base-64 encoded string + landing_page_url (str): Web redirection of the landing page url + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.base64_strings = base64_strings + self.landing_page_url = landing_page_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, base64_strings, landing_page_url, *args, **kwargs): # noqa: E501 + """ImageWriteAttributes - a model defined in OpenAPI + + Args: + base64_strings ([str]): Array of images as a base-64 encoded string + landing_page_url (str): Web redirection of the landing page url + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.base64_strings = base64_strings + self.landing_page_url = landing_page_url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1.py new file mode 100644 index 00000000..be3b3a3c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class InMarketAudienceSegmentBrandEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'size': 'size', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentBrandEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the in-market segment brand. [optional] # noqa: E501 + size (int): Size of the in-market segment brand. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentBrandEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the in-market segment brand. [optional] # noqa: E501 + size (int): Size of the in-market segment brand. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_list_response.py new file mode 100644 index 00000000..d3983751 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1_resource import InMarketAudienceSegmentBrandEntityV1Resource + globals()['CommonProblem'] = CommonProblem + globals()['InMarketAudienceSegmentBrandEntityV1Resource'] = InMarketAudienceSegmentBrandEntityV1Resource + + +class InMarketAudienceSegmentBrandEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([InMarketAudienceSegmentBrandEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentBrandEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([InMarketAudienceSegmentBrandEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentBrandEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([InMarketAudienceSegmentBrandEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_resource.py new file mode 100644 index 00000000..a1e23d20 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_brand_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1 import InMarketAudienceSegmentBrandEntityV1 + globals()['InMarketAudienceSegmentBrandEntityV1'] = InMarketAudienceSegmentBrandEntityV1 + + +class InMarketAudienceSegmentBrandEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (InMarketAudienceSegmentBrandEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentBrandEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (InMarketAudienceSegmentBrandEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentBrandEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (InMarketAudienceSegmentBrandEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1.py new file mode 100644 index 00000000..7357bd75 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class InMarketAudienceSegmentInterestEntityV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'parent_id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'parent_id': 'parentId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentInterestEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + parent_id (str): Id of the parent in-market segment interest. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentInterestEntityV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + parent_id (str): Id of the parent in-market segment interest. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_list_response.py new file mode 100644 index 00000000..645d3731 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem + from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1_resource import InMarketAudienceSegmentInterestEntityV1Resource + globals()['CommonProblem'] = CommonProblem + globals()['InMarketAudienceSegmentInterestEntityV1Resource'] = InMarketAudienceSegmentInterestEntityV1Resource + + +class InMarketAudienceSegmentInterestEntityV1ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([InMarketAudienceSegmentInterestEntityV1Resource],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentInterestEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([InMarketAudienceSegmentInterestEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentInterestEntityV1ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([InMarketAudienceSegmentInterestEntityV1Resource]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_resource.py new file mode 100644 index 00000000..47b44ee2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_audience_segment_interest_entity_v1_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1 import InMarketAudienceSegmentInterestEntityV1 + globals()['InMarketAudienceSegmentInterestEntityV1'] = InMarketAudienceSegmentInterestEntityV1 + + +class InMarketAudienceSegmentInterestEntityV1Resource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (InMarketAudienceSegmentInterestEntityV1,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentInterestEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (InMarketAudienceSegmentInterestEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketAudienceSegmentInterestEntityV1Resource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (InMarketAudienceSegmentInterestEntityV1): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_create_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_create_v1.py new file mode 100644 index 00000000..d9006325 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_create_v1.py @@ -0,0 +1,312 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class InMarketCreateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('buying_power',): { + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", + }, + ('gender',): { + 'MALE': "Male", + 'FEMALE': "Female", + }, + ('price_range',): { + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + }, + } + + validations = { + ('buying_power',): { + }, + ('interest_ids',): { + }, + ('brand_ids',): { + }, + ('price_range',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'country': (str,), # noqa: E501 + 'buying_power': ([str],), # noqa: E501 + 'gender': (str,), # noqa: E501 + 'interest_ids': ([str],), # noqa: E501 + 'brand_ids': ([str],), # noqa: E501 + 'price_range': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'country': 'country', # noqa: E501 + 'buying_power': 'buyingPower', # noqa: E501 + 'gender': 'gender', # noqa: E501 + 'interest_ids': 'interestIds', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'price_range': 'priceRange', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, country, *args, **kwargs): # noqa: E501 + """InMarketCreateV1 - a model defined in OpenAPI + + Args: + country (str): Reach people of a specific country + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.country = country + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, country, *args, **kwargs): # noqa: E501 + """InMarketCreateV1 - a model defined in OpenAPI + + Args: + country (str): Reach people of a specific country + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.country = country + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_size_estimation_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_size_estimation_v1.py new file mode 100644 index 00000000..62f32034 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_size_estimation_v1.py @@ -0,0 +1,312 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class InMarketSizeEstimationV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('buying_power',): { + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", + }, + ('gender',): { + 'MALE': "Male", + 'FEMALE': "Female", + }, + ('price_range',): { + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + }, + } + + validations = { + ('buying_power',): { + }, + ('interest_ids',): { + }, + ('brand_ids',): { + }, + ('price_range',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'country': (str,), # noqa: E501 + 'buying_power': ([str],), # noqa: E501 + 'gender': (str,), # noqa: E501 + 'interest_ids': ([str],), # noqa: E501 + 'brand_ids': ([str],), # noqa: E501 + 'price_range': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'country': 'country', # noqa: E501 + 'buying_power': 'buyingPower', # noqa: E501 + 'gender': 'gender', # noqa: E501 + 'interest_ids': 'interestIds', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'price_range': 'priceRange', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, country, *args, **kwargs): # noqa: E501 + """InMarketSizeEstimationV1 - a model defined in OpenAPI + + Args: + country (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + buying_power ([str]): [optional] # noqa: E501 + gender (str): [optional] # noqa: E501 + interest_ids ([str]): [optional] # noqa: E501 + brand_ids ([str]): [optional] # noqa: E501 + price_range ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.country = country + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, country, *args, **kwargs): # noqa: E501 + """InMarketSizeEstimationV1 - a model defined in OpenAPI + + Args: + country (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + buying_power ([str]): [optional] # noqa: E501 + gender (str): [optional] # noqa: E501 + interest_ids ([str]): [optional] # noqa: E501 + brand_ids ([str]): [optional] # noqa: E501 + price_range ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.country = country + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_update_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_update_v1.py new file mode 100644 index 00000000..e77290f9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_update_v1.py @@ -0,0 +1,308 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_gender_v1 import NillableGenderV1 + globals()['NillableGenderV1'] = NillableGenderV1 + + +class InMarketUpdateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('buying_power',): { + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", + }, + ('price_range',): { + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + }, + } + + validations = { + ('buying_power',): { + }, + ('interest_ids',): { + }, + ('brand_ids',): { + }, + ('price_range',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'country': (str,), # noqa: E501 + 'buying_power': ([str],), # noqa: E501 + 'gender': (NillableGenderV1,), # noqa: E501 + 'interest_ids': ([str],), # noqa: E501 + 'brand_ids': ([str],), # noqa: E501 + 'price_range': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'country': 'country', # noqa: E501 + 'buying_power': 'buyingPower', # noqa: E501 + 'gender': 'gender', # noqa: E501 + 'interest_ids': 'interestIds', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'price_range': 'priceRange', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (str): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (NillableGenderV1): [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (str): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (NillableGenderV1): [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_v1.py new file mode 100644 index 00000000..3523588b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/in_market_v1.py @@ -0,0 +1,309 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class InMarketV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('buying_power',): { + 'UNKNOWN': "Unknown", + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + 'VERYHIGH': "VeryHigh", + }, + ('gender',): { + 'UNKNOWN': "Unknown", + 'MALE': "Male", + 'FEMALE': "Female", + }, + ('price_range',): { + 'UNKNOWN': "Unknown", + 'LOW': "Low", + 'MEDIUM': "Medium", + 'HIGH': "High", + }, + } + + validations = { + ('buying_power',): { + }, + ('interest_ids',): { + }, + ('brand_ids',): { + }, + ('price_range',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'country': (str,), # noqa: E501 + 'buying_power': ([str],), # noqa: E501 + 'gender': (str,), # noqa: E501 + 'interest_ids': ([str],), # noqa: E501 + 'brand_ids': ([str],), # noqa: E501 + 'price_range': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'country': 'country', # noqa: E501 + 'buying_power': 'buyingPower', # noqa: E501 + 'gender': 'gender', # noqa: E501 + 'interest_ids': 'interestIds', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'price_range': 'priceRange', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InMarketV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (str): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InMarketV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + country (str): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_create_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_create_v1.py new file mode 100644 index 00000000..d23b7ec0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_create_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.point_of_interest_v1 import PointOfInterestV1 + globals()['PointOfInterestV1'] = PointOfInterestV1 + + +class LocationCreateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'points_of_interest': ([PointOfInterestV1],), # noqa: E501 + 'radius_in_km': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'points_of_interest': 'pointsOfInterest', # noqa: E501 + 'radius_in_km': 'radiusInKm', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 + """LocationCreateV1 - a model defined in OpenAPI + + Args: + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates + radius_in_km (int): The expected maximum distance in kilometers between a user and a point of interest + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 + """LocationCreateV1 - a model defined in OpenAPI + + Args: + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates + radius_in_km (int): The expected maximum distance in kilometers between a user and a point of interest + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_size_estimation_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_size_estimation_v1.py new file mode 100644 index 00000000..f68782dd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_size_estimation_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.point_of_interest_v1 import PointOfInterestV1 + globals()['PointOfInterestV1'] = PointOfInterestV1 + + +class LocationSizeEstimationV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'points_of_interest': ([PointOfInterestV1],), # noqa: E501 + 'radius_in_km': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'points_of_interest': 'pointsOfInterest', # noqa: E501 + 'radius_in_km': 'radiusInKm', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 + """LocationSizeEstimationV1 - a model defined in OpenAPI + + Args: + points_of_interest ([PointOfInterestV1]): + radius_in_km (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 + """LocationSizeEstimationV1 - a model defined in OpenAPI + + Args: + points_of_interest ([PointOfInterestV1]): + radius_in_km (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_update_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_update_v1.py new file mode 100644 index 00000000..e68d31b2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_update_v1.py @@ -0,0 +1,280 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.point_of_interest_v1 import PointOfInterestV1 + globals()['PointOfInterestV1'] = PointOfInterestV1 + + +class LocationUpdateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('registry_type',): { + 'POINTOFINTEREST': "PointOfInterest", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'points_of_interest': ([PointOfInterestV1],), # noqa: E501 + 'radius_in_km': (int,), # noqa: E501 + 'registry_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'points_of_interest': 'pointsOfInterest', # noqa: E501 + 'radius_in_km': 'radiusInKm', # noqa: E501 + 'registry_type': 'registryType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LocationUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int): Radius in kilometers. [optional] # noqa: E501 + registry_type (str): The kind of Location audience. [optional] if omitted the server will use the default value of "PointOfInterest" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LocationUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int): Radius in kilometers. [optional] # noqa: E501 + registry_type (str): The kind of Location audience. [optional] if omitted the server will use the default value of "PointOfInterest" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_v1.py new file mode 100644 index 00000000..68d1066d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/location_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.point_of_interest_v1 import PointOfInterestV1 + globals()['PointOfInterestV1'] = PointOfInterestV1 + + +class LocationV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('registry_type',): { + 'UNKNOWN': "Unknown", + 'POINTOFINTEREST': "PointOfInterest", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'points_of_interest': ([PointOfInterestV1],), # noqa: E501 + 'radius_in_km': (int,), # noqa: E501 + 'registry_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'points_of_interest': 'pointsOfInterest', # noqa: E501 + 'radius_in_km': 'radiusInKm', # noqa: E501 + 'registry_type': 'registryType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LocationV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int): The expected maximum distance in kilometers between a user and a point of interest. [optional] # noqa: E501 + registry_type (str): The kind of Location audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LocationV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 + radius_in_km (int): The expected maximum distance in kilometers between a user and a point of interest. [optional] # noqa: E501 + registry_type (str): The kind of Location audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_create_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_create_v1.py new file mode 100644 index 00000000..b9d9d8d0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_create_v1.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class LookalikeCreateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'seed_segment_id': (str,), # noqa: E501 + 'target_size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'seed_segment_id': 'seedSegmentId', # noqa: E501 + 'target_size': 'targetSize', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, seed_segment_id, *args, **kwargs): # noqa: E501 + """LookalikeCreateV1 - a model defined in OpenAPI + + Args: + seed_segment_id (str): Segment from which the Lookalike segment will be generated + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.seed_segment_id = seed_segment_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, seed_segment_id, *args, **kwargs): # noqa: E501 + """LookalikeCreateV1 - a model defined in OpenAPI + + Args: + seed_segment_id (str): Segment from which the Lookalike segment will be generated + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.seed_segment_id = seed_segment_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_update_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_update_v1.py new file mode 100644 index 00000000..ece04222 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_update_v1.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class LookalikeUpdateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'target_size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'target_size': 'targetSize', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LookalikeUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LookalikeUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_v1.py new file mode 100644 index 00000000..1b1cf2ad --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/lookalike_v1.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class LookalikeV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'seed_segment_id': (str,), # noqa: E501 + 'target_size': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'seed_segment_id': 'seedSegmentId', # noqa: E501 + 'target_size': 'targetSize', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LookalikeV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + seed_segment_id (str): Segment from which the Lookalike segment will be generated. [optional] # noqa: E501 + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LookalikeV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + seed_segment_id (str): Segment from which the Lookalike segment will be generated. [optional] # noqa: E501 + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/modify_audience_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/modify_audience_response.py new file mode 100644 index 00000000..90245984 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/modify_audience_response.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_07.model.contactlist_operation import ContactlistOperation + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + globals()['ContactlistOperation'] = ContactlistOperation + + +class ModifyAudienceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ContactlistOperation,), # noqa: E501 + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, errors, warnings, *args, **kwargs): # noqa: E501 + """ModifyAudienceResponse - a model defined in OpenAPI + + Args: + data (ContactlistOperation): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, errors, warnings, *args, **kwargs): # noqa: E501 + """ModifyAudienceResponse - a model defined in OpenAPI + + Args: + data (ContactlistOperation): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience.py new file mode 100644 index 00000000..4e897418 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.new_audience_attributes import NewAudienceAttributes + globals()['NewAudienceAttributes'] = NewAudienceAttributes + + +class NewAudience(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (NewAudienceAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """NewAudience - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (NewAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """NewAudience - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (NewAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_attributes.py new file mode 100644 index 00000000..54cf13c7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_attributes.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class NewAudienceAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'description': 'description', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + """NewAudienceAttributes - a model defined in OpenAPI + + Args: + name (str): The name of the new audience + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_id (str): The advertiser id to create the audience for. [optional] # noqa: E501 + description (str): The description of the audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, *args, **kwargs): # noqa: E501 + """NewAudienceAttributes - a model defined in OpenAPI + + Args: + name (str): The name of the new audience + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_id (str): The advertiser id to create the audience for. [optional] # noqa: E501 + description (str): The description of the audience. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_request.py new file mode 100644 index 00000000..cfa69364 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.new_audience import NewAudience + globals()['NewAudience'] = NewAudience + + +class NewAudienceRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (NewAudience,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NewAudienceRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (NewAudience): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NewAudienceRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (NewAudience): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_response.py new file mode 100644 index 00000000..e74dd83b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/new_audience_response.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_07.model.basic_audience_definition import BasicAudienceDefinition + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + globals()['BasicAudienceDefinition'] = BasicAudienceDefinition + + +class NewAudienceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (BasicAudienceDefinition,), # noqa: E501 + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, errors, warnings, *args, **kwargs): # noqa: E501 + """NewAudienceResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, errors, warnings, *args, **kwargs): # noqa: E501 + """NewAudienceResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py new file mode 100644 index 00000000..51b58ec2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue + globals()['NillableAdSetTargetingRuleValue'] = NillableAdSetTargetingRuleValue + + +class NillableAdSetTargetingRule(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'value': (NillableAdSetTargetingRuleValue,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + """NillableAdSetTargetingRule - a model defined in OpenAPI + + Args: + value (NillableAdSetTargetingRuleValue): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.value = value + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, value, *args, **kwargs): # noqa: E501 + """NillableAdSetTargetingRule - a model defined in OpenAPI + + Args: + value (NillableAdSetTargetingRuleValue): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.value = value + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py new file mode 100644 index 00000000..25fbd9ce --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_ad_set_targeting_rule_value.py @@ -0,0 +1,330 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_targeting_rule import AdSetTargetingRule + globals()['AdSetTargetingRule'] = AdSetTargetingRule + + +class NillableAdSetTargetingRuleValue(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('operand',): { + 'UNDEFINED': "undefined", + 'IN': "in", + 'NOTIN': "notIn", + }, + } + + validations = { + ('values',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'operand': (str,), # noqa: E501 + 'values': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'operand': 'operand', # noqa: E501 + 'values': 'values', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NillableAdSetTargetingRuleValue - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + operand (str): Operand which states how the values should be applied. [optional] # noqa: E501 + values ([str]): List of values to apply. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NillableAdSetTargetingRuleValue - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + operand (str): Operand which states how the values should be applied. [optional] # noqa: E501 + values ([str]): List of values to apply. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + + for var_name, var_value in kwargs.items(): + if var_name in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + AdSetTargetingRule, + ], + 'oneOf': [ + ], + } diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py new file mode 100644 index 00000000..9b25d757 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_date_time.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class NillableDateTime(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (datetime, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + """NillableDateTime - a model defined in OpenAPI + + Args: + value (datetime, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.value = value + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, value, *args, **kwargs): # noqa: E501 + """NillableDateTime - a model defined in OpenAPI + + Args: + value (datetime, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.value = value + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py new file mode 100644 index 00000000..80514848 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_decimal.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class NillableDecimal(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (float, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, value, *args, **kwargs): # noqa: E501 + """NillableDecimal - a model defined in OpenAPI + + Args: + value (float, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.value = value + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, value, *args, **kwargs): # noqa: E501 + """NillableDecimal - a model defined in OpenAPI + + Args: + value (float, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.value = value + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_gender_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_gender_v1.py new file mode 100644 index 00000000..0fc51064 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_gender_v1.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class NillableGenderV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'MALE': "Male", + 'FEMALE': "Female", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NillableGenderV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (str): The value. If missing or null the value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NillableGenderV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (str): The value. If missing or null the value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_int32.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_int32.py new file mode 100644 index 00000000..6cd7b6d6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_int32.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class NillableInt32(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NillableInt32 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (int): The value. If missing or null the value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NillableInt32 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (int): The value. If missing or null the value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_string.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_string.py new file mode 100644 index 00000000..0ceb209b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/nillable_string.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class NillableString(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NillableString - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (str): The string's value. If missing or null the string's value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NillableString - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (str): The string's value. If missing or null the string's value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py new file mode 100644 index 00000000..f95c574a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_targeting import AdSetTargeting + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_bidding import PatchAdSetBidding + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_budget import PatchAdSetBudget + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_scheduling import PatchAdSetScheduling + globals()['AdSetTargeting'] = AdSetTargeting + globals()['PatchAdSetBidding'] = PatchAdSetBidding + globals()['PatchAdSetBudget'] = PatchAdSetBudget + globals()['PatchAdSetScheduling'] = PatchAdSetScheduling + + +class PatchAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'scheduling': (PatchAdSetScheduling,), # noqa: E501 + 'bidding': (PatchAdSetBidding,), # noqa: E501 + 'targeting': (AdSetTargeting,), # noqa: E501 + 'budget': (PatchAdSetBudget,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'scheduling': 'scheduling', # noqa: E501 + 'bidding': 'bidding', # noqa: E501 + 'targeting': 'targeting', # noqa: E501 + 'budget': 'budget', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the ad set. [optional] # noqa: E501 + scheduling (PatchAdSetScheduling): [optional] # noqa: E501 + bidding (PatchAdSetBidding): [optional] # noqa: E501 + targeting (AdSetTargeting): [optional] # noqa: E501 + budget (PatchAdSetBudget): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the ad set. [optional] # noqa: E501 + scheduling (PatchAdSetScheduling): [optional] # noqa: E501 + bidding (PatchAdSetBidding): [optional] # noqa: E501 + targeting (AdSetTargeting): [optional] # noqa: E501 + budget (PatchAdSetBudget): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_bidding.py new file mode 100644 index 00000000..96f7afb9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_bidding.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class PatchAdSetBidding(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'bid_amount': (NillableDecimal,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'bid_amount': 'bidAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetBidding - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetBidding - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py new file mode 100644 index 00000000..f8f6fb40 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_budget.py @@ -0,0 +1,309 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class PatchAdSetBudget(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('budget_strategy',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('budget_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + ('budget_delivery_smoothing',): { + 'ACCELERATED': "accelerated", + 'STANDARD': "standard", + }, + ('budget_delivery_week',): { + 'UNDEFINED': "undefined", + 'MONDAYTOSUNDAY': "mondayToSunday", + 'TUESDAYTOMONDAY': "tuesdayToMonday", + 'WEDNESDAYTOTUESDAY': "wednesdayToTuesday", + 'THURSDAYTOWEDNESDAY': "thursdayToWednesday", + 'FRIDAYTOTHURSDAY': "fridayToThursday", + 'SATURDAYTOFRIDAY': "saturdayToFriday", + 'SUNDAYTOSATURDAY': "sundayToSaturday", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'budget_strategy': (str,), # noqa: E501 + 'budget_renewal': (str,), # noqa: E501 + 'budget_delivery_smoothing': (str,), # noqa: E501 + 'budget_delivery_week': (str,), # noqa: E501 + 'budget_amount': (NillableDecimal,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'budget_strategy': 'budgetStrategy', # noqa: E501 + 'budget_renewal': 'budgetRenewal', # noqa: E501 + 'budget_delivery_smoothing': 'budgetDeliverySmoothing', # noqa: E501 + 'budget_delivery_week': 'budgetDeliveryWeek', # noqa: E501 + 'budget_amount': 'budgetAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetBudget - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget_strategy (str): Whether your budget is capped or not. [optional] # noqa: E501 + budget_renewal (str): The pace of the budget renewal. [optional] # noqa: E501 + budget_delivery_smoothing (str): The pace at which the budget can be spent. [optional] # noqa: E501 + budget_delivery_week (str): The delivery week for the budget. [optional] # noqa: E501 + budget_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetBudget - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget_strategy (str): Whether your budget is capped or not. [optional] # noqa: E501 + budget_renewal (str): The pace of the budget renewal. [optional] # noqa: E501 + budget_delivery_smoothing (str): The pace at which the budget can be spent. [optional] # noqa: E501 + budget_delivery_week (str): The delivery week for the budget. [optional] # noqa: E501 + budget_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid.py new file mode 100644 index 00000000..ee4cb3a4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PatchAdSetCategoryBid(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'bid_amount': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'bid_amount': 'bidAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBid - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (float): The Bid amount applied to the given Category associated to an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBid - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (float): The Bid amount applied to the given Category associated to an Ad Set. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py new file mode 100644 index 00000000..77676d35 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_list_request.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource + globals()['PatchAdSetCategoryBidResource'] = PatchAdSetCategoryBidResource + + +class PatchAdSetCategoryBidListRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PatchAdSetCategoryBidResource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetCategoryBidResource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetCategoryBidResource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_resource.py new file mode 100644 index 00000000..ce857947 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid + globals()['PatchAdSetCategoryBid'] = PatchAdSetCategoryBid + + +class PatchAdSetCategoryBidResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (PatchAdSetCategoryBid,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (PatchAdSetCategoryBid): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (PatchAdSetCategoryBid): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py new file mode 100644 index 00000000..071cec7f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['PatchAdSetCategoryBidResultResource'] = PatchAdSetCategoryBidResultResource + globals()['ProblemDetails'] = ProblemDetails + + +class PatchAdSetCategoryBidResultListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PatchAdSetCategoryBidResultResource],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidResultListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetCategoryBidResultResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidResultListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetCategoryBidResultResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_resource.py new file mode 100644 index 00000000..522a57a7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_category_bid_result_resource.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PatchAdSetCategoryBidResultResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidResultResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetCategoryBidResultResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier.py new file mode 100644 index 00000000..00a237b2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PatchAdSetDisplayMultiplier(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'display_multiplier': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'display_multiplier': 'displayMultiplier', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplier - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + display_multiplier (float): Any positive decimal value. To remove the impact of the Display Multiplier set it to 1. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplier - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + display_multiplier (float): Any positive decimal value. To remove the impact of the Display Multiplier set it to 1. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py new file mode 100644 index 00000000..5a04286c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_list_request.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource + globals()['PatchAdSetDisplayMultiplierResource'] = PatchAdSetDisplayMultiplierResource + + +class PatchAdSetDisplayMultiplierListRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PatchAdSetDisplayMultiplierResource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetDisplayMultiplierResource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetDisplayMultiplierResource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_resource.py new file mode 100644 index 00000000..b7d2409e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier + globals()['PatchAdSetDisplayMultiplier'] = PatchAdSetDisplayMultiplier + + +class PatchAdSetDisplayMultiplierResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (PatchAdSetDisplayMultiplier,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (PatchAdSetDisplayMultiplier): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (PatchAdSetDisplayMultiplier): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py new file mode 100644 index 00000000..f3a6f8e9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['PatchAdSetDisplayMultiplierResultResource'] = PatchAdSetDisplayMultiplierResultResource + globals()['ProblemDetails'] = ProblemDetails + + +class PatchAdSetDisplayMultiplierResultListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PatchAdSetDisplayMultiplierResultResource],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierResultListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetDisplayMultiplierResultResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierResultListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchAdSetDisplayMultiplierResultResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_resource.py new file mode 100644 index 00000000..5d62dadc --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_display_multiplier_result_resource.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PatchAdSetDisplayMultiplierResultResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierResultResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetDisplayMultiplierResultResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_scheduling.py new file mode 100644 index 00000000..8db9ad34 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_ad_set_scheduling.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_date_time import NillableDateTime + globals()['NillableDateTime'] = NillableDateTime + + +class PatchAdSetScheduling(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'start_date': (NillableDateTime,), # noqa: E501 + 'end_date': (NillableDateTime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchAdSetScheduling - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + start_date (NillableDateTime): [optional] # noqa: E501 + end_date (NillableDateTime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchAdSetScheduling - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + start_date (NillableDateTime): [optional] # noqa: E501 + end_date (NillableDateTime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign.py new file mode 100644 index 00000000..eccae0bc --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_spend_limit import PatchCampaignSpendLimit + globals()['PatchCampaignSpendLimit'] = PatchCampaignSpendLimit + + +class PatchCampaign(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'spend_limit': (PatchCampaignSpendLimit,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'spend_limit': 'spendLimit', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchCampaign - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit (PatchCampaignSpendLimit): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchCampaign - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit (PatchCampaignSpendLimit): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py new file mode 100644 index 00000000..873ba604 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_list_request.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_write_resource import PatchCampaignWriteResource + globals()['PatchCampaignWriteResource'] = PatchCampaignWriteResource + + +class PatchCampaignListRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PatchCampaignWriteResource],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchCampaignListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchCampaignWriteResource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchCampaignListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchCampaignWriteResource]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py new file mode 100644 index 00000000..75d760c0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_spend_limit.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class PatchCampaignSpendLimit(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('spend_limit_type',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('spend_limit_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'spend_limit_type': (str,), # noqa: E501 + 'spend_limit_renewal': (str,), # noqa: E501 + 'spend_limit_amount': (NillableDecimal,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'spend_limit_type': 'spendLimitType', # noqa: E501 + 'spend_limit_renewal': 'spendLimitRenewal', # noqa: E501 + 'spend_limit_amount': 'spendLimitAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchCampaignSpendLimit - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchCampaignSpendLimit - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 + spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 + spend_limit_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_write_resource.py new file mode 100644 index 00000000..3e3ef00f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_campaign_write_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_campaign import PatchCampaign + globals()['PatchCampaign'] = PatchCampaign + + +class PatchCampaignWriteResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (PatchCampaign,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchCampaignWriteResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (PatchCampaign): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchCampaignWriteResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (PatchCampaign): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py new file mode 100644 index 00000000..85341511 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_list_response.py @@ -0,0 +1,288 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['PatchResultCampaignReadResource'] = PatchResultCampaignReadResource + globals()['ProblemDetails'] = ProblemDetails + + +class PatchResultCampaignListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PatchResultCampaignReadResource],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'data', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchResultCampaignListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchResultCampaignReadResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchResultCampaignListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([PatchResultCampaignReadResource]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_read_resource.py new file mode 100644 index 00000000..bea63c68 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/patch_result_campaign_read_resource.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PatchResultCampaignReadResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + 'type', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PatchResultCampaignReadResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PatchResultCampaignReadResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py new file mode 100644 index 00000000..eecd807d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_data_message.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage + globals()['PlacementsReportQueryEntityMessage'] = PlacementsReportQueryEntityMessage + + +class PlacementsReportQueryDataMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([PlacementsReportQueryEntityMessage],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryDataMessage - a model defined in OpenAPI + + Args: + data ([PlacementsReportQueryEntityMessage]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryDataMessage - a model defined in OpenAPI + + Args: + data ([PlacementsReportQueryEntityMessage]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py new file mode 100644 index 00000000..58481c47 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_entity_message.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message import PlacementsReportQueryMessage + globals()['PlacementsReportQueryMessage'] = PlacementsReportQueryMessage + + +class PlacementsReportQueryEntityMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (PlacementsReportQueryMessage,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryEntityMessage - a model defined in OpenAPI + + Args: + type (str): + attributes (PlacementsReportQueryMessage): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryEntityMessage - a model defined in OpenAPI + + Args: + type (str): + attributes (PlacementsReportQueryMessage): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py new file mode 100644 index 00000000..1198b9ba --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/placements_report_query_message.py @@ -0,0 +1,343 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PlacementsReportQueryMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('dimensions',): { + 'ADSETID': "AdsetId", + 'ADVERTISERID': "AdvertiserId", + 'PLACEMENT': "Placement", + 'ENVIRONMENT': "Environment", + 'ADSETNAME': "AdsetName", + 'ADVERTISERNAME': "AdvertiserName", + 'CAMPAIGNID': "CampaignId", + 'CAMPAIGNNAME': "CampaignName", + }, + } + + validations = { + ('dimensions',): { + }, + ('metrics',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'advertiser_ids': (str,), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'campaign_ids': (str,), # noqa: E501 + 'adset_ids': (str,), # noqa: E501 + 'environment': (str,), # noqa: E501 + 'placement': (str,), # noqa: E501 + 'disclosed': (bool,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'format': 'format', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'campaign_ids': 'campaignIds', # noqa: E501 + 'adset_ids': 'adsetIds', # noqa: E501 + 'environment': 'environment', # noqa: E501 + 'placement': 'placement', # noqa: E501 + 'disclosed': 'disclosed', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, advertiser_ids, dimensions, metrics, currency, format, start_date, end_date, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessage - a model defined in OpenAPI + + Args: + advertiser_ids (str): The comma-separated list of advertiser ids. + dimensions ([str]): The dimensions for the report. + metrics ([str]): The list of metrics to report. + currency (str): The currency used for the report. ISO 4217 code (three-letter capitals). + format (str): The file format of the generated report: csv, xml, excel or json. + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_ids (str): The comma-separated list of campaign ids.. [optional] # noqa: E501 + adset_ids (str): The comma-separated list of adSet ids.. [optional] # noqa: E501 + environment (str): Type of environment: Web, Android or iOS.. [optional] # noqa: E501 + placement (str): Filter the value of the placement. [optional] # noqa: E501 + disclosed (bool): Returns disclosed or undisclosed placements.. [optional] if omitted the server will use the default value of True # noqa: E501 + timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_ids = advertiser_ids + self.dimensions = dimensions + self.metrics = metrics + self.currency = currency + self.format = format + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, advertiser_ids, dimensions, metrics, currency, format, start_date, end_date, *args, **kwargs): # noqa: E501 + """PlacementsReportQueryMessage - a model defined in OpenAPI + + Args: + advertiser_ids (str): The comma-separated list of advertiser ids. + dimensions ([str]): The dimensions for the report. + metrics ([str]): The list of metrics to report. + currency (str): The currency used for the report. ISO 4217 code (three-letter capitals). + format (str): The file format of the generated report: csv, xml, excel or json. + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_ids (str): The comma-separated list of campaign ids.. [optional] # noqa: E501 + adset_ids (str): The comma-separated list of adSet ids.. [optional] # noqa: E501 + environment (str): Type of environment: Web, Android or iOS.. [optional] # noqa: E501 + placement (str): Filter the value of the placement. [optional] # noqa: E501 + disclosed (bool): Returns disclosed or undisclosed placements.. [optional] if omitted the server will use the default value of True # noqa: E501 + timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_ids = advertiser_ids + self.dimensions = dimensions + self.metrics = metrics + self.currency = currency + self.format = format + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/point_of_interest_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/point_of_interest_v1.py new file mode 100644 index 00000000..84530714 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/point_of_interest_v1.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PointOfInterestV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'latitude': (float,), # noqa: E501 + 'longitude': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'latitude': 'latitude', # noqa: E501 + 'longitude': 'longitude', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PointOfInterestV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the point of interest. [optional] # noqa: E501 + latitude (float): ISO-6709 latitude (rounded at 5 decimals). [optional] # noqa: E501 + longitude (float): ISO-6709 longitude (rounded at 5 decimals). [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PointOfInterestV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the point of interest. [optional] # noqa: E501 + latitude (float): ISO-6709 latitude (rounded at 5 decimals). [optional] # noqa: E501 + longitude (float): ISO-6709 longitude (rounded at 5 decimals). [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/portfolio_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/portfolio_message.py new file mode 100644 index 00000000..6cc36960 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/portfolio_message.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class PortfolioMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'advertiser_name': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'advertiser_name': 'advertiserName', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PortfolioMessage - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_name (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PortfolioMessage - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_name (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py new file mode 100644 index 00000000..d31ca175 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problem_details.py @@ -0,0 +1,305 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ProblemDetails(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_id': (str,), # noqa: E501 + 'trace_identifier': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_id': 'traceId', # noqa: E501 + 'trace_identifier': 'traceIdentifier', # noqa: E501 + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProblemDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + code (str): [optional] # noqa: E501 + instance (str): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + detail (str): [optional] # noqa: E501 + source ({str: (str,)}): [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProblemDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + code (str): [optional] # noqa: E501 + instance (str): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + detail (str): [optional] # noqa: E501 + source ({str: (str,)}): [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py new file mode 100644 index 00000000..e9b43521 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/problems_details.py @@ -0,0 +1,272 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + globals()['ProblemDetails'] = ProblemDetails + + +class ProblemsDetails(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProblemsDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProblemsDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_create_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_create_v1.py new file mode 100644 index 00000000..2f6239a0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_create_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ProspectingCreateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('users_type',): { + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'users_type': (str,), # noqa: E501 + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'users_type': 'usersType', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, users_type, *args, **kwargs): # noqa: E501 + """ProspectingCreateV1 - a model defined in OpenAPI + + Args: + users_type (str): Type of users to target + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.users_type = users_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, users_type, *args, **kwargs): # noqa: E501 + """ProspectingCreateV1 - a model defined in OpenAPI + + Args: + users_type (str): Type of users to target + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.users_type = users_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_update_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_update_v1.py new file mode 100644 index 00000000..e09f8963 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_update_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_int32 import NillableInt32 + globals()['NillableInt32'] = NillableInt32 + + +class ProspectingUpdateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('users_type',): { + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'days_since_last_visit_min': (NillableInt32,), # noqa: E501 + 'days_since_last_visit_max': (NillableInt32,), # noqa: E501 + 'users_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + 'users_type': 'usersType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProspectingUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (NillableInt32): [optional] # noqa: E501 + days_since_last_visit_max (NillableInt32): [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProspectingUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (NillableInt32): [optional] # noqa: E501 + days_since_last_visit_max (NillableInt32): [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_v1.py new file mode 100644 index 00000000..75f3ebea --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/prospecting_v1.py @@ -0,0 +1,276 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ProspectingV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('users_type',): { + 'UNKNOWN': "Unknown", + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + 'users_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + 'users_type': 'usersType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProspectingV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProspectingV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py new file mode 100644 index 00000000..30e25179 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set.py @@ -0,0 +1,320 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_targeting import AdSetTargeting + from criteo_api_marketingsolutions_v2023_07.model.read_ad_set_bidding import ReadAdSetBidding + from criteo_api_marketingsolutions_v2023_07.model.read_ad_set_budget import ReadAdSetBudget + from criteo_api_marketingsolutions_v2023_07.model.read_ad_set_schedule import ReadAdSetSchedule + globals()['AdSetTargeting'] = AdSetTargeting + globals()['ReadAdSetBidding'] = ReadAdSetBidding + globals()['ReadAdSetBudget'] = ReadAdSetBudget + globals()['ReadAdSetSchedule'] = ReadAdSetSchedule + + +class ReadAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('destination_environment',): { + 'UNDEFINED': "undefined", + 'WEB': "web", + 'APP': "app", + }, + ('media_type',): { + 'DISPLAY': "display", + 'VIDEO': "video", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'advertiser_id': (str,), # noqa: E501 + 'dataset_id': (str,), # noqa: E501 + 'campaign_id': (str,), # noqa: E501 + 'destination_environment': (str,), # noqa: E501 + 'schedule': (ReadAdSetSchedule,), # noqa: E501 + 'bidding': (ReadAdSetBidding,), # noqa: E501 + 'targeting': (AdSetTargeting,), # noqa: E501 + 'budget': (ReadAdSetBudget,), # noqa: E501 + 'media_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'advertiser_id': 'advertiserId', # noqa: E501 + 'dataset_id': 'datasetId', # noqa: E501 + 'campaign_id': 'campaignId', # noqa: E501 + 'destination_environment': 'destinationEnvironment', # noqa: E501 + 'schedule': 'schedule', # noqa: E501 + 'bidding': 'bidding', # noqa: E501 + 'targeting': 'targeting', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'media_type': 'mediaType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the ad set. [optional] # noqa: E501 + advertiser_id (str): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 + dataset_id (str): Dataset id of this ad set. [optional] # noqa: E501 + campaign_id (str): Campaign id this ad set belongs to. [optional] # noqa: E501 + destination_environment (str): The environment that an ad click will lead a user to. [optional] # noqa: E501 + schedule (ReadAdSetSchedule): [optional] # noqa: E501 + bidding (ReadAdSetBidding): [optional] # noqa: E501 + targeting (AdSetTargeting): [optional] # noqa: E501 + budget (ReadAdSetBudget): [optional] # noqa: E501 + media_type (str): Media type for the ad set. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the ad set. [optional] # noqa: E501 + advertiser_id (str): Advertiser id of the campaign this ad set belongs to. [optional] # noqa: E501 + dataset_id (str): Dataset id of this ad set. [optional] # noqa: E501 + campaign_id (str): Campaign id this ad set belongs to. [optional] # noqa: E501 + destination_environment (str): The environment that an ad click will lead a user to. [optional] # noqa: E501 + schedule (ReadAdSetSchedule): [optional] # noqa: E501 + bidding (ReadAdSetBidding): [optional] # noqa: E501 + targeting (AdSetTargeting): [optional] # noqa: E501 + budget (ReadAdSetBudget): [optional] # noqa: E501 + media_type (str): Media type for the ad set. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_bidding.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_bidding.py new file mode 100644 index 00000000..7a115ee4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_bidding.py @@ -0,0 +1,300 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class ReadAdSetBidding(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('bid_strategy',): { + 'ACTIONS': "actions", + 'CLICKS': "clicks", + 'CONVERSIONS': "conversions", + 'DISPLAYS': "displays", + 'INSTALLS': "installs", + 'REVENUE': "revenue", + 'STORECONVERSIONS': "storeConversions", + 'VALUE': "value", + 'VIEWEDIMPRESSIONS': "viewedImpressions", + 'VISITS': "Visits", + 'COMPLETEDVIDEOVIEWS': "completedVideoViews", + }, + ('cost_controller',): { + 'COS': "COS", + 'CPC': "CPC", + 'CPI': "CPI", + 'CPM': "CPM", + 'CPO': "CPO", + 'CPSV': "CPSV", + 'CPV': "CPV", + 'DAILYBUDGET': "dailyBudget", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'bid_amount': (NillableDecimal,), # noqa: E501 + 'bid_strategy': (str,), # noqa: E501 + 'cost_controller': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'bid_amount': 'bidAmount', # noqa: E501 + 'bid_strategy': 'bidStrategy', # noqa: E501 + 'cost_controller': 'costController', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReadAdSetBidding - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (NillableDecimal): [optional] # noqa: E501 + bid_strategy (str): The intended optimization for the Ad Set. [optional] # noqa: E501 + cost_controller (str): How spend is controlled. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReadAdSetBidding - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_amount (NillableDecimal): [optional] # noqa: E501 + bid_strategy (str): The intended optimization for the Ad Set. [optional] # noqa: E501 + cost_controller (str): How spend is controlled. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py new file mode 100644 index 00000000..d125b478 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_budget.py @@ -0,0 +1,309 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal + globals()['NillableDecimal'] = NillableDecimal + + +class ReadAdSetBudget(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('budget_strategy',): { + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('budget_renewal',): { + 'UNDEFINED': "undefined", + 'DAILY': "daily", + 'MONTHLY': "monthly", + 'LIFETIME': "lifetime", + }, + ('budget_delivery_smoothing',): { + 'ACCELERATED': "accelerated", + 'STANDARD': "standard", + }, + ('budget_delivery_week',): { + 'UNDEFINED': "undefined", + 'MONDAYTOSUNDAY': "mondayToSunday", + 'TUESDAYTOMONDAY': "tuesdayToMonday", + 'WEDNESDAYTOTUESDAY': "wednesdayToTuesday", + 'THURSDAYTOWEDNESDAY': "thursdayToWednesday", + 'FRIDAYTOTHURSDAY': "fridayToThursday", + 'SATURDAYTOFRIDAY': "saturdayToFriday", + 'SUNDAYTOSATURDAY': "sundayToSaturday", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'budget_strategy': (str,), # noqa: E501 + 'budget_renewal': (str,), # noqa: E501 + 'budget_delivery_smoothing': (str,), # noqa: E501 + 'budget_delivery_week': (str,), # noqa: E501 + 'budget_amount': (NillableDecimal,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'budget_strategy': 'budgetStrategy', # noqa: E501 + 'budget_renewal': 'budgetRenewal', # noqa: E501 + 'budget_delivery_smoothing': 'budgetDeliverySmoothing', # noqa: E501 + 'budget_delivery_week': 'budgetDeliveryWeek', # noqa: E501 + 'budget_amount': 'budgetAmount', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReadAdSetBudget - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget_strategy (str): Whether your budget is capped or not. [optional] # noqa: E501 + budget_renewal (str): The pace of the budget renewal. [optional] # noqa: E501 + budget_delivery_smoothing (str): The pace at which the budget can be spent. [optional] # noqa: E501 + budget_delivery_week (str): The delivery week for the budget. [optional] # noqa: E501 + budget_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReadAdSetBudget - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget_strategy (str): Whether your budget is capped or not. [optional] # noqa: E501 + budget_renewal (str): The pace of the budget renewal. [optional] # noqa: E501 + budget_delivery_smoothing (str): The pace at which the budget can be spent. [optional] # noqa: E501 + budget_delivery_week (str): The delivery week for the budget. [optional] # noqa: E501 + budget_amount (NillableDecimal): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py new file mode 100644 index 00000000..d05ca4de --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_ad_set_schedule.py @@ -0,0 +1,297 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.nillable_date_time import NillableDateTime + globals()['NillableDateTime'] = NillableDateTime + + +class ReadAdSetSchedule(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('activation_status',): { + 'ON': "on", + 'OFF': "off", + }, + ('delivery_status',): { + 'DRAFT': "draft", + 'INACTIVE': "inactive", + 'LIVE': "live", + 'NOTLIVE': "notLive", + 'PAUSING': "pausing", + 'PAUSED': "paused", + 'SCHEDULED': "scheduled", + 'ENDED': "ended", + 'NOTDELIVERING': "notDelivering", + 'ARCHIVED': "archived", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'start_date': (NillableDateTime,), # noqa: E501 + 'end_date': (NillableDateTime,), # noqa: E501 + 'activation_status': (str,), # noqa: E501 + 'delivery_status': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'activation_status': 'activationStatus', # noqa: E501 + 'delivery_status': 'deliveryStatus', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReadAdSetSchedule - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + start_date (NillableDateTime): [optional] # noqa: E501 + end_date (NillableDateTime): [optional] # noqa: E501 + activation_status (str): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 + delivery_status (str): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReadAdSetSchedule - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + start_date (NillableDateTime): [optional] # noqa: E501 + end_date (NillableDateTime): [optional] # noqa: E501 + activation_status (str): Activation status of the ad set, i.e. whether the consumer wants it to deliver. [optional] # noqa: E501 + delivery_status (str): Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_ad_set_id.py new file mode 100644 index 00000000..81760c50 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_ad_set_id.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class ReadModelAdSetId(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + 'type', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReadModelAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReadModelAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_read_ad_set.py new file mode 100644 index 00000000..eb99158d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/read_model_read_ad_set.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.read_ad_set import ReadAdSet + globals()['ReadAdSet'] = ReadAdSet + + +class ReadModelReadAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ReadAdSet,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + 'type', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReadModelReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + attributes (ReadAdSet): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReadModelReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + attributes (ReadAdSet): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience.py new file mode 100644 index 00000000..6d6cbfd1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_name_description import AudienceNameDescription + globals()['AudienceNameDescription'] = AudienceNameDescription + + +class ReplaceAudience(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AudienceNameDescription,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """ReplaceAudience - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (AudienceNameDescription): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """ReplaceAudience - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (AudienceNameDescription): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_status.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_request.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_status.py rename to sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_request.py index d5f29632..1bb1cd13 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/envelope_report_status.py +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_request.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,15 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError def lazy_import(): - from criteo_api_retailmedia_preview.model.report_status import ReportStatus - globals()['ReportStatus'] = ReportStatus + from criteo_api_marketingsolutions_v2023_07.model.replace_audience import ReplaceAudience + globals()['ReplaceAudience'] = ReplaceAudience -class EnvelopeReportStatus(ModelNormal): +class ReplaceAudienceRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'data': (ReportStatus,), # noqa: E501 + 'data': (ReplaceAudience,), # noqa: E501 } @cached_property @@ -107,10 +107,10 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """EnvelopeReportStatus - a model defined in OpenAPI + """ReplaceAudienceRequest - a model defined in OpenAPI Args: - data (ReportStatus): + data (ReplaceAudience): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,10 +196,10 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, data, *args, **kwargs): # noqa: E501 - """EnvelopeReportStatus - a model defined in OpenAPI + """ReplaceAudienceRequest - a model defined in OpenAPI Args: - data (ReportStatus): + data (ReplaceAudience): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_response.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_response.py new file mode 100644 index 00000000..7f578fb2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/replace_audience_response.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError + from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning + from criteo_api_marketingsolutions_v2023_07.model.basic_audience_definition import BasicAudienceDefinition + globals()['AudienceError'] = AudienceError + globals()['AudienceWarning'] = AudienceWarning + globals()['BasicAudienceDefinition'] = BasicAudienceDefinition + + +class ReplaceAudienceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (BasicAudienceDefinition,), # noqa: E501 + 'errors': ([AudienceError],), # noqa: E501 + 'warnings': ([AudienceWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, errors, warnings, *args, **kwargs): # noqa: E501 + """ReplaceAudienceResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, errors, warnings, *args, **kwargs): # noqa: E501 + """ReplaceAudienceResponse - a model defined in OpenAPI + + Args: + data (BasicAudienceDefinition): + errors ([AudienceError]): + warnings ([AudienceWarning]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.errors = errors + self.warnings = warnings + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/request_ad_set_search.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/request_ad_set_search.py new file mode 100644 index 00000000..35127374 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/request_ad_set_search.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.ad_set_search_filter import AdSetSearchFilter + globals()['AdSetSearchFilter'] = AdSetSearchFilter + + +class RequestAdSetSearch(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'filters': (AdSetSearchFilter,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'filters': 'filters', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RequestAdSetSearch - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + filters (AdSetSearchFilter): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RequestAdSetSearch - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + filters (AdSetSearchFilter): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py new file mode 100644 index 00000000..94bbfff6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_ad_set_id.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.write_model_ad_set_id import WriteModelAdSetId + globals()['WriteModelAdSetId'] = WriteModelAdSetId + + +class RequestsAdSetId(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([WriteModelAdSetId],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RequestsAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([WriteModelAdSetId]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RequestsAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([WriteModelAdSetId]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py new file mode 100644 index 00000000..4ab5ff70 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/requests_patch_ad_set.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.write_model_patch_ad_set import WriteModelPatchAdSet + globals()['WriteModelPatchAdSet'] = WriteModelPatchAdSet + + +class RequestsPatchAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([WriteModelPatchAdSet],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RequestsPatchAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([WriteModelPatchAdSet]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RequestsPatchAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([WriteModelPatchAdSet]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py new file mode 100644 index 00000000..ee0f5231 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_ad_set_id.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.read_model_ad_set_id import ReadModelAdSetId + globals()['ProblemDetails'] = ProblemDetails + globals()['ReadModelAdSetId'] = ReadModelAdSetId + + +class ResponseAdSetId(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ReadModelAdSetId,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResponseAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ReadModelAdSetId): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResponseAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ReadModelAdSetId): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py new file mode 100644 index 00000000..408ebce4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/response_read_ad_set.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.read_model_read_ad_set import ReadModelReadAdSet + globals()['ProblemDetails'] = ProblemDetails + globals()['ReadModelReadAdSet'] = ReadModelReadAdSet + + +class ResponseReadAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ReadModelReadAdSet,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResponseReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ReadModelReadAdSet): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResponseReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ReadModelReadAdSet): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py new file mode 100644 index 00000000..3f62eaaa --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_ad_set_id.py @@ -0,0 +1,288 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.read_model_ad_set_id import ReadModelAdSetId + globals()['ProblemDetails'] = ProblemDetails + globals()['ReadModelAdSetId'] = ReadModelAdSetId + + +class ResponsesAdSetId(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ReadModelAdSetId],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'data', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResponsesAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ReadModelAdSetId]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResponsesAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ReadModelAdSetId]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py new file mode 100644 index 00000000..adbeeaee --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/responses_read_ad_set.py @@ -0,0 +1,288 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails + from criteo_api_marketingsolutions_v2023_07.model.read_model_read_ad_set import ReadModelReadAdSet + globals()['ProblemDetails'] = ProblemDetails + globals()['ReadModelReadAdSet'] = ReadModelReadAdSet + + +class ResponsesReadAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ReadModelReadAdSet],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'data', # noqa: E501 + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResponsesReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ReadModelReadAdSet]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResponsesReadAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ReadModelReadAdSet]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_create_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_create_v1.py new file mode 100644 index 00000000..1c3eb93c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_create_v1.py @@ -0,0 +1,286 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class RetargetingCreateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('visitors_type',): { + 'ALL': "All", + 'BUYERS': "Buyers", + 'NONBUYERS': "NonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'visitors_type': (str,), # noqa: E501 + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'visitors_type': 'visitorsType', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, visitors_type, days_since_last_visit_min, days_since_last_visit_max, *args, **kwargs): # noqa: E501 + """RetargetingCreateV1 - a model defined in OpenAPI + + Args: + visitors_type (str): Types of visitors. + days_since_last_visit_min (int): Minimum number of days since last visit to partner. + days_since_last_visit_max (int): Maximum number of days since last visit to partner. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.visitors_type = visitors_type + self.days_since_last_visit_min = days_since_last_visit_min + self.days_since_last_visit_max = days_since_last_visit_max + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, visitors_type, days_since_last_visit_min, days_since_last_visit_max, *args, **kwargs): # noqa: E501 + """RetargetingCreateV1 - a model defined in OpenAPI + + Args: + visitors_type (str): Types of visitors. + days_since_last_visit_min (int): Minimum number of days since last visit to partner. + days_since_last_visit_max (int): Maximum number of days since last visit to partner. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.visitors_type = visitors_type + self.days_since_last_visit_min = days_since_last_visit_min + self.days_since_last_visit_max = days_since_last_visit_max + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_update_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_update_v1.py new file mode 100644 index 00000000..41ca123c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_update_v1.py @@ -0,0 +1,276 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class RetargetingUpdateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('visitors_type',): { + 'ALL': "All", + 'BUYERS': "Buyers", + 'NONBUYERS': "NonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'visitors_type': (str,), # noqa: E501 + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'visitors_type': 'visitorsType', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetargetingUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetargetingUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_v1.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_v1.py new file mode 100644 index 00000000..561717df --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/retargeting_v1.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class RetargetingV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('visitors_type',): { + 'UNKNOWN': "Unknown", + 'ALL': "All", + 'BUYERS': "Buyers", + 'NONBUYERS': "NonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'visitors_type': (str,), # noqa: E501 + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'visitors_type': 'visitorsType', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetargetingV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetargetingV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/size.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/size.py new file mode 100644 index 00000000..29dcd32a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/size.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class Size(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'width': (int,), # noqa: E501 + 'height': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'width': 'width', # noqa: E501 + 'height': 'height', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Size - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + width (int): [optional] # noqa: E501 + height (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Size - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + width (int): [optional] # noqa: E501 + height (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py new file mode 100644 index 00000000..6bdb3400 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/statistics_report_query_message.py @@ -0,0 +1,355 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class StatisticsReportQueryMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('dimensions',): { + 'ADSETID': "AdsetId", + 'ADSET': "Adset", + 'ADVERTISERID': "AdvertiserId", + 'ADVERTISER': "Advertiser", + 'CATEGORYID': "CategoryId", + 'CATEGORY': "Category", + 'HOUR': "Hour", + 'DAY': "Day", + 'WEEK': "Week", + 'MONTH': "Month", + 'YEAR': "Year", + 'OS': "Os", + 'DEVICE': "Device", + 'CAMPAIGNID': "CampaignId", + 'CAMPAIGN': "Campaign", + 'ADID': "AdId", + 'AD': "Ad", + 'COUPONID': "CouponId", + 'COUPON': "Coupon", + 'MARKETINGOBJECTIVEID': "MarketingObjectiveId", + 'MARKETINGOBJECTIVE': "MarketingObjective", + 'CHANNELID': "ChannelId", + 'CHANNEL': "Channel", + 'GOAL': "Goal", + }, + } + + validations = { + ('dimensions',): { + }, + ('metrics',): { + }, + ('ad_set_ids',): { + }, + ('ad_set_names',): { + }, + ('ad_set_status',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'dimensions': ([str],), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'advertiser_ids': (str,), # noqa: E501 + 'ad_set_ids': ([str],), # noqa: E501 + 'ad_set_names': ([str],), # noqa: E501 + 'ad_set_status': ([str],), # noqa: E501 + 'timezone': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'dimensions': 'dimensions', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'format': 'format', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'ad_set_ids': 'adSetIds', # noqa: E501 + 'ad_set_names': 'adSetNames', # noqa: E501 + 'ad_set_status': 'adSetStatus', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, dimensions, metrics, currency, format, start_date, end_date, *args, **kwargs): # noqa: E501 + """StatisticsReportQueryMessage - a model defined in OpenAPI + + Args: + dimensions ([str]): The dimensions for the report. + metrics ([str]): The list of metrics to report. + currency (str): The currency used for the report. ISO 4217 code (three-letter capitals). + format (str): The file format of the generated report: csv, xml, excel or json. + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_ids (str): The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used. [optional] # noqa: E501 + ad_set_ids ([str]): list of adSets ids. If empty, all the adSets will be fetched. [optional] # noqa: E501 + ad_set_names ([str]): list of adSets names. If empty, all the adSets will be fetched. [optional] # noqa: E501 + ad_set_status ([str]): list of adSets status. If empty, all the adSets will be fetched. [optional] # noqa: E501 + timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.dimensions = dimensions + self.metrics = metrics + self.currency = currency + self.format = format + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, dimensions, metrics, currency, format, start_date, end_date, *args, **kwargs): # noqa: E501 + """StatisticsReportQueryMessage - a model defined in OpenAPI + + Args: + dimensions ([str]): The dimensions for the report. + metrics ([str]): The list of metrics to report. + currency (str): The currency used for the report. ISO 4217 code (three-letter capitals). + format (str): The file format of the generated report: csv, xml, excel or json. + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_ids (str): The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used. [optional] # noqa: E501 + ad_set_ids ([str]): list of adSets ids. If empty, all the adSets will be fetched. [optional] # noqa: E501 + ad_set_names ([str]): list of adSets names. If empty, all the adSets will be fetched. [optional] # noqa: E501 + ad_set_status ([str]): list of adSets status. If empty, all the adSets will be fetched. [optional] # noqa: E501 + timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.dimensions = dimensions + self.metrics = metrics + self.currency = currency + self.format = format + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/tag.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/tag.py new file mode 100644 index 00000000..98ec13db --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/tag.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.size import Size + globals()['Size'] = Size + + +class Tag(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'html_tag': (str,), # noqa: E501 + 'size': (Size,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'html_tag': 'htmlTag', # noqa: E501 + 'size': 'size', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Tag - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + html_tag (str): Html tag. [optional] # noqa: E501 + size (Size): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Tag - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + html_tag (str): Html tag. [optional] # noqa: E501 + size (Size): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py new file mode 100644 index 00000000..d8940553 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_data_message.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage + globals()['TransactionsReportQueryEntityMessage'] = TransactionsReportQueryEntityMessage + + +class TransactionsReportQueryDataMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([TransactionsReportQueryEntityMessage],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryDataMessage - a model defined in OpenAPI + + Args: + data ([TransactionsReportQueryEntityMessage]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryDataMessage - a model defined in OpenAPI + + Args: + data ([TransactionsReportQueryEntityMessage]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py new file mode 100644 index 00000000..f6869c7f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_entity_message.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message import TransactionsReportQueryMessage + globals()['TransactionsReportQueryMessage'] = TransactionsReportQueryMessage + + +class TransactionsReportQueryEntityMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (TransactionsReportQueryMessage,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryEntityMessage - a model defined in OpenAPI + + Args: + type (str): + attributes (TransactionsReportQueryMessage): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryEntityMessage - a model defined in OpenAPI + + Args: + type (str): + attributes (TransactionsReportQueryMessage): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py new file mode 100644 index 00000000..63127b48 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transactions_report_query_message.py @@ -0,0 +1,299 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class TransactionsReportQueryMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'currency': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'advertiser_ids': (str,), # noqa: E501 + 'event_type': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'currency': 'currency', # noqa: E501 + 'format': 'format', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'advertiser_ids': 'advertiserIds', # noqa: E501 + 'event_type': 'eventType', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, currency, format, start_date, end_date, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessage - a model defined in OpenAPI + + Args: + currency (str): The currency used for the report. ISO 4217 code (three-letter capitals). + format (str): The file format of the generated report: csv, xml, excel or json. + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_ids (str): The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used. [optional] # noqa: E501 + event_type (str): Apply a filter on Event type .. [optional] # noqa: E501 + timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.currency = currency + self.format = format + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, currency, format, start_date, end_date, *args, **kwargs): # noqa: E501 + """TransactionsReportQueryMessage - a model defined in OpenAPI + + Args: + currency (str): The currency used for the report. ISO 4217 code (three-letter capitals). + format (str): The file format of the generated report: csv, xml, excel or json. + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + advertiser_ids (str): The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used. [optional] # noqa: E501 + event_type (str): Apply a filter on Event type .. [optional] # noqa: E501 + timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.currency = currency + self.format = format + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py new file mode 100644 index 00000000..396fff48 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_query_message.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class TransparencyQueryMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'should_display_product_ids': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'should_display_product_ids': 'shouldDisplayProductIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E501 + """TransparencyQueryMessage - a model defined in OpenAPI + + Args: + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + should_display_product_ids (bool): Specify if the product ids are displayed in the report.. [optional] if omitted the server will use the default value of False # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 + """TransparencyQueryMessage - a model defined in OpenAPI + + Args: + start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + should_display_product_ids (bool): Specify if the product ids are displayed in the report.. [optional] if omitted the server will use the default value of False # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py new file mode 100644 index 00000000..830e5ea1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_attributes.py @@ -0,0 +1,289 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.transparency_report_file import TransparencyReportFile + globals()['TransparencyReportFile'] = TransparencyReportFile + + +class TransparencyReportAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('files',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'advertiser_id': (str,), # noqa: E501 + 'token_valid_until': (datetime,), # noqa: E501 + 'files': ([TransparencyReportFile],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'advertiser_id': 'advertiserId', # noqa: E501 + 'token_valid_until': 'tokenValidUntil', # noqa: E501 + 'files': 'files', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 + """TransparencyReportAttributes - a model defined in OpenAPI + + Args: + advertiser_id (str): + token_valid_until (datetime): + files ([TransparencyReportFile]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_id = advertiser_id + self.token_valid_until = token_valid_until + self.files = files + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, advertiser_id, token_valid_until, files, *args, **kwargs): # noqa: E501 + """TransparencyReportAttributes - a model defined in OpenAPI + + Args: + advertiser_id (str): + token_valid_until (datetime): + files ([TransparencyReportFile]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.advertiser_id = advertiser_id + self.token_valid_until = token_valid_until + self.files = files + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py new file mode 100644 index 00000000..2d14a5bd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_data_message.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.transparency_report_entity_message import TransparencyReportEntityMessage + globals()['TransparencyReportEntityMessage'] = TransparencyReportEntityMessage + + +class TransparencyReportDataMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('data',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([TransparencyReportEntityMessage],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """TransparencyReportDataMessage - a model defined in OpenAPI + + Args: + data ([TransparencyReportEntityMessage]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """TransparencyReportDataMessage - a model defined in OpenAPI + + Args: + data ([TransparencyReportEntityMessage]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py new file mode 100644 index 00000000..6587fb9e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_entity_message.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.transparency_report_attributes import TransparencyReportAttributes + globals()['TransparencyReportAttributes'] = TransparencyReportAttributes + + +class TransparencyReportEntityMessage(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (TransparencyReportAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + 'type', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """TransparencyReportEntityMessage - a model defined in OpenAPI + + Args: + type (str): + attributes (TransparencyReportAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, attributes, *args, **kwargs): # noqa: E501 + """TransparencyReportEntityMessage - a model defined in OpenAPI + + attributes (TransparencyReportAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py new file mode 100644 index 00000000..67884c2b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/transparency_report_file.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class TransparencyReportFile(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'file_name': (str,), # noqa: E501 + 'url': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'file_name': 'fileName', # noqa: E501 + 'url': 'url', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, file_name, url, *args, **kwargs): # noqa: E501 + """TransparencyReportFile - a model defined in OpenAPI + + Args: + file_name (str): + url (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.file_name = file_name + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, file_name, url, *args, **kwargs): # noqa: E501 + """TransparencyReportFile - a model defined in OpenAPI + + Args: + file_name (str): + url (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.file_name = file_name + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon.py new file mode 100644 index 00000000..8329f2f6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class UpdateCoupon(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'start_date': (str,), # noqa: E501 + 'end_date': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, start_date, *args, **kwargs): # noqa: E501 + """UpdateCoupon - a model defined in OpenAPI + + Args: + start_date (str): The date when the Coupon will be launched String must be in ISO8601 format + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (str): The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, start_date, *args, **kwargs): # noqa: E501 + """UpdateCoupon - a model defined in OpenAPI + + Args: + start_date (str): The date when the Coupon will be launched String must be in ISO8601 format + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (str): The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_request.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_request.py new file mode 100644 index 00000000..96299d8a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.update_coupon_resource import UpdateCouponResource + globals()['UpdateCouponResource'] = UpdateCouponResource + + +class UpdateCouponRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (UpdateCouponResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """UpdateCouponRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (UpdateCouponResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """UpdateCouponRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (UpdateCouponResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_resource.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_resource.py new file mode 100644 index 00000000..60e22371 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/update_coupon_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.update_coupon import UpdateCoupon + globals()['UpdateCoupon'] = UpdateCoupon + + +class UpdateCouponResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (UpdateCoupon,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """UpdateCouponResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (UpdateCoupon): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """UpdateCouponResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (UpdateCoupon): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/video_detail.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/video_detail.py new file mode 100644 index 00000000..05920824 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/video_detail.py @@ -0,0 +1,286 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class VideoDetail(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('shape',): { + 'HORIZONTAL': "Horizontal", + 'VERTICAL': "Vertical", + 'SQUARE': "Square", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'duration': (float,), # noqa: E501 + 'shape': (str,), # noqa: E501 + 'url': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'duration': 'duration', # noqa: E501 + 'shape': 'shape', # noqa: E501 + 'url': 'url', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, duration, shape, url, *args, **kwargs): # noqa: E501 + """VideoDetail - a model defined in OpenAPI + + Args: + duration (float): The duration of the video in milliseconds, the video could be trimmed if it is longer than 30000 ms. + shape (str): Shape of the video + url (str): URL of the video uploaded on demostatic.criteo.com when deploying and then static.criteo.net + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.duration = duration + self.shape = shape + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, duration, shape, url, *args, **kwargs): # noqa: E501 + """VideoDetail - a model defined in OpenAPI + + Args: + duration (float): The duration of the video in milliseconds, the video could be trimmed if it is longer than 30000 ms. + shape (str): Shape of the video + url (str): URL of the video uploaded on demostatic.criteo.com when deploying and then static.criteo.net + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.duration = duration + self.shape = shape + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_ad_set_id.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_ad_set_id.py new file mode 100644 index 00000000..6dcc8535 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_ad_set_id.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + + +class WriteModelAdSetId(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WriteModelAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """WriteModelAdSetId - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_patch_ad_set.py new file mode 100644 index 00000000..0d30c965 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model/write_model_patch_ad_set.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set import PatchAdSet + globals()['PatchAdSet'] = PatchAdSet + + +class WriteModelPatchAdSet(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (PatchAdSet,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WriteModelPatchAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (PatchAdSet): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """WriteModelPatchAdSet - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (PatchAdSet): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model_utils.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model_utils.py new file mode 100644 index 00000000..0ac79854 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/model_utils.py @@ -0,0 +1,2058 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +from datetime import date, datetime # noqa: F401 +from copy import deepcopy +import inspect +import io +import os +import pprint +import re +import tempfile +import uuid + +from dateutil.parser import parse + +from criteo_api_marketingsolutions_v2023_07.exceptions import ( + ApiKeyError, + ApiAttributeError, + ApiTypeError, + ApiValueError, +) + +none_type = type(None) +file_type = io.IOBase + + +def convert_js_args_to_python_args(fn): + from functools import wraps + @wraps(fn) + def wrapped_init(_self, *args, **kwargs): + """ + An attribute named `self` received from the api will conflicts with the reserved `self` + parameter of a class method. During generation, `self` attributes are mapped + to `_self` in models. Here, we name `_self` instead of `self` to avoid conflicts. + """ + spec_property_naming = kwargs.get('_spec_property_naming', False) + if spec_property_naming: + kwargs = change_keys_js_to_python( + kwargs, _self if isinstance( + _self, type) else _self.__class__) + return fn(_self, *args, **kwargs) + return wrapped_init + + +class cached_property(object): + # this caches the result of the function call for fn with no inputs + # use this as a decorator on function methods that you want converted + # into cached properties + result_key = '_results' + + def __init__(self, fn): + self._fn = fn + + def __get__(self, instance, cls=None): + if self.result_key in vars(self): + return vars(self)[self.result_key] + else: + result = self._fn() + setattr(self, self.result_key, result) + return result + + +PRIMITIVE_TYPES = (list, float, int, bool, datetime, date, str, file_type) + + +def allows_single_value_input(cls): + """ + This function returns True if the input composed schema model or any + descendant model allows a value only input + This is true for cases where oneOf contains items like: + oneOf: + - float + - NumberWithValidation + - StringEnum + - ArrayModel + - null + TODO: lru_cache this + """ + if ( + issubclass(cls, ModelSimple) or + cls in PRIMITIVE_TYPES + ): + return True + elif issubclass(cls, ModelComposed): + if not cls._composed_schemas['oneOf']: + return False + return any(allows_single_value_input(c) for c in cls._composed_schemas['oneOf']) + return False + + +def composed_model_input_classes(cls): + """ + This function returns a list of the possible models that can be accepted as + inputs. + TODO: lru_cache this + """ + if issubclass(cls, ModelSimple) or cls in PRIMITIVE_TYPES: + return [cls] + elif issubclass(cls, ModelNormal): + if cls.discriminator is None: + return [cls] + else: + return get_discriminated_classes(cls) + elif issubclass(cls, ModelComposed): + if not cls._composed_schemas['oneOf']: + return [] + if cls.discriminator is None: + input_classes = [] + for c in cls._composed_schemas['oneOf']: + input_classes.extend(composed_model_input_classes(c)) + return input_classes + else: + return get_discriminated_classes(cls) + return [] + + +class OpenApiModel(object): + """The base class for all OpenAPIModels""" + + def set_attribute(self, name, value): + # this is only used to set properties on self + + path_to_item = [] + if self._path_to_item: + path_to_item.extend(self._path_to_item) + path_to_item.append(name) + + if name in self.openapi_types: + required_types_mixed = self.openapi_types[name] + elif self.additional_properties_type is None: + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + path_to_item + ) + elif self.additional_properties_type is not None: + required_types_mixed = self.additional_properties_type + + if get_simple_class(name) != str: + error_msg = type_error_message( + var_name=name, + var_value=name, + valid_classes=(str,), + key_type=True + ) + raise ApiTypeError( + error_msg, + path_to_item=path_to_item, + valid_classes=(str,), + key_type=True + ) + + if self._check_type: + value = validate_and_convert_types( + value, required_types_mixed, path_to_item, self._spec_property_naming, + self._check_type, configuration=self._configuration) + if (name,) in self.allowed_values: + check_allowed_values( + self.allowed_values, + (name,), + value + ) + if (name,) in self.validations: + check_validations( + self.validations, + (name,), + value, + self._configuration + ) + self.__dict__['_data_store'][name] = value + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other + + def __setattr__(self, attr, value): + """set the value of an attribute using dot notation: `instance.attr = val`""" + self[attr] = value + + def __getattr__(self, attr): + """get the value of an attribute using dot notation: `instance.attr`""" + return self.__getitem__(attr) + + def __copy__(self): + cls = self.__class__ + if self.get("_spec_property_naming", False): + return cls._new_from_openapi_data(**self.__dict__) + else: + return cls.__new__(cls, **self.__dict__) + + def __deepcopy__(self, memo): + cls = self.__class__ + + if self.get("_spec_property_naming", False): + new_inst = cls._new_from_openapi_data() + else: + new_inst = cls.__new__(cls, **self.__dict__) + + for k, v in self.__dict__.items(): + setattr(new_inst, k, deepcopy(v, memo)) + return new_inst + + + def __new__(cls, *args, **kwargs): + # this function uses the discriminator to + # pick a new schema/class to instantiate because a discriminator + # propertyName value was passed in + + if len(args) == 1: + arg = args[0] + if arg is None and is_type_nullable(cls): + # The input data is the 'null' value and the type is nullable. + return None + + if issubclass(cls, ModelComposed) and allows_single_value_input(cls): + model_kwargs = {} + oneof_instance = get_oneof_instance(cls, model_kwargs, kwargs, model_arg=arg) + return oneof_instance + + visited_composed_classes = kwargs.get('_visited_composed_classes', ()) + if ( + cls.discriminator is None or + cls in visited_composed_classes + ): + # Use case 1: this openapi schema (cls) does not have a discriminator + # Use case 2: we have already visited this class before and are sure that we + # want to instantiate it this time. We have visited this class deserializing + # a payload with a discriminator. During that process we traveled through + # this class but did not make an instance of it. Now we are making an + # instance of a composed class which contains cls in it, so this time make an instance of cls. + # + # Here's an example of use case 2: If Animal has a discriminator + # petType and we pass in "Dog", and the class Dog + # allOf includes Animal, we move through Animal + # once using the discriminator, and pick Dog. + # Then in the composed schema dog Dog, we will make an instance of the + # Animal class (because Dal has allOf: Animal) but this time we won't travel + # through Animal's discriminator because we passed in + # _visited_composed_classes = (Animal,) + + return super(OpenApiModel, cls).__new__(cls) + + # Get the name and value of the discriminator property. + # The discriminator name is obtained from the discriminator meta-data + # and the discriminator value is obtained from the input data. + discr_propertyname_py = list(cls.discriminator.keys())[0] + discr_propertyname_js = cls.attribute_map[discr_propertyname_py] + if discr_propertyname_js in kwargs: + discr_value = kwargs[discr_propertyname_js] + elif discr_propertyname_py in kwargs: + discr_value = kwargs[discr_propertyname_py] + else: + # The input data does not contain the discriminator property. + path_to_item = kwargs.get('_path_to_item', ()) + raise ApiValueError( + "Cannot deserialize input data due to missing discriminator. " + "The discriminator property '%s' is missing at path: %s" % + (discr_propertyname_js, path_to_item) + ) + + # Implementation note: the last argument to get_discriminator_class + # is a list of visited classes. get_discriminator_class may recursively + # call itself and update the list of visited classes, and the initial + # value must be an empty list. Hence not using 'visited_composed_classes' + new_cls = get_discriminator_class( + cls, discr_propertyname_py, discr_value, []) + if new_cls is None: + path_to_item = kwargs.get('_path_to_item', ()) + disc_prop_value = kwargs.get( + discr_propertyname_js, kwargs.get(discr_propertyname_py)) + raise ApiValueError( + "Cannot deserialize input data due to invalid discriminator " + "value. The OpenAPI document has no mapping for discriminator " + "property '%s'='%s' at path: %s" % + (discr_propertyname_js, disc_prop_value, path_to_item) + ) + + if new_cls in visited_composed_classes: + # if we are making an instance of a composed schema Descendent + # which allOf includes Ancestor, then Ancestor contains + # a discriminator that includes Descendent. + # So if we make an instance of Descendent, we have to make an + # instance of Ancestor to hold the allOf properties. + # This code detects that use case and makes the instance of Ancestor + # For example: + # When making an instance of Dog, _visited_composed_classes = (Dog,) + # then we make an instance of Animal to include in dog._composed_instances + # so when we are here, cls is Animal + # cls.discriminator != None + # cls not in _visited_composed_classes + # new_cls = Dog + # but we know we know that we already have Dog + # because it is in visited_composed_classes + # so make Animal here + return super(OpenApiModel, cls).__new__(cls) + + # Build a list containing all oneOf and anyOf descendants. + oneof_anyof_classes = None + if cls._composed_schemas is not None: + oneof_anyof_classes = ( + cls._composed_schemas.get('oneOf', ()) + + cls._composed_schemas.get('anyOf', ())) + oneof_anyof_child = new_cls in oneof_anyof_classes + kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,) + + if cls._composed_schemas.get('allOf') and oneof_anyof_child: + # Validate that we can make self because when we make the + # new_cls it will not include the allOf validations in self + self_inst = super(OpenApiModel, cls).__new__(cls) + self_inst.__init__(*args, **kwargs) + + if kwargs.get("_spec_property_naming", False): + # when true, implies new is from deserialization + new_inst = new_cls._new_from_openapi_data(*args, **kwargs) + else: + new_inst = new_cls.__new__(new_cls, *args, **kwargs) + new_inst.__init__(*args, **kwargs) + + return new_inst + + @classmethod + @convert_js_args_to_python_args + def _new_from_openapi_data(cls, *args, **kwargs): + # this function uses the discriminator to + # pick a new schema/class to instantiate because a discriminator + # propertyName value was passed in + + if len(args) == 1: + arg = args[0] + if arg is None and is_type_nullable(cls): + # The input data is the 'null' value and the type is nullable. + return None + + if issubclass(cls, ModelComposed) and allows_single_value_input(cls): + model_kwargs = {} + oneof_instance = get_oneof_instance(cls, model_kwargs, kwargs, model_arg=arg) + return oneof_instance + + visited_composed_classes = kwargs.get('_visited_composed_classes', ()) + if ( + cls.discriminator is None or + cls in visited_composed_classes + ): + # Use case 1: this openapi schema (cls) does not have a discriminator + # Use case 2: we have already visited this class before and are sure that we + # want to instantiate it this time. We have visited this class deserializing + # a payload with a discriminator. During that process we traveled through + # this class but did not make an instance of it. Now we are making an + # instance of a composed class which contains cls in it, so this time make an instance of cls. + # + # Here's an example of use case 2: If Animal has a discriminator + # petType and we pass in "Dog", and the class Dog + # allOf includes Animal, we move through Animal + # once using the discriminator, and pick Dog. + # Then in the composed schema dog Dog, we will make an instance of the + # Animal class (because Dal has allOf: Animal) but this time we won't travel + # through Animal's discriminator because we passed in + # _visited_composed_classes = (Animal,) + + return cls._from_openapi_data(*args, **kwargs) + + # Get the name and value of the discriminator property. + # The discriminator name is obtained from the discriminator meta-data + # and the discriminator value is obtained from the input data. + discr_propertyname_py = list(cls.discriminator.keys())[0] + discr_propertyname_js = cls.attribute_map[discr_propertyname_py] + if discr_propertyname_js in kwargs: + discr_value = kwargs[discr_propertyname_js] + elif discr_propertyname_py in kwargs: + discr_value = kwargs[discr_propertyname_py] + else: + # The input data does not contain the discriminator property. + path_to_item = kwargs.get('_path_to_item', ()) + raise ApiValueError( + "Cannot deserialize input data due to missing discriminator. " + "The discriminator property '%s' is missing at path: %s" % + (discr_propertyname_js, path_to_item) + ) + + # Implementation note: the last argument to get_discriminator_class + # is a list of visited classes. get_discriminator_class may recursively + # call itself and update the list of visited classes, and the initial + # value must be an empty list. Hence not using 'visited_composed_classes' + new_cls = get_discriminator_class( + cls, discr_propertyname_py, discr_value, []) + if new_cls is None: + path_to_item = kwargs.get('_path_to_item', ()) + disc_prop_value = kwargs.get( + discr_propertyname_js, kwargs.get(discr_propertyname_py)) + raise ApiValueError( + "Cannot deserialize input data due to invalid discriminator " + "value. The OpenAPI document has no mapping for discriminator " + "property '%s'='%s' at path: %s" % + (discr_propertyname_js, disc_prop_value, path_to_item) + ) + + if new_cls in visited_composed_classes: + # if we are making an instance of a composed schema Descendent + # which allOf includes Ancestor, then Ancestor contains + # a discriminator that includes Descendent. + # So if we make an instance of Descendent, we have to make an + # instance of Ancestor to hold the allOf properties. + # This code detects that use case and makes the instance of Ancestor + # For example: + # When making an instance of Dog, _visited_composed_classes = (Dog,) + # then we make an instance of Animal to include in dog._composed_instances + # so when we are here, cls is Animal + # cls.discriminator != None + # cls not in _visited_composed_classes + # new_cls = Dog + # but we know we know that we already have Dog + # because it is in visited_composed_classes + # so make Animal here + return cls._from_openapi_data(*args, **kwargs) + + # Build a list containing all oneOf and anyOf descendants. + oneof_anyof_classes = None + if cls._composed_schemas is not None: + oneof_anyof_classes = ( + cls._composed_schemas.get('oneOf', ()) + + cls._composed_schemas.get('anyOf', ())) + oneof_anyof_child = new_cls in oneof_anyof_classes + kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,) + + if cls._composed_schemas.get('allOf') and oneof_anyof_child: + # Validate that we can make self because when we make the + # new_cls it will not include the allOf validations in self + self_inst = cls._from_openapi_data(*args, **kwargs) + + new_inst = new_cls._new_from_openapi_data(*args, **kwargs) + return new_inst + + +class ModelSimple(OpenApiModel): + """the parent class of models whose type != object in their + swagger/openapi""" + + def __setitem__(self, name, value): + """set the value of an attribute using square-bracket notation: `instance[attr] = val`""" + if name in self.required_properties: + self.__dict__[name] = value + return + + self.set_attribute(name, value) + + def get(self, name, default=None): + """returns the value of an attribute or some default value if the attribute was not set""" + if name in self.required_properties: + return self.__dict__[name] + + return self.__dict__['_data_store'].get(name, default) + + def __getitem__(self, name): + """get the value of an attribute using square-bracket notation: `instance[attr]`""" + if name in self: + return self.get(name) + + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + + def __contains__(self, name): + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" + if name in self.required_properties: + return name in self.__dict__ + + return name in self.__dict__['_data_store'] + + def to_str(self): + """Returns the string representation of the model""" + return str(self.value) + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, self.__class__): + return False + + this_val = self._data_store['value'] + that_val = other._data_store['value'] + types = set() + types.add(this_val.__class__) + types.add(that_val.__class__) + vals_equal = this_val == that_val + return vals_equal + + +class ModelNormal(OpenApiModel): + """the parent class of models whose type == object in their + swagger/openapi""" + + def __setitem__(self, name, value): + """set the value of an attribute using square-bracket notation: `instance[attr] = val`""" + if name in self.required_properties: + self.__dict__[name] = value + return + + self.set_attribute(name, value) + + def get(self, name, default=None): + """returns the value of an attribute or some default value if the attribute was not set""" + if name in self.required_properties: + return self.__dict__[name] + + return self.__dict__['_data_store'].get(name, default) + + def __getitem__(self, name): + """get the value of an attribute using square-bracket notation: `instance[attr]`""" + if name in self: + return self.get(name) + + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + + def __contains__(self, name): + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" + if name in self.required_properties: + return name in self.__dict__ + + return name in self.__dict__['_data_store'] + + def to_dict(self): + """Returns the model properties as a dict""" + return model_to_dict(self, serialize=False) + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, self.__class__): + return False + + if not set(self._data_store.keys()) == set(other._data_store.keys()): + return False + for _var_name, this_val in self._data_store.items(): + that_val = other._data_store[_var_name] + types = set() + types.add(this_val.__class__) + types.add(that_val.__class__) + vals_equal = this_val == that_val + if not vals_equal: + return False + return True + + +class ModelComposed(OpenApiModel): + """the parent class of models whose type == object in their + swagger/openapi and have oneOf/allOf/anyOf + + When one sets a property we use var_name_to_model_instances to store the value in + the correct class instances + run any type checking + validation code. + When one gets a property we use var_name_to_model_instances to get the value + from the correct class instances. + This allows multiple composed schemas to contain the same property with additive + constraints on the value. + + _composed_schemas (dict) stores the anyOf/allOf/oneOf classes + key (str): allOf/oneOf/anyOf + value (list): the classes in the XOf definition. + Note: none_type can be included when the openapi document version >= 3.1.0 + _composed_instances (list): stores a list of instances of the composed schemas + defined in _composed_schemas. When properties are accessed in the self instance, + they are returned from the self._data_store or the data stores in the instances + in self._composed_schemas + _var_name_to_model_instances (dict): maps between a variable name on self and + the composed instances (self included) which contain that data + key (str): property name + value (list): list of class instances, self or instances in _composed_instances + which contain the value that the key is referring to. + """ + + def __setitem__(self, name, value): + """set the value of an attribute using square-bracket notation: `instance[attr] = val`""" + if name in self.required_properties: + self.__dict__[name] = value + return + + """ + Use cases: + 1. additional_properties_type is None (additionalProperties == False in spec) + Check for property presence in self.openapi_types + if not present then throw an error + if present set in self, set attribute + always set on composed schemas + 2. additional_properties_type exists + set attribute on self + always set on composed schemas + """ + if self.additional_properties_type is None: + """ + For an attribute to exist on a composed schema it must: + - fulfill schema_requirements in the self composed schema not considering oneOf/anyOf/allOf schemas AND + - fulfill schema_requirements in each oneOf/anyOf/allOf schemas + + schema_requirements: + For an attribute to exist on a schema it must: + - be present in properties at the schema OR + - have additionalProperties unset (defaults additionalProperties = any type) OR + - have additionalProperties set + """ + if name not in self.openapi_types: + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + # attribute must be set on self and composed instances + self.set_attribute(name, value) + for model_instance in self._composed_instances: + setattr(model_instance, name, value) + if name not in self._var_name_to_model_instances: + # we assigned an additional property + self.__dict__['_var_name_to_model_instances'][name] = self._composed_instances + [self] + return None + + __unset_attribute_value__ = object() + + def get(self, name, default=None): + """returns the value of an attribute or some default value if the attribute was not set""" + if name in self.required_properties: + return self.__dict__[name] + + # get the attribute from the correct instance + model_instances = self._var_name_to_model_instances.get(name) + values = [] + # A composed model stores self and child (oneof/anyOf/allOf) models under + # self._var_name_to_model_instances. + # Any property must exist in self and all model instances + # The value stored in all model instances must be the same + if model_instances: + for model_instance in model_instances: + if name in model_instance._data_store: + v = model_instance._data_store[name] + if v not in values: + values.append(v) + len_values = len(values) + if len_values == 0: + return default + elif len_values == 1: + return values[0] + elif len_values > 1: + raise ApiValueError( + "Values stored for property {0} in {1} differ when looking " + "at self and self's composed instances. All values must be " + "the same".format(name, type(self).__name__), + [e for e in [self._path_to_item, name] if e] + ) + + def __getitem__(self, name): + """get the value of an attribute using square-bracket notation: `instance[attr]`""" + value = self.get(name, self.__unset_attribute_value__) + if value is self.__unset_attribute_value__: + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + return value + + def __contains__(self, name): + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" + + if name in self.required_properties: + return name in self.__dict__ + + model_instances = self._var_name_to_model_instances.get( + name, self._additional_properties_model_instances) + + if model_instances: + for model_instance in model_instances: + if name in model_instance._data_store: + return True + + return False + + def to_dict(self): + """Returns the model properties as a dict""" + return model_to_dict(self, serialize=False) + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, self.__class__): + return False + + if not set(self._data_store.keys()) == set(other._data_store.keys()): + return False + for _var_name, this_val in self._data_store.items(): + that_val = other._data_store[_var_name] + types = set() + types.add(this_val.__class__) + types.add(that_val.__class__) + vals_equal = this_val == that_val + if not vals_equal: + return False + return True + + +COERCION_INDEX_BY_TYPE = { + ModelComposed: 0, + ModelNormal: 1, + ModelSimple: 2, + none_type: 3, # The type of 'None'. + list: 4, + dict: 5, + float: 6, + int: 7, + bool: 8, + datetime: 9, + date: 10, + str: 11, + file_type: 12, # 'file_type' is an alias for the built-in 'file' or 'io.IOBase' type. +} + +# these are used to limit what type conversions we try to do +# when we have a valid type already and we want to try converting +# to another type +UPCONVERSION_TYPE_PAIRS = ( + (str, datetime), + (str, date), + # A float may be serialized as an integer, e.g. '3' is a valid serialized float. + (int, float), + (list, ModelComposed), + (dict, ModelComposed), + (str, ModelComposed), + (int, ModelComposed), + (float, ModelComposed), + (list, ModelComposed), + (list, ModelNormal), + (dict, ModelNormal), + (str, ModelSimple), + (int, ModelSimple), + (float, ModelSimple), + (list, ModelSimple), +) + +COERCIBLE_TYPE_PAIRS = { + False: ( # client instantiation of a model with client data + # (dict, ModelComposed), + # (list, ModelComposed), + # (dict, ModelNormal), + # (list, ModelNormal), + # (str, ModelSimple), + # (int, ModelSimple), + # (float, ModelSimple), + # (list, ModelSimple), + # (str, int), + # (str, float), + # (str, datetime), + # (str, date), + # (int, str), + # (float, str), + ), + True: ( # server -> client data + (dict, ModelComposed), + (list, ModelComposed), + (dict, ModelNormal), + (list, ModelNormal), + (str, ModelSimple), + (int, ModelSimple), + (float, ModelSimple), + (list, ModelSimple), + # (str, int), + # (str, float), + (str, datetime), + (str, date), + # (int, str), + # (float, str), + (str, file_type) + ), +} + + +def get_simple_class(input_value): + """Returns an input_value's simple class that we will use for type checking + Python2: + float and int will return int, where int is the python3 int backport + str and unicode will return str, where str is the python3 str backport + Note: float and int ARE both instances of int backport + Note: str_py2 and unicode_py2 are NOT both instances of str backport + + Args: + input_value (class/class_instance): the item for which we will return + the simple class + """ + if isinstance(input_value, type): + # input_value is a class + return input_value + elif isinstance(input_value, tuple): + return tuple + elif isinstance(input_value, list): + return list + elif isinstance(input_value, dict): + return dict + elif isinstance(input_value, none_type): + return none_type + elif isinstance(input_value, file_type): + return file_type + elif isinstance(input_value, bool): + # this must be higher than the int check because + # isinstance(True, int) == True + return bool + elif isinstance(input_value, int): + return int + elif isinstance(input_value, datetime): + # this must be higher than the date check because + # isinstance(datetime_instance, date) == True + return datetime + elif isinstance(input_value, date): + return date + elif isinstance(input_value, str): + return str + return type(input_value) + + +def check_allowed_values(allowed_values, input_variable_path, input_values): + """Raises an exception if the input_values are not allowed + + Args: + allowed_values (dict): the allowed_values dict + input_variable_path (tuple): the path to the input variable + input_values (list/str/int/float/date/datetime): the values that we + are checking to see if they are in allowed_values + """ + these_allowed_values = list(allowed_values[input_variable_path].values()) + if (isinstance(input_values, list) + and not set(input_values).issubset( + set(these_allowed_values))): + invalid_values = ", ".join( + map(str, set(input_values) - set(these_allowed_values))), + raise ApiValueError( + "Invalid values for `%s` [%s], must be a subset of [%s]" % + ( + input_variable_path[0], + invalid_values, + ", ".join(map(str, these_allowed_values)) + ) + ) + elif (isinstance(input_values, dict) + and not set( + input_values.keys()).issubset(set(these_allowed_values))): + invalid_values = ", ".join( + map(str, set(input_values.keys()) - set(these_allowed_values))) + raise ApiValueError( + "Invalid keys in `%s` [%s], must be a subset of [%s]" % + ( + input_variable_path[0], + invalid_values, + ", ".join(map(str, these_allowed_values)) + ) + ) + elif (not isinstance(input_values, (list, dict)) + and input_values not in these_allowed_values): + raise ApiValueError( + "Invalid value for `%s` (%s), must be one of %s" % + ( + input_variable_path[0], + input_values, + these_allowed_values + ) + ) + + +def is_json_validation_enabled(schema_keyword, configuration=None): + """Returns true if JSON schema validation is enabled for the specified + validation keyword. This can be used to skip JSON schema structural validation + as requested in the configuration. + + Args: + schema_keyword (string): the name of a JSON schema validation keyword. + configuration (Configuration): the configuration class. + """ + + return (configuration is None or + not hasattr(configuration, '_disabled_client_side_validations') or + schema_keyword not in configuration._disabled_client_side_validations) + + +def check_validations( + validations, input_variable_path, input_values, + configuration=None): + """Raises an exception if the input_values are invalid + + Args: + validations (dict): the validation dictionary. + input_variable_path (tuple): the path to the input variable. + input_values (list/str/int/float/date/datetime): the values that we + are checking. + configuration (Configuration): the configuration class. + """ + + if input_values is None: + return + + current_validations = validations[input_variable_path] + if (is_json_validation_enabled('multipleOf', configuration) and + 'multiple_of' in current_validations and + isinstance(input_values, (int, float)) and + not (float(input_values) / current_validations['multiple_of']).is_integer()): + # Note 'multipleOf' will be as good as the floating point arithmetic. + raise ApiValueError( + "Invalid value for `%s`, value must be a multiple of " + "`%s`" % ( + input_variable_path[0], + current_validations['multiple_of'] + ) + ) + + if (is_json_validation_enabled('maxLength', configuration) and + 'max_length' in current_validations and + len(input_values) > current_validations['max_length']): + raise ApiValueError( + "Invalid value for `%s`, length must be less than or equal to " + "`%s`" % ( + input_variable_path[0], + current_validations['max_length'] + ) + ) + + if (is_json_validation_enabled('minLength', configuration) and + 'min_length' in current_validations and + len(input_values) < current_validations['min_length']): + raise ApiValueError( + "Invalid value for `%s`, length must be greater than or equal to " + "`%s`" % ( + input_variable_path[0], + current_validations['min_length'] + ) + ) + + if (is_json_validation_enabled('maxItems', configuration) and + 'max_items' in current_validations and + len(input_values) > current_validations['max_items']): + raise ApiValueError( + "Invalid value for `%s`, number of items must be less than or " + "equal to `%s`" % ( + input_variable_path[0], + current_validations['max_items'] + ) + ) + + if (is_json_validation_enabled('minItems', configuration) and + 'min_items' in current_validations and + len(input_values) < current_validations['min_items']): + raise ValueError( + "Invalid value for `%s`, number of items must be greater than or " + "equal to `%s`" % ( + input_variable_path[0], + current_validations['min_items'] + ) + ) + + items = ('exclusive_maximum', 'inclusive_maximum', 'exclusive_minimum', + 'inclusive_minimum') + if (any(item in current_validations for item in items)): + if isinstance(input_values, list): + max_val = max(input_values) + min_val = min(input_values) + elif isinstance(input_values, dict): + max_val = max(input_values.values()) + min_val = min(input_values.values()) + else: + max_val = input_values + min_val = input_values + + if (is_json_validation_enabled('exclusiveMaximum', configuration) and + 'exclusive_maximum' in current_validations and + max_val >= current_validations['exclusive_maximum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value less than `%s`" % ( + input_variable_path[0], + current_validations['exclusive_maximum'] + ) + ) + + if (is_json_validation_enabled('maximum', configuration) and + 'inclusive_maximum' in current_validations and + max_val > current_validations['inclusive_maximum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value less than or equal to " + "`%s`" % ( + input_variable_path[0], + current_validations['inclusive_maximum'] + ) + ) + + if (is_json_validation_enabled('exclusiveMinimum', configuration) and + 'exclusive_minimum' in current_validations and + min_val <= current_validations['exclusive_minimum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value greater than `%s`" % + ( + input_variable_path[0], + current_validations['exclusive_maximum'] + ) + ) + + if (is_json_validation_enabled('minimum', configuration) and + 'inclusive_minimum' in current_validations and + min_val < current_validations['inclusive_minimum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value greater than or equal " + "to `%s`" % ( + input_variable_path[0], + current_validations['inclusive_minimum'] + ) + ) + flags = current_validations.get('regex', {}).get('flags', 0) + if (is_json_validation_enabled('pattern', configuration) and + 'regex' in current_validations and + not re.search(current_validations['regex']['pattern'], + input_values, flags=flags)): + err_msg = r"Invalid value for `%s`, must match regular expression `%s`" % ( + input_variable_path[0], + current_validations['regex']['pattern'] + ) + if flags != 0: + # Don't print the regex flags if the flags are not + # specified in the OAS document. + err_msg = r"%s with flags=`%s`" % (err_msg, flags) + raise ApiValueError(err_msg) + + +def order_response_types(required_types): + """Returns the required types sorted in coercion order + + Args: + required_types (list/tuple): collection of classes or instance of + list or dict with class information inside it. + + Returns: + (list): coercion order sorted collection of classes or instance + of list or dict with class information inside it. + """ + + def index_getter(class_or_instance): + if isinstance(class_or_instance, list): + return COERCION_INDEX_BY_TYPE[list] + elif isinstance(class_or_instance, dict): + return COERCION_INDEX_BY_TYPE[dict] + elif (inspect.isclass(class_or_instance) + and issubclass(class_or_instance, ModelComposed)): + return COERCION_INDEX_BY_TYPE[ModelComposed] + elif (inspect.isclass(class_or_instance) + and issubclass(class_or_instance, ModelNormal)): + return COERCION_INDEX_BY_TYPE[ModelNormal] + elif (inspect.isclass(class_or_instance) + and issubclass(class_or_instance, ModelSimple)): + return COERCION_INDEX_BY_TYPE[ModelSimple] + elif class_or_instance in COERCION_INDEX_BY_TYPE: + return COERCION_INDEX_BY_TYPE[class_or_instance] + raise ApiValueError("Unsupported type: %s" % class_or_instance) + + sorted_types = sorted( + required_types, + key=lambda class_or_instance: index_getter(class_or_instance) + ) + return sorted_types + + +def remove_uncoercible(required_types_classes, current_item, spec_property_naming, + must_convert=True): + """Only keeps the type conversions that are possible + + Args: + required_types_classes (tuple): tuple of classes that are required + these should be ordered by COERCION_INDEX_BY_TYPE + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + current_item (any): the current item (input data) to be converted + + Keyword Args: + must_convert (bool): if True the item to convert is of the wrong + type and we want a big list of coercibles + if False, we want a limited list of coercibles + + Returns: + (list): the remaining coercible required types, classes only + """ + current_type_simple = get_simple_class(current_item) + + results_classes = [] + for required_type_class in required_types_classes: + # convert our models to OpenApiModel + required_type_class_simplified = required_type_class + if isinstance(required_type_class_simplified, type): + if issubclass(required_type_class_simplified, ModelComposed): + required_type_class_simplified = ModelComposed + elif issubclass(required_type_class_simplified, ModelNormal): + required_type_class_simplified = ModelNormal + elif issubclass(required_type_class_simplified, ModelSimple): + required_type_class_simplified = ModelSimple + + if required_type_class_simplified == current_type_simple: + # don't consider converting to one's own class + continue + + class_pair = (current_type_simple, required_type_class_simplified) + if must_convert and class_pair in COERCIBLE_TYPE_PAIRS[spec_property_naming]: + results_classes.append(required_type_class) + elif class_pair in UPCONVERSION_TYPE_PAIRS: + results_classes.append(required_type_class) + return results_classes + + +def get_discriminated_classes(cls): + """ + Returns all the classes that a discriminator converts to + TODO: lru_cache this + """ + possible_classes = [] + key = list(cls.discriminator.keys())[0] + if is_type_nullable(cls): + possible_classes.append(cls) + for discr_cls in cls.discriminator[key].values(): + if hasattr(discr_cls, 'discriminator') and discr_cls.discriminator is not None: + possible_classes.extend(get_discriminated_classes(discr_cls)) + else: + possible_classes.append(discr_cls) + return possible_classes + + +def get_possible_classes(cls, from_server_context): + # TODO: lru_cache this + possible_classes = [cls] + if from_server_context: + return possible_classes + if hasattr(cls, 'discriminator') and cls.discriminator is not None: + possible_classes = [] + possible_classes.extend(get_discriminated_classes(cls)) + elif issubclass(cls, ModelComposed): + possible_classes.extend(composed_model_input_classes(cls)) + return possible_classes + + +def get_required_type_classes(required_types_mixed, spec_property_naming): + """Converts the tuple required_types into a tuple and a dict described + below + + Args: + required_types_mixed (tuple/list): will contain either classes or + instance of list or dict + spec_property_naming (bool): if True these values came from the + server, and we use the data types in our endpoints. + If False, we are client side and we need to include + oneOf and discriminator classes inside the data types in our endpoints + + Returns: + (valid_classes, dict_valid_class_to_child_types_mixed): + valid_classes (tuple): the valid classes that the current item + should be + dict_valid_class_to_child_types_mixed (dict): + valid_class (class): this is the key + child_types_mixed (list/dict/tuple): describes the valid child + types + """ + valid_classes = [] + child_req_types_by_current_type = {} + for required_type in required_types_mixed: + if isinstance(required_type, list): + valid_classes.append(list) + child_req_types_by_current_type[list] = required_type + elif isinstance(required_type, tuple): + valid_classes.append(tuple) + child_req_types_by_current_type[tuple] = required_type + elif isinstance(required_type, dict): + valid_classes.append(dict) + child_req_types_by_current_type[dict] = required_type[str] + else: + valid_classes.extend(get_possible_classes(required_type, spec_property_naming)) + return tuple(valid_classes), child_req_types_by_current_type + + +def change_keys_js_to_python(input_dict, model_class): + """ + Converts from javascript_key keys in the input_dict to python_keys in + the output dict using the mapping in model_class. + If the input_dict contains a key which does not declared in the model_class, + the key is added to the output dict as is. The assumption is the model_class + may have undeclared properties (additionalProperties attribute in the OAS + document). + """ + + if getattr(model_class, 'attribute_map', None) is None: + return input_dict + output_dict = {} + reversed_attr_map = {value: key for key, value in + model_class.attribute_map.items()} + for javascript_key, value in input_dict.items(): + python_key = reversed_attr_map.get(javascript_key) + if python_key is None: + # if the key is unknown, it is in error or it is an + # additionalProperties variable + python_key = javascript_key + output_dict[python_key] = value + return output_dict + + +def get_type_error(var_value, path_to_item, valid_classes, key_type=False): + error_msg = type_error_message( + var_name=path_to_item[-1], + var_value=var_value, + valid_classes=valid_classes, + key_type=key_type + ) + return ApiTypeError( + error_msg, + path_to_item=path_to_item, + valid_classes=valid_classes, + key_type=key_type + ) + + +def deserialize_primitive(data, klass, path_to_item): + """Deserializes string to primitive type. + + :param data: str/int/float + :param klass: str/class the class to convert to + + :return: int, float, str, bool, date, datetime + """ + additional_message = "" + try: + if klass in {datetime, date}: + additional_message = ( + "If you need your parameter to have a fallback " + "string value, please set its type as `type: {}` in your " + "spec. That allows the value to be any type. " + ) + if klass == datetime: + if len(data) < 8: + raise ValueError("This is not a datetime") + # The string should be in iso8601 datetime format. + parsed_datetime = parse(data) + date_only = ( + parsed_datetime.hour == 0 and + parsed_datetime.minute == 0 and + parsed_datetime.second == 0 and + parsed_datetime.tzinfo is None and + 8 <= len(data) <= 10 + ) + if date_only: + raise ValueError("This is a date, not a datetime") + return parsed_datetime + elif klass == date: + if len(data) < 8: + raise ValueError("This is not a date") + return parse(data).date() + else: + converted_value = klass(data) + if isinstance(data, str) and klass == float: + if str(converted_value) != data: + # '7' -> 7.0 -> '7.0' != '7' + raise ValueError('This is not a float') + return converted_value + except (OverflowError, ValueError) as ex: + # parse can raise OverflowError + raise ApiValueError( + "{0}Failed to parse {1} as {2}".format( + additional_message, repr(data), klass.__name__ + ), + path_to_item=path_to_item + ) from ex + + +def get_discriminator_class(model_class, + discr_name, + discr_value, cls_visited): + """Returns the child class specified by the discriminator. + + Args: + model_class (OpenApiModel): the model class. + discr_name (string): the name of the discriminator property. + discr_value (any): the discriminator value. + cls_visited (list): list of model classes that have been visited. + Used to determine the discriminator class without + visiting circular references indefinitely. + + Returns: + used_model_class (class/None): the chosen child class that will be used + to deserialize the data, for example dog.Dog. + If a class is not found, None is returned. + """ + + if model_class in cls_visited: + # The class has already been visited and no suitable class was found. + return None + cls_visited.append(model_class) + used_model_class = None + if discr_name in model_class.discriminator: + class_name_to_discr_class = model_class.discriminator[discr_name] + used_model_class = class_name_to_discr_class.get(discr_value) + if used_model_class is None: + # We didn't find a discriminated class in class_name_to_discr_class. + # So look in the ancestor or descendant discriminators + # The discriminator mapping may exist in a descendant (anyOf, oneOf) + # or ancestor (allOf). + # Ancestor example: in the GrandparentAnimal -> ParentPet -> ChildCat + # hierarchy, the discriminator mappings may be defined at any level + # in the hierarchy. + # Descendant example: mammal -> whale/zebra/Pig -> BasquePig/DanishPig + # if we try to make BasquePig from mammal, we need to travel through + # the oneOf descendant discriminators to find BasquePig + descendant_classes = model_class._composed_schemas.get('oneOf', ()) + \ + model_class._composed_schemas.get('anyOf', ()) + ancestor_classes = model_class._composed_schemas.get('allOf', ()) + possible_classes = descendant_classes + ancestor_classes + for cls in possible_classes: + # Check if the schema has inherited discriminators. + if hasattr(cls, 'discriminator') and cls.discriminator is not None: + used_model_class = get_discriminator_class( + cls, discr_name, discr_value, cls_visited) + if used_model_class is not None: + return used_model_class + return used_model_class + + +def deserialize_model(model_data, model_class, path_to_item, check_type, + configuration, spec_property_naming): + """Deserializes model_data to model instance. + + Args: + model_data (int/str/float/bool/none_type/list/dict): data to instantiate the model + model_class (OpenApiModel): the model class + path_to_item (list): path to the model in the received data + check_type (bool): whether to check the data tupe for the values in + the model + configuration (Configuration): the instance to use to convert files + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + + Returns: + model instance + + Raise: + ApiTypeError + ApiValueError + ApiKeyError + """ + + kw_args = dict(_check_type=check_type, + _path_to_item=path_to_item, + _configuration=configuration, + _spec_property_naming=spec_property_naming) + + if issubclass(model_class, ModelSimple): + return model_class._new_from_openapi_data(model_data, **kw_args) + elif isinstance(model_data, list): + return model_class._new_from_openapi_data(*model_data, **kw_args) + if isinstance(model_data, dict): + kw_args.update(model_data) + return model_class._new_from_openapi_data(**kw_args) + elif isinstance(model_data, PRIMITIVE_TYPES): + return model_class._new_from_openapi_data(model_data, **kw_args) + + +def deserialize_file(response_data, configuration, content_disposition=None): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + Args: + param response_data (str): the file data to write + configuration (Configuration): the instance to use to convert files + + Keyword Args: + content_disposition (str): the value of the Content-Disposition + header + + Returns: + (file_type): the deserialized file which is open + The user is responsible for closing and reading the file + """ + fd, path = tempfile.mkstemp(dir=configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition, + flags=re.I) + if filename is not None: + filename = filename.group(1) + else: + filename = "default_" + str(uuid.uuid4()) + + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + if isinstance(response_data, str): + # change str to bytes so we can write it + response_data = response_data.encode('utf-8') + f.write(response_data) + + f = open(path, "rb") + return f + + +def attempt_convert_item(input_value, valid_classes, path_to_item, + configuration, spec_property_naming, key_type=False, + must_convert=False, check_type=True): + """ + Args: + input_value (any): the data to convert + valid_classes (any): the classes that are valid + path_to_item (list): the path to the item to convert + configuration (Configuration): the instance to use to convert files + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + key_type (bool): if True we need to convert a key type (not supported) + must_convert (bool): if True we must convert + check_type (bool): if True we check the type or the returned data in + ModelComposed/ModelNormal/ModelSimple instances + + Returns: + instance (any) the fixed item + + Raises: + ApiTypeError + ApiValueError + ApiKeyError + """ + valid_classes_ordered = order_response_types(valid_classes) + valid_classes_coercible = remove_uncoercible( + valid_classes_ordered, input_value, spec_property_naming) + if not valid_classes_coercible or key_type: + # we do not handle keytype errors, json will take care + # of this for us + if configuration is None or not configuration.discard_unknown_keys: + raise get_type_error(input_value, path_to_item, valid_classes, + key_type=key_type) + for valid_class in valid_classes_coercible: + try: + if issubclass(valid_class, OpenApiModel): + return deserialize_model(input_value, valid_class, + path_to_item, check_type, + configuration, spec_property_naming) + elif valid_class == file_type: + return deserialize_file(input_value, configuration) + return deserialize_primitive(input_value, valid_class, + path_to_item) + except (ApiTypeError, ApiValueError, ApiKeyError) as conversion_exc: + if must_convert: + raise conversion_exc + # if we have conversion errors when must_convert == False + # we ignore the exception and move on to the next class + continue + # we were unable to convert, must_convert == False + return input_value + + +def is_type_nullable(input_type): + """ + Returns true if None is an allowed value for the specified input_type. + + A type is nullable if at least one of the following conditions is true: + 1. The OAS 'nullable' attribute has been specified, + 1. The type is the 'null' type, + 1. The type is a anyOf/oneOf composed schema, and a child schema is + the 'null' type. + Args: + input_type (type): the class of the input_value that we are + checking + Returns: + bool + """ + if input_type is none_type: + return True + if issubclass(input_type, OpenApiModel) and input_type._nullable: + return True + if issubclass(input_type, ModelComposed): + # If oneOf/anyOf, check if the 'null' type is one of the allowed types. + for t in input_type._composed_schemas.get('oneOf', ()): + if is_type_nullable(t): + return True + for t in input_type._composed_schemas.get('anyOf', ()): + if is_type_nullable(t): + return True + return False + + +def is_valid_type(input_class_simple, valid_classes): + """ + Args: + input_class_simple (class): the class of the input_value that we are + checking + valid_classes (tuple): the valid classes that the current item + should be + Returns: + bool + """ + if issubclass(input_class_simple, OpenApiModel) and \ + valid_classes == (bool, date, datetime, dict, float, int, list, str, none_type,): + return True + valid_type = input_class_simple in valid_classes + if not valid_type and ( + issubclass(input_class_simple, OpenApiModel) or + input_class_simple is none_type): + for valid_class in valid_classes: + if input_class_simple is none_type and is_type_nullable(valid_class): + # Schema is oneOf/anyOf and the 'null' type is one of the allowed types. + return True + if not (issubclass(valid_class, OpenApiModel) and valid_class.discriminator): + continue + discr_propertyname_py = list(valid_class.discriminator.keys())[0] + discriminator_classes = ( + valid_class.discriminator[discr_propertyname_py].values() + ) + valid_type = is_valid_type(input_class_simple, discriminator_classes) + if valid_type: + return True + return valid_type + + +def validate_and_convert_types(input_value, required_types_mixed, path_to_item, + spec_property_naming, _check_type, configuration=None): + """Raises a TypeError is there is a problem, otherwise returns value + + Args: + input_value (any): the data to validate/convert + required_types_mixed (list/dict/tuple): A list of + valid classes, or a list tuples of valid classes, or a dict where + the value is a tuple of value classes + path_to_item: (list) the path to the data being validated + this stores a list of keys or indices to get to the data being + validated + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + _check_type: (boolean) if true, type will be checked and conversion + will be attempted. + configuration: (Configuration): the configuration class to use + when converting file_type items. + If passed, conversion will be attempted when possible + If not passed, no conversions will be attempted and + exceptions will be raised + + Returns: + the correctly typed value + + Raises: + ApiTypeError + """ + results = get_required_type_classes(required_types_mixed, spec_property_naming) + valid_classes, child_req_types_by_current_type = results + + input_class_simple = get_simple_class(input_value) + valid_type = is_valid_type(input_class_simple, valid_classes) + if not valid_type: + if (configuration + or (input_class_simple == dict + and dict not in valid_classes)): + # if input_value is not valid_type try to convert it + converted_instance = attempt_convert_item( + input_value, + valid_classes, + path_to_item, + configuration, + spec_property_naming, + key_type=False, + must_convert=True, + check_type=_check_type + ) + return converted_instance + else: + raise get_type_error(input_value, path_to_item, valid_classes, + key_type=False) + + # input_value's type is in valid_classes + if len(valid_classes) > 1 and configuration: + # there are valid classes which are not the current class + valid_classes_coercible = remove_uncoercible( + valid_classes, input_value, spec_property_naming, must_convert=False) + if valid_classes_coercible: + converted_instance = attempt_convert_item( + input_value, + valid_classes_coercible, + path_to_item, + configuration, + spec_property_naming, + key_type=False, + must_convert=False, + check_type=_check_type + ) + return converted_instance + + if child_req_types_by_current_type == {}: + # all types are of the required types and there are no more inner + # variables left to look at + return input_value + inner_required_types = child_req_types_by_current_type.get( + type(input_value) + ) + if inner_required_types is None: + # for this type, there are not more inner variables left to look at + return input_value + if isinstance(input_value, list): + if input_value == []: + # allow an empty list + return input_value + for index, inner_value in enumerate(input_value): + inner_path = list(path_to_item) + inner_path.append(index) + input_value[index] = validate_and_convert_types( + inner_value, + inner_required_types, + inner_path, + spec_property_naming, + _check_type, + configuration=configuration + ) + elif isinstance(input_value, dict): + if input_value == {}: + # allow an empty dict + return input_value + for inner_key, inner_val in input_value.items(): + inner_path = list(path_to_item) + inner_path.append(inner_key) + if get_simple_class(inner_key) != str: + raise get_type_error(inner_key, inner_path, valid_classes, + key_type=True) + input_value[inner_key] = validate_and_convert_types( + inner_val, + inner_required_types, + inner_path, + spec_property_naming, + _check_type, + configuration=configuration + ) + return input_value + + +def model_to_dict(model_instance, serialize=True): + """Returns the model properties as a dict + + Args: + model_instance (one of your model instances): the model instance that + will be converted to a dict. + + Keyword Args: + serialize (bool): if True, the keys in the dict will be values from + attribute_map + """ + result = {} + + def extract_item(item): return ( + item[0], model_to_dict( + item[1], serialize=serialize)) if hasattr( + item[1], '_data_store') else item + + model_instances = [model_instance] + if model_instance._composed_schemas: + model_instances.extend(model_instance._composed_instances) + seen_json_attribute_names = set() + used_fallback_python_attribute_names = set() + py_to_json_map = {} + for model_instance in model_instances: + for attr, value in model_instance._data_store.items(): + if serialize: + # we use get here because additional property key names do not + # exist in attribute_map + try: + attr = model_instance.attribute_map[attr] + py_to_json_map.update(model_instance.attribute_map) + seen_json_attribute_names.add(attr) + except KeyError: + used_fallback_python_attribute_names.add(attr) + if isinstance(value, list): + if not value: + # empty list or None + result[attr] = value + else: + res = [] + for v in value: + if isinstance(v, PRIMITIVE_TYPES) or v is None: + res.append(v) + elif isinstance(v, ModelSimple): + res.append(v.value) + elif isinstance(v, dict): + res.append(dict(map( + extract_item, + v.items() + ))) + else: + res.append(model_to_dict(v, serialize=serialize)) + result[attr] = res + elif isinstance(value, dict): + result[attr] = dict(map( + extract_item, + value.items() + )) + elif isinstance(value, ModelSimple): + result[attr] = value.value + elif hasattr(value, '_data_store'): + result[attr] = model_to_dict(value, serialize=serialize) + else: + result[attr] = value + if serialize: + for python_key in used_fallback_python_attribute_names: + json_key = py_to_json_map.get(python_key) + if json_key is None: + continue + if python_key == json_key: + continue + json_key_assigned_no_need_for_python_key = json_key in seen_json_attribute_names + if json_key_assigned_no_need_for_python_key: + del result[python_key] + + return result + + +def type_error_message(var_value=None, var_name=None, valid_classes=None, + key_type=None): + """ + Keyword Args: + var_value (any): the variable which has the type_error + var_name (str): the name of the variable which has the typ error + valid_classes (tuple): the accepted classes for current_item's + value + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + """ + key_or_value = 'value' + if key_type: + key_or_value = 'key' + valid_classes_phrase = get_valid_classes_phrase(valid_classes) + msg = ( + "Invalid type for variable '{0}'. Required {1} type {2} and " + "passed type was {3}".format( + var_name, + key_or_value, + valid_classes_phrase, + type(var_value).__name__, + ) + ) + return msg + + +def get_valid_classes_phrase(input_classes): + """Returns a string phrase describing what types are allowed + """ + all_classes = list(input_classes) + all_classes = sorted(all_classes, key=lambda cls: cls.__name__) + all_class_names = [cls.__name__ for cls in all_classes] + if len(all_class_names) == 1: + return 'is {0}'.format(all_class_names[0]) + return "is one of [{0}]".format(", ".join(all_class_names)) + + +def get_allof_instances(self, model_args, constant_args): + """ + Args: + self: the class we are handling + model_args (dict): var_name to var_value + used to make instances + constant_args (dict): + metadata arguments: + _check_type + _path_to_item + _spec_property_naming + _configuration + _visited_composed_classes + + Returns + composed_instances (list) + """ + composed_instances = [] + for allof_class in self._composed_schemas['allOf']: + + try: + if constant_args.get('_spec_property_naming'): + allof_instance = allof_class._from_openapi_data(**model_args, **constant_args) + else: + allof_instance = allof_class(**model_args, **constant_args) + composed_instances.append(allof_instance) + except Exception as ex: + raise ApiValueError( + "Invalid inputs given to generate an instance of '%s'. The " + "input data was invalid for the allOf schema '%s' in the composed " + "schema '%s'. Error=%s" % ( + allof_class.__name__, + allof_class.__name__, + self.__class__.__name__, + str(ex) + ) + ) from ex + return composed_instances + + +def get_oneof_instance(cls, model_kwargs, constant_kwargs, model_arg=None): + """ + Find the oneOf schema that matches the input data (e.g. payload). + If exactly one schema matches the input data, an instance of that schema + is returned. + If zero or more than one schema match the input data, an exception is raised. + In OAS 3.x, the payload MUST, by validation, match exactly one of the + schemas described by oneOf. + + Args: + cls: the class we are handling + model_kwargs (dict): var_name to var_value + The input data, e.g. the payload that must match a oneOf schema + in the OpenAPI document. + constant_kwargs (dict): var_name to var_value + args that every model requires, including configuration, server + and path to item. + + Kwargs: + model_arg: (int, float, bool, str, date, datetime, ModelSimple, None): + the value to assign to a primitive class or ModelSimple class + Notes: + - this is only passed in when oneOf includes types which are not object + - None is used to suppress handling of model_arg, nullable models are handled in __new__ + + Returns + oneof_instance (instance) + """ + if len(cls._composed_schemas['oneOf']) == 0: + return None + + oneof_instances = [] + # Iterate over each oneOf schema and determine if the input data + # matches the oneOf schemas. + for oneof_class in cls._composed_schemas['oneOf']: + # The composed oneOf schema allows the 'null' type and the input data + # is the null value. This is a OAS >= 3.1 feature. + if oneof_class is none_type: + # skip none_types because we are deserializing dict data. + # none_type deserialization is handled in the __new__ method + continue + + single_value_input = allows_single_value_input(oneof_class) + + try: + if not single_value_input: + if constant_kwargs.get('_spec_property_naming'): + oneof_instance = oneof_class._from_openapi_data( + **model_kwargs, **constant_kwargs) + else: + oneof_instance = oneof_class(**model_kwargs, **constant_kwargs) + else: + if issubclass(oneof_class, ModelSimple): + if constant_kwargs.get('_spec_property_naming'): + oneof_instance = oneof_class._from_openapi_data( + model_arg, **constant_kwargs) + else: + oneof_instance = oneof_class(model_arg, **constant_kwargs) + elif oneof_class in PRIMITIVE_TYPES: + oneof_instance = validate_and_convert_types( + model_arg, + (oneof_class,), + constant_kwargs['_path_to_item'], + constant_kwargs['_spec_property_naming'], + constant_kwargs['_check_type'], + configuration=constant_kwargs['_configuration'] + ) + oneof_instances.append(oneof_instance) + except Exception: + pass + if len(oneof_instances) == 0: + raise ApiValueError( + "Invalid inputs given to generate an instance of %s. None " + "of the oneOf schemas matched the input data." % + cls.__name__ + ) + elif len(oneof_instances) > 1: + raise ApiValueError( + "Invalid inputs given to generate an instance of %s. Multiple " + "oneOf schemas matched the inputs, but a max of one is allowed." % + cls.__name__ + ) + return oneof_instances[0] + + +def get_anyof_instances(self, model_args, constant_args): + """ + Args: + self: the class we are handling + model_args (dict): var_name to var_value + The input data, e.g. the payload that must match at least one + anyOf child schema in the OpenAPI document. + constant_args (dict): var_name to var_value + args that every model requires, including configuration, server + and path to item. + + Returns + anyof_instances (list) + """ + anyof_instances = [] + if len(self._composed_schemas['anyOf']) == 0: + return anyof_instances + + for anyof_class in self._composed_schemas['anyOf']: + # The composed oneOf schema allows the 'null' type and the input data + # is the null value. This is a OAS >= 3.1 feature. + if anyof_class is none_type: + # skip none_types because we are deserializing dict data. + # none_type deserialization is handled in the __new__ method + continue + + try: + if constant_args.get('_spec_property_naming'): + anyof_instance = anyof_class._from_openapi_data(**model_args, **constant_args) + else: + anyof_instance = anyof_class(**model_args, **constant_args) + anyof_instances.append(anyof_instance) + except Exception: + pass + if len(anyof_instances) == 0: + raise ApiValueError( + "Invalid inputs given to generate an instance of %s. None of the " + "anyOf schemas matched the inputs." % + self.__class__.__name__ + ) + return anyof_instances + + +def get_discarded_args(self, composed_instances, model_args): + """ + Gathers the args that were discarded by configuration.discard_unknown_keys + """ + model_arg_keys = model_args.keys() + discarded_args = set() + # arguments passed to self were already converted to python names + # before __init__ was called + for instance in composed_instances: + if instance.__class__ in self._composed_schemas['allOf']: + try: + keys = instance.to_dict().keys() + discarded_keys = model_args - keys + discarded_args.update(discarded_keys) + except Exception: + # allOf integer schema will throw exception + pass + else: + try: + all_keys = set(model_to_dict(instance, serialize=False).keys()) + js_keys = model_to_dict(instance, serialize=True).keys() + all_keys.update(js_keys) + discarded_keys = model_arg_keys - all_keys + discarded_args.update(discarded_keys) + except Exception: + # allOf integer schema will throw exception + pass + return discarded_args + + +def validate_get_composed_info(constant_args, model_args, self): + """ + For composed schemas, generate schema instances for + all schemas in the oneOf/anyOf/allOf definition. If additional + properties are allowed, also assign those properties on + all matched schemas that contain additionalProperties. + Openapi schemas are python classes. + + Exceptions are raised if: + - 0 or > 1 oneOf schema matches the model_args input data + - no anyOf schema matches the model_args input data + - any of the allOf schemas do not match the model_args input data + + Args: + constant_args (dict): these are the args that every model requires + model_args (dict): these are the required and optional spec args that + were passed in to make this model + self (class): the class that we are instantiating + This class contains self._composed_schemas + + Returns: + composed_info (list): length three + composed_instances (list): the composed instances which are not + self + var_name_to_model_instances (dict): a dict going from var_name + to the model_instance which holds that var_name + the model_instance may be self or an instance of one of the + classes in self.composed_instances() + additional_properties_model_instances (list): a list of the + model instances which have the property + additional_properties_type. This list can include self + """ + # create composed_instances + composed_instances = [] + allof_instances = get_allof_instances(self, model_args, constant_args) + composed_instances.extend(allof_instances) + oneof_instance = get_oneof_instance(self.__class__, model_args, constant_args) + if oneof_instance is not None: + composed_instances.append(oneof_instance) + anyof_instances = get_anyof_instances(self, model_args, constant_args) + composed_instances.extend(anyof_instances) + """ + set additional_properties_model_instances + additional properties must be evaluated at the schema level + so self's additional properties are most important + If self is a composed schema with: + - no properties defined in self + - additionalProperties: False + Then for object payloads every property is an additional property + and they are not allowed, so only empty dict is allowed + + Properties must be set on all matching schemas + so when a property is assigned toa composed instance, it must be set on all + composed instances regardless of additionalProperties presence + keeping it to prevent breaking changes in v5.0.1 + TODO remove cls._additional_properties_model_instances in 6.0.0 + """ + additional_properties_model_instances = [] + if self.additional_properties_type is not None: + additional_properties_model_instances = [self] + + """ + no need to set properties on self in here, they will be set in __init__ + By here all composed schema oneOf/anyOf/allOf instances have their properties set using + model_args + """ + discarded_args = get_discarded_args(self, composed_instances, model_args) + + # map variable names to composed_instances + var_name_to_model_instances = {} + for prop_name in model_args: + if prop_name not in discarded_args: + var_name_to_model_instances[prop_name] = [self] + list( + filter( + lambda x: prop_name in x.openapi_types, composed_instances)) + + return [ + composed_instances, + var_name_to_model_instances, + additional_properties_model_instances, + discarded_args + ] diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py new file mode 100644 index 00000000..716294d4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/models/__init__.py @@ -0,0 +1,270 @@ +# flake8: noqa + +# import all models into this package +# if you have many models here with many references from one model to another this may +# raise a RecursionError +# to avoid this, import only the models that you directly need like: +# from criteo_api_marketingsolutions_v2023_07.model.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from criteo_api_marketingsolutions_v2023_07.model.ad import Ad +from criteo_api_marketingsolutions_v2023_07.model.ad_list_response import AdListResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_resource import AdResource +from criteo_api_marketingsolutions_v2023_07.model.ad_response import AdResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1 import AdSetAudienceLinkEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1_resource import AdSetAudienceLinkEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_input_entity_v1 import AdSetAudienceLinkInputEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid import AdSetCategoryBid +from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid_resource import AdSetCategoryBidResource +from criteo_api_marketingsolutions_v2023_07.model.ad_set_delivery_limitations import AdSetDeliveryLimitations +from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier import AdSetDisplayMultiplier +from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource +from criteo_api_marketingsolutions_v2023_07.model.ad_set_frequency_capping import AdSetFrequencyCapping +from criteo_api_marketingsolutions_v2023_07.model.ad_set_geo_location import AdSetGeoLocation +from criteo_api_marketingsolutions_v2023_07.model.ad_set_search_filter import AdSetSearchFilter +from criteo_api_marketingsolutions_v2023_07.model.ad_set_targeting import AdSetTargeting +from criteo_api_marketingsolutions_v2023_07.model.ad_set_targeting_rule import AdSetTargetingRule +from criteo_api_marketingsolutions_v2023_07.model.ad_write import AdWrite +from criteo_api_marketingsolutions_v2023_07.model.ad_write_request import AdWriteRequest +from criteo_api_marketingsolutions_v2023_07.model.ad_write_resource import AdWriteResource +from criteo_api_marketingsolutions_v2023_07.model.adaptive_attributes import AdaptiveAttributes +from criteo_api_marketingsolutions_v2023_07.model.adaptive_colors import AdaptiveColors +from criteo_api_marketingsolutions_v2023_07.model.adaptive_write_attributes import AdaptiveWriteAttributes +from criteo_api_marketingsolutions_v2023_07.model.algebra_node_v1 import AlgebraNodeV1 +from criteo_api_marketingsolutions_v2023_07.model.application_summary_model import ApplicationSummaryModel +from criteo_api_marketingsolutions_v2023_07.model.application_summary_model_resource import ApplicationSummaryModelResource +from criteo_api_marketingsolutions_v2023_07.model.application_summary_model_response import ApplicationSummaryModelResponse +from criteo_api_marketingsolutions_v2023_07.model.audience import Audience +from criteo_api_marketingsolutions_v2023_07.model.audience_attributes import AudienceAttributes +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_create_input_v1 import AudienceBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_delete_input_v1 import AudienceBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_update_input_v1 import AudienceBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_compute_size_entity_v1_resource import AudienceComputeSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_compute_sizes_input_v1 import AudienceComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_create_entity_v1 import AudienceCreateEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_create_entity_v1_resource import AudienceCreateEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_delete_entity_v1_resource import AudienceDeleteEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1 import AudienceEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_audience_search_metadata_v1_list_response import AudienceEntityV1AudienceSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_list_response import AudienceEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_resource import AudienceEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_error import AudienceError +from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_entity_v1 import AudienceEstimateSizeEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_entity_v1_resource import AudienceEstimateSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_input_v1 import AudienceEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_id_entity_v1_list_response import AudienceIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_id_entity_v1_resource import AudienceIdEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_name_description import AudienceNameDescription +from criteo_api_marketingsolutions_v2023_07.model.audience_search_entity_v1 import AudienceSearchEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_search_entity_v1_resource import AudienceSearchEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_search_input_v1 import AudienceSearchInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_search_metadata_v1 import AudienceSearchMetadataV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_create_input_v1 import AudienceSegmentBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_delete_input_v1 import AudienceSegmentBulkDeleteInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_update_input_v1 import AudienceSegmentBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_compute_size_entity_v1_resource import AudienceSegmentComputeSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_compute_sizes_input_v1 import AudienceSegmentComputeSizesInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_create_entity_v1 import AudienceSegmentCreateEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_create_entity_v1_resource import AudienceSegmentCreateEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_delete_entity_v1_resource import AudienceSegmentDeleteEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1 import AudienceSegmentEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response import AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_resource import AudienceSegmentEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_estimate_size_input_v1 import AudienceSegmentEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_id_entity_v1_list_response import AudienceSegmentIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_id_entity_v1_resource import AudienceSegmentIdEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_entity_v1 import AudienceSegmentSearchEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_entity_v1_resource import AudienceSegmentSearchEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_input_v1 import AudienceSegmentSearchInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_metadata_v1 import AudienceSegmentSearchMetadataV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1 import AudienceSegmentSizeEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1_list_response import AudienceSegmentSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1_resource import AudienceSegmentSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_entity_v1 import AudienceSegmentSizeEstimationEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_entity_v1_resource import AudienceSegmentSizeEstimationEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1 import AudienceSegmentSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1_resource import AudienceSegmentSizeEstimationV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1_response import AudienceSegmentSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_update_entity_v1 import AudienceSegmentUpdateEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_update_entity_v1_resource import AudienceSegmentUpdateEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1 import AudienceSizeEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1_list_response import AudienceSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1_resource import AudienceSizeEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1 import AudienceSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1_resource import AudienceSizeEstimationV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1_response import AudienceSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_07.model.audience_update_entity_v1 import AudienceUpdateEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_update_entity_v1_resource import AudienceUpdateEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.audience_warning import AudienceWarning +from criteo_api_marketingsolutions_v2023_07.model.basic_audience_definition import BasicAudienceDefinition +from criteo_api_marketingsolutions_v2023_07.model.behavioral_v1 import BehavioralV1 +from criteo_api_marketingsolutions_v2023_07.model.campaign import Campaign +from criteo_api_marketingsolutions_v2023_07.model.campaign_list_response import CampaignListResponse +from criteo_api_marketingsolutions_v2023_07.model.campaign_read_resource import CampaignReadResource +from criteo_api_marketingsolutions_v2023_07.model.campaign_response import CampaignResponse +from criteo_api_marketingsolutions_v2023_07.model.campaign_search_filters import CampaignSearchFilters +from criteo_api_marketingsolutions_v2023_07.model.campaign_search_request import CampaignSearchRequest +from criteo_api_marketingsolutions_v2023_07.model.campaign_spend_limit import CampaignSpendLimit +from criteo_api_marketingsolutions_v2023_07.model.campaign_spend_limit_v23_q1 import CampaignSpendLimitV23Q1 +from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1 import CampaignV23Q1 +from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1_resource import CampaignV23Q1Resource +from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1_response import CampaignV23Q1Response +from criteo_api_marketingsolutions_v2023_07.model.common_problem import CommonProblem +from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1 import ContactListStatisticsEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1_resource import ContactListStatisticsEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1_response import ContactListStatisticsEntityV1Response +from criteo_api_marketingsolutions_v2023_07.model.contact_list_v1 import ContactListV1 +from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment import ContactlistAmendment +from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment_attributes import ContactlistAmendmentAttributes +from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment_request import ContactlistAmendmentRequest +from criteo_api_marketingsolutions_v2023_07.model.contactlist_operation import ContactlistOperation +from criteo_api_marketingsolutions_v2023_07.model.contactlist_operation_attributes import ContactlistOperationAttributes +from criteo_api_marketingsolutions_v2023_07.model.coupon import Coupon +from criteo_api_marketingsolutions_v2023_07.model.coupon_list_response import CouponListResponse +from criteo_api_marketingsolutions_v2023_07.model.coupon_resource import CouponResource +from criteo_api_marketingsolutions_v2023_07.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes import CouponSupportedSizes +from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes_resource import CouponSupportedSizesResource +from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes_response import CouponSupportedSizesResponse +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set import CreateAdSet +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_bidding import CreateAdSetBidding +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_budget import CreateAdSetBudget +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_geo_location import CreateAdSetGeoLocation +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_request import CreateAdSetRequest +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_resource import CreateAdSetResource +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_schedule import CreateAdSetSchedule +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_targeting import CreateAdSetTargeting +from criteo_api_marketingsolutions_v2023_07.model.create_campaign import CreateCampaign +from criteo_api_marketingsolutions_v2023_07.model.create_campaign_request import CreateCampaignRequest +from criteo_api_marketingsolutions_v2023_07.model.create_campaign_resource import CreateCampaignResource +from criteo_api_marketingsolutions_v2023_07.model.create_campaign_spend_limit import CreateCampaignSpendLimit +from criteo_api_marketingsolutions_v2023_07.model.create_coupon import CreateCoupon +from criteo_api_marketingsolutions_v2023_07.model.create_coupon_request import CreateCouponRequest +from criteo_api_marketingsolutions_v2023_07.model.create_coupon_resource import CreateCouponResource +from criteo_api_marketingsolutions_v2023_07.model.create_image_slide import CreateImageSlide +from criteo_api_marketingsolutions_v2023_07.model.creative import Creative +from criteo_api_marketingsolutions_v2023_07.model.creative_list_response import CreativeListResponse +from criteo_api_marketingsolutions_v2023_07.model.creative_resource import CreativeResource +from criteo_api_marketingsolutions_v2023_07.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_07.model.creative_write import CreativeWrite +from criteo_api_marketingsolutions_v2023_07.model.creative_write_request import CreativeWriteRequest +from criteo_api_marketingsolutions_v2023_07.model.creative_write_resource import CreativeWriteResource +from criteo_api_marketingsolutions_v2023_07.model.criteo_api_error import CriteoApiError +from criteo_api_marketingsolutions_v2023_07.model.criteo_api_warning import CriteoApiWarning +from criteo_api_marketingsolutions_v2023_07.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse +from criteo_api_marketingsolutions_v2023_07.model.delete_audience_response import DeleteAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.dynamic_attributes import DynamicAttributes +from criteo_api_marketingsolutions_v2023_07.model.dynamic_write_attributes import DynamicWriteAttributes +from criteo_api_marketingsolutions_v2023_07.model.entity_of_portfolio_message import EntityOfPortfolioMessage +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.get_audiences_response import GetAudiencesResponse +from criteo_api_marketingsolutions_v2023_07.model.get_portfolio_response import GetPortfolioResponse +from criteo_api_marketingsolutions_v2023_07.model.html_tag_attributes import HtmlTagAttributes +from criteo_api_marketingsolutions_v2023_07.model.html_tag_write_attributes import HtmlTagWriteAttributes +from criteo_api_marketingsolutions_v2023_07.model.image_attributes import ImageAttributes +from criteo_api_marketingsolutions_v2023_07.model.image_set import ImageSet +from criteo_api_marketingsolutions_v2023_07.model.image_set_base64 import ImageSetBase64 +from criteo_api_marketingsolutions_v2023_07.model.image_shape import ImageShape +from criteo_api_marketingsolutions_v2023_07.model.image_slide import ImageSlide +from criteo_api_marketingsolutions_v2023_07.model.image_write_attributes import ImageWriteAttributes +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1 import InMarketAudienceSegmentBrandEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1_list_response import InMarketAudienceSegmentBrandEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1_resource import InMarketAudienceSegmentBrandEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1 import InMarketAudienceSegmentInterestEntityV1 +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1_list_response import InMarketAudienceSegmentInterestEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1_resource import InMarketAudienceSegmentInterestEntityV1Resource +from criteo_api_marketingsolutions_v2023_07.model.in_market_create_v1 import InMarketCreateV1 +from criteo_api_marketingsolutions_v2023_07.model.in_market_size_estimation_v1 import InMarketSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_07.model.in_market_update_v1 import InMarketUpdateV1 +from criteo_api_marketingsolutions_v2023_07.model.in_market_v1 import InMarketV1 +from criteo_api_marketingsolutions_v2023_07.model.location_create_v1 import LocationCreateV1 +from criteo_api_marketingsolutions_v2023_07.model.location_size_estimation_v1 import LocationSizeEstimationV1 +from criteo_api_marketingsolutions_v2023_07.model.location_update_v1 import LocationUpdateV1 +from criteo_api_marketingsolutions_v2023_07.model.location_v1 import LocationV1 +from criteo_api_marketingsolutions_v2023_07.model.lookalike_create_v1 import LookalikeCreateV1 +from criteo_api_marketingsolutions_v2023_07.model.lookalike_update_v1 import LookalikeUpdateV1 +from criteo_api_marketingsolutions_v2023_07.model.lookalike_v1 import LookalikeV1 +from criteo_api_marketingsolutions_v2023_07.model.modify_audience_response import ModifyAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.new_audience import NewAudience +from criteo_api_marketingsolutions_v2023_07.model.new_audience_attributes import NewAudienceAttributes +from criteo_api_marketingsolutions_v2023_07.model.new_audience_request import NewAudienceRequest +from criteo_api_marketingsolutions_v2023_07.model.new_audience_response import NewAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.nillable_ad_set_targeting_rule import NillableAdSetTargetingRule +from criteo_api_marketingsolutions_v2023_07.model.nillable_ad_set_targeting_rule_value import NillableAdSetTargetingRuleValue +from criteo_api_marketingsolutions_v2023_07.model.nillable_date_time import NillableDateTime +from criteo_api_marketingsolutions_v2023_07.model.nillable_decimal import NillableDecimal +from criteo_api_marketingsolutions_v2023_07.model.nillable_gender_v1 import NillableGenderV1 +from criteo_api_marketingsolutions_v2023_07.model.nillable_int32 import NillableInt32 +from criteo_api_marketingsolutions_v2023_07.model.nillable_string import NillableString +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set import PatchAdSet +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_bidding import PatchAdSetBidding +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_budget import PatchAdSetBudget +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid import PatchAdSetCategoryBid +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_resource import PatchAdSetCategoryBidResource +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_result_resource import PatchAdSetCategoryBidResultResource +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier import PatchAdSetDisplayMultiplier +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_resource import PatchAdSetDisplayMultiplierResource +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_result_resource import PatchAdSetDisplayMultiplierResultResource +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_scheduling import PatchAdSetScheduling +from criteo_api_marketingsolutions_v2023_07.model.patch_campaign import PatchCampaign +from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_list_request import PatchCampaignListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_spend_limit import PatchCampaignSpendLimit +from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_write_resource import PatchCampaignWriteResource +from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_read_resource import PatchResultCampaignReadResource +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_entity_message import PlacementsReportQueryEntityMessage +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_message import PlacementsReportQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.point_of_interest_v1 import PointOfInterestV1 +from criteo_api_marketingsolutions_v2023_07.model.portfolio_message import PortfolioMessage +from criteo_api_marketingsolutions_v2023_07.model.problem_details import ProblemDetails +from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.prospecting_create_v1 import ProspectingCreateV1 +from criteo_api_marketingsolutions_v2023_07.model.prospecting_update_v1 import ProspectingUpdateV1 +from criteo_api_marketingsolutions_v2023_07.model.prospecting_v1 import ProspectingV1 +from criteo_api_marketingsolutions_v2023_07.model.read_ad_set import ReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.read_ad_set_bidding import ReadAdSetBidding +from criteo_api_marketingsolutions_v2023_07.model.read_ad_set_budget import ReadAdSetBudget +from criteo_api_marketingsolutions_v2023_07.model.read_ad_set_schedule import ReadAdSetSchedule +from criteo_api_marketingsolutions_v2023_07.model.read_model_ad_set_id import ReadModelAdSetId +from criteo_api_marketingsolutions_v2023_07.model.read_model_read_ad_set import ReadModelReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.replace_audience import ReplaceAudience +from criteo_api_marketingsolutions_v2023_07.model.replace_audience_request import ReplaceAudienceRequest +from criteo_api_marketingsolutions_v2023_07.model.replace_audience_response import ReplaceAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.request_ad_set_search import RequestAdSetSearch +from criteo_api_marketingsolutions_v2023_07.model.requests_ad_set_id import RequestsAdSetId +from criteo_api_marketingsolutions_v2023_07.model.requests_patch_ad_set import RequestsPatchAdSet +from criteo_api_marketingsolutions_v2023_07.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_07.model.response_read_ad_set import ResponseReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId +from criteo_api_marketingsolutions_v2023_07.model.responses_read_ad_set import ResponsesReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.retargeting_create_v1 import RetargetingCreateV1 +from criteo_api_marketingsolutions_v2023_07.model.retargeting_update_v1 import RetargetingUpdateV1 +from criteo_api_marketingsolutions_v2023_07.model.retargeting_v1 import RetargetingV1 +from criteo_api_marketingsolutions_v2023_07.model.size import Size +from criteo_api_marketingsolutions_v2023_07.model.statistics_report_query_message import StatisticsReportQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.tag import Tag +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_entity_message import TransactionsReportQueryEntityMessage +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_message import TransactionsReportQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_attributes import TransparencyReportAttributes +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_data_message import TransparencyReportDataMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_entity_message import TransparencyReportEntityMessage +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_file import TransparencyReportFile +from criteo_api_marketingsolutions_v2023_07.model.update_coupon import UpdateCoupon +from criteo_api_marketingsolutions_v2023_07.model.update_coupon_request import UpdateCouponRequest +from criteo_api_marketingsolutions_v2023_07.model.update_coupon_resource import UpdateCouponResource +from criteo_api_marketingsolutions_v2023_07.model.video_detail import VideoDetail +from criteo_api_marketingsolutions_v2023_07.model.write_model_ad_set_id import WriteModelAdSetId +from criteo_api_marketingsolutions_v2023_07.model.write_model_patch_ad_set import WriteModelPatchAdSet diff --git a/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/rest.py b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/rest.py new file mode 100644 index 00000000..bbe6601e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/criteo_api_marketingsolutions_v2023_07/rest.py @@ -0,0 +1,352 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import io +import json +import logging +import re +import ssl +from urllib.parse import urlencode +from urllib.parse import urlparse +from urllib.request import proxy_bypass_environment +import urllib3 +import ipaddress + +from criteo_api_marketingsolutions_v2023_07.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + + if configuration.socket_options is not None: + addition_pool_args['socket_options'] = configuration.socket_options + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy and not should_bypass_proxies( + configuration.host, no_proxy=configuration.no_proxy or ''): + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=configuration.ssl_ca_cert, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=configuration.ssl_ca_cert, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + # Only set a default Content-Type for POST, PUT, PATCH and OPTIONS requests + if (method != 'DELETE') and ('Content-Type' not in headers): + headers['Content-Type'] = 'application/json' + if query_params: + url += '?' + urlencode(query_params) + if ('Content-Type' not in headers) or (re.search('json', + headers['Content-Type'], re.IGNORECASE)): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str) or isinstance(body, bytes): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + if r.status == 401: + raise UnauthorizedException(http_resp=r) + + if r.status == 403: + raise ForbiddenException(http_resp=r) + + if r.status == 404: + raise NotFoundException(http_resp=r) + + if 500 <= r.status <= 599: + raise ServiceException(http_resp=r) + + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + +# end of class RESTClientObject + + +def is_ipv4(target): + """ Test if IPv4 address or not + """ + try: + chk = ipaddress.IPv4Address(target) + return True + except ipaddress.AddressValueError: + return False + + +def in_ipv4net(target, net): + """ Test if target belongs to given IPv4 network + """ + try: + nw = ipaddress.IPv4Network(net) + ip = ipaddress.IPv4Address(target) + if ip in nw: + return True + return False + except ipaddress.AddressValueError: + return False + except ipaddress.NetmaskValueError: + return False + + +def should_bypass_proxies(url, no_proxy=None): + """ Yet another requests.should_bypass_proxies + Test if proxies should not be used for a particular url. + """ + + parsed = urlparse(url) + + # special cases + if parsed.hostname in [None, '']: + return True + + # special cases + if no_proxy in [None, '']: + return False + if no_proxy == '*': + return True + + no_proxy = no_proxy.lower().replace(' ', ''); + entries = ( + host for host in no_proxy.split(',') if host + ) + + if is_ipv4(parsed.hostname): + for item in entries: + if in_ipv4net(parsed.hostname, item): + return True + return proxy_bypass_environment(parsed.hostname, {'no': no_proxy}) diff --git a/sdks/marketingsolutions_2023-07/docs/Ad.md b/sdks/marketingsolutions_2023-07/docs/Ad.md new file mode 100644 index 00000000..0e895638 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Ad.md @@ -0,0 +1,19 @@ +# Ad + +An ad is the binding that connects a creative with an ad set + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the ad | [optional] +**description** | **str** | The description of the ad | [optional] +**creative_id** | **str** | The id of the Creative binded to this Ad | [optional] +**ad_set_id** | **str** | The id of the Ad Set binded to this Ad | [optional] +**inventory_type** | **str** | The inventory the Ad belongs to. Possible values are \"Display\" and \"Native\". This is optional since this doesn't make sense for every creative type but will throw an error if not set for a dynamic creative. | [optional] +**start_date** | **str** | The date when the ad will be launched String must be in ISO8601 format | [optional] +**end_date** | **str** | The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdListResponse.md b/sdks/marketingsolutions_2023-07/docs/AdListResponse.md new file mode 100644 index 00000000..5410ac59 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdListResponse.md @@ -0,0 +1,15 @@ +# AdListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AdResource]**](AdResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdResource.md b/sdks/marketingsolutions_2023-07/docs/AdResource.md new file mode 100644 index 00000000..98f26eb7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdResource.md @@ -0,0 +1,15 @@ +# AdResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Ad**](Ad.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdResponse.md b/sdks/marketingsolutions_2023-07/docs/AdResponse.md new file mode 100644 index 00000000..a23d8ecb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdResponse.md @@ -0,0 +1,15 @@ +# AdResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AdResource**](AdResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/EnvelopeReportStatus.md b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1.md similarity index 81% rename from sdks/retailmedia_preview/docs/EnvelopeReportStatus.md rename to sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1.md index 6bb4f128..7ecb5494 100644 --- a/sdks/retailmedia_preview/docs/EnvelopeReportStatus.md +++ b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1.md @@ -1,11 +1,11 @@ -# EnvelopeReportStatus +# AdSetAudienceLinkEntityV1 -Standard response envelope +Link Audience with an ad set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReportStatus**](ReportStatus.md) | | +**audience_id** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Resource.md new file mode 100644 index 00000000..b3cf8724 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Resource.md @@ -0,0 +1,15 @@ +# AdSetAudienceLinkEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AdSetAudienceLinkEntityV1**](AdSetAudienceLinkEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Response.md b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Response.md new file mode 100644 index 00000000..338ccefc --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkEntityV1Response.md @@ -0,0 +1,15 @@ +# AdSetAudienceLinkEntityV1Response + +A top-level object that encapsulates a Criteo API response for a single entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AdSetAudienceLinkEntityV1Resource**](AdSetAudienceLinkEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkInputEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkInputEntityV1.md new file mode 100644 index 00000000..c7d36dc7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetAudienceLinkInputEntityV1.md @@ -0,0 +1,13 @@ +# AdSetAudienceLinkInputEntityV1 + +Input to set audience ad set link. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AdSetAudienceLinkEntityV1Resource**](AdSetAudienceLinkEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBid.md b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBid.md new file mode 100644 index 00000000..b035acf9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBid.md @@ -0,0 +1,14 @@ +# AdSetCategoryBid + +Category Bid information about a Category for a given Ad Set. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category_name** | **str** | The name of the Category to which the Category Bid has been applied. | [optional] +**bid_amount** | **float** | The Bid amount applied to the given Category associated to an Ad Set. At most 4 decimals are supported. Additional decimals are rounded. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md new file mode 100644 index 00000000..7c8b5d8e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidListResponse.md @@ -0,0 +1,15 @@ +# AdSetCategoryBidListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AdSetCategoryBidResource]**](AdSetCategoryBidResource.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidResource.md b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidResource.md new file mode 100644 index 00000000..3dad35a5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetCategoryBidResource.md @@ -0,0 +1,15 @@ +# AdSetCategoryBidResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AdSetCategoryBid**](AdSetCategoryBid.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md b/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md new file mode 100644 index 00000000..c9791e1c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetDeliveryLimitations.md @@ -0,0 +1,15 @@ +# AdSetDeliveryLimitations + +ad set delivery limitations model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**environments** | **[str]** | List of environments which the ad set should target | [optional] +**devices** | **[str]** | List of devices which the ad set should target | [optional] +**operating_systems** | **[str]** | List of operating systems which the ad set should target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplier.md b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplier.md new file mode 100644 index 00000000..2907acf0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplier.md @@ -0,0 +1,14 @@ +# AdSetDisplayMultiplier + +Display Multiplier information about a Category for a given Ad Set. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category_name** | **str** | The name of the Category to which the given for which the Display Multiplier has been applied. | [optional] +**display_multiplier** | **float** | The Display Multiplier applied to the given Category associated to an Ad Set. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md new file mode 100644 index 00000000..4b53a708 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierListResponse.md @@ -0,0 +1,15 @@ +# AdSetDisplayMultiplierListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AdSetDisplayMultiplierResource]**](AdSetDisplayMultiplierResource.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierResource.md new file mode 100644 index 00000000..125b2007 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetDisplayMultiplierResource.md @@ -0,0 +1,15 @@ +# AdSetDisplayMultiplierResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AdSetDisplayMultiplier**](AdSetDisplayMultiplier.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md b/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md new file mode 100644 index 00000000..c1bd46d9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetFrequencyCapping.md @@ -0,0 +1,14 @@ +# AdSetFrequencyCapping + +ad set frequency capping model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**frequency** | **str** | Period on which impression limitation is calculated | [optional] +**maximum_impressions** | **int** | Maximum impressions for the specified period | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md b/sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md new file mode 100644 index 00000000..bebec3c4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetGeoLocation.md @@ -0,0 +1,15 @@ +# AdSetGeoLocation + +ad set geolocation model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countries** | [**NillableAdSetTargetingRule**](NillableAdSetTargetingRule.md) | | [optional] +**subdivisions** | [**NillableAdSetTargetingRule**](NillableAdSetTargetingRule.md) | | [optional] +**zip_codes** | [**NillableAdSetTargetingRule**](NillableAdSetTargetingRule.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md b/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md new file mode 100644 index 00000000..cfeafc13 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetSearchFilter.md @@ -0,0 +1,15 @@ +# AdSetSearchFilter + +filter on ad set ids + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ad_set_ids** | **[str]** | Ad set ids to filter on | [optional] +**advertiser_ids** | **[str]** | Advertiser ids which ad sets belongs to (indirectly via their marketing campaign) | [optional] +**campaign_ids** | **[str]** | Campaign ids to filter on | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md b/sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md new file mode 100644 index 00000000..c1cc45e7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetTargeting.md @@ -0,0 +1,15 @@ +# AdSetTargeting + +ad set targeting model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delivery_limitations** | [**AdSetDeliveryLimitations**](AdSetDeliveryLimitations.md) | | [optional] +**geo_location** | [**AdSetGeoLocation**](AdSetGeoLocation.md) | | [optional] +**frequency_capping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md b/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md new file mode 100644 index 00000000..5c4c8563 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdSetTargetingRule.md @@ -0,0 +1,14 @@ +# AdSetTargetingRule + +ad set targeting rule model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operand** | **str** | Operand which states how the values should be applied | [optional] +**values** | **[str]** | List of values to apply | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdWrite.md b/sdks/marketingsolutions_2023-07/docs/AdWrite.md new file mode 100644 index 00000000..32e9617a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdWrite.md @@ -0,0 +1,19 @@ +# AdWrite + +Entity to create or update an ad + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the ad | +**creative_id** | **str** | The id of the Creative bound to this Ad | +**ad_set_id** | **str** | The id of the Ad Set bound to this Ad | +**start_date** | **str** | The date when the ad will be launched String must be in ISO8601 format | +**description** | **str** | The description of the ad | [optional] +**inventory_type** | **str** | The inventory the Ad to be created or updated belongs to. Possible values are \"Display\" and \"Native\". This is optional since this doesn't make sense for every creative type but will throw an error if not set for a dynamic creative. | [optional] +**end_date** | **str** | The date when when we will stop to show this ad. If the end date is not specified (i.e. null) then the ad will go on forever String must be in ISO8601 format | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdWriteRequest.md b/sdks/marketingsolutions_2023-07/docs/AdWriteRequest.md new file mode 100644 index 00000000..d6ae0b45 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdWriteRequest.md @@ -0,0 +1,13 @@ +# AdWriteRequest + +Data model for input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AdWriteResource**](AdWriteResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdWriteResource.md b/sdks/marketingsolutions_2023-07/docs/AdWriteResource.md new file mode 100644 index 00000000..f1496b7a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdWriteResource.md @@ -0,0 +1,15 @@ +# AdWriteResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AdWrite**](AdWrite.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdaptiveAttributes.md b/sdks/marketingsolutions_2023-07/docs/AdaptiveAttributes.md new file mode 100644 index 00000000..dbe3d0e0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdaptiveAttributes.md @@ -0,0 +1,24 @@ +# AdaptiveAttributes + +The attributes specific to Adaptive creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layouts** | **[str]** | The Adaptive layouts that are enabled. It can contain any of the following values: \"Editorial\", “Montage“, \"InBannerVideo\". | +**logos** | [**[ImageShape]**](ImageShape.md) | Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net | +**headline_text** | **str** | The headline text of the banner | +**headline_font** | **str** | Font of the headline Valid supported font like \"Arial\" | +**description_text** | **str** | The description text of the banner | +**description_font** | **str** | Font of the description Valid supported font like \"Arial\" | +**calls_to_action** | **[str]** | A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. | +**colors** | [**AdaptiveColors**](AdaptiveColors.md) | | +**landing_page_url** | **str** | Web redirection of the landing page url | +**image_sets** | [**[ImageSet]**](ImageSet.md) | Multiple image sets, each image set consists of multiple images and a headline text. | [optional] +**image_display** | **str** | Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your image set should fit inside the allocated space (\"ShowFullImage\") or whether it should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. | [optional] +**videos** | [**[VideoDetail]**](VideoDetail.md) | Multiple videos potentially in different shapes. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdaptiveColors.md b/sdks/marketingsolutions_2023-07/docs/AdaptiveColors.md new file mode 100644 index 00000000..1d5d2f8e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdaptiveColors.md @@ -0,0 +1,18 @@ +# AdaptiveColors + +Entity consists of the color aliases of the creative's elements + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logo_area_and_title_color** | **str** | Color of the creative's logo area. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). | +**background_color** | **str** | Color of the creative's background. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") | +**text1_color** | **str** | Color of the headline and the description texts. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") | +**text2_color** | **str** | Color of the image set's headline text. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\") | +**cta_background_color** | **str** | Color of the background of the CTA. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). | +**cta_text_color** | **str** | Color of the text of the CTA. A valid RGB24 color in hexadecimal (e.g. \"AB00FF\"). | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdaptiveWriteAttributes.md b/sdks/marketingsolutions_2023-07/docs/AdaptiveWriteAttributes.md new file mode 100644 index 00000000..b2172cb2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdaptiveWriteAttributes.md @@ -0,0 +1,24 @@ +# AdaptiveWriteAttributes + +The attributes specific to create or update an Adaptive creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**layouts** | **[str]** | The Adaptive layouts that are enabled. It can contain any of the following values: \"Editorial\", “Montage“, \"InBannerVideo\". | +**logo_base64_string** | **str** | Logo image as a base-64 encoded string | +**headline_text** | **str** | The headline text of the banner | +**headline_font** | **str** | Font of the headline Valid supported font like \"Arial\" | +**description_text** | **str** | The description text of the banner | +**description_font** | **str** | Font of the description Valid supported font like \"Arial\" | +**calls_to_action** | **[str]** | A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. | +**colors** | [**AdaptiveColors**](AdaptiveColors.md) | | +**landing_page_url** | **str** | Web redirection of the landing page url. | +**image_sets_base64** | [**[ImageSetBase64]**](ImageSetBase64.md) | Multiple image sets, each image set consists of multiple images as a base-64 encoded string and a headline text. | [optional] +**image_display** | **str** | Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your image set should fit inside the allocated space (\"ShowFullImage\") or whether it should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. | [optional] +**video_base64_strings** | **[str]** | Multiple videos potentially in different shapes, each video is a base-64 encoded string. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md b/sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md new file mode 100644 index 00000000..d86dfb93 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AdvertiserApi.md @@ -0,0 +1,90 @@ +# criteo_api_marketingsolutions_v2023_07.AdvertiserApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**api_portfolio_get**](AdvertiserApi.md#api_portfolio_get) | **GET** /2023-07/advertisers/me | + + +# **api_portfolio_get** +> GetPortfolioResponse api_portfolio_get() + + + +Fetch the portfolio of Advertisers for this account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import advertiser_api +from criteo_api_marketingsolutions_v2023_07.model.get_portfolio_response import GetPortfolioResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = advertiser_api.AdvertiserApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.api_portfolio_get() + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AdvertiserApi->api_portfolio_get: %s\n" % e) +``` + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**GetPortfolioResponse**](GetPortfolioResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, text/plain, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**401** | Unauthorized | - | + +[[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/sdks/marketingsolutions_2023-07/docs/AlgebraNodeV1.md b/sdks/marketingsolutions_2023-07/docs/AlgebraNodeV1.md new file mode 100644 index 00000000..a23a9a3e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AlgebraNodeV1.md @@ -0,0 +1,16 @@ +# AlgebraNodeV1 + +Node in the audience algebra definition. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_and** | [**[AlgebraNodeV1]**](AlgebraNodeV1.md) | | [optional] +**_or** | [**[AlgebraNodeV1]**](AlgebraNodeV1.md) | | [optional] +**_not** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | [optional] +**audience_segment_id** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md b/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md new file mode 100644 index 00000000..5b3baf0f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AnalyticsApi.md @@ -0,0 +1,440 @@ +# criteo_api_marketingsolutions_v2023_07.AnalyticsApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_adset_report**](AnalyticsApi.md#get_adset_report) | **POST** /2023-07/statistics/report | +[**get_placements_report**](AnalyticsApi.md#get_placements_report) | **POST** /2023-07/placements/report | +[**get_transactions_report**](AnalyticsApi.md#get_transactions_report) | **POST** /2023-07/transactions/report | +[**get_transparency_report**](AnalyticsApi.md#get_transparency_report) | **POST** /2023-07/log-level/advertisers/{advertiser-id}/report | + + +# **get_adset_report** +> str get_adset_report() + + + +This Statistics endpoint provides adset related data. It is an upgrade of our previous Statistics endpoint, and includes new metrics and customization capabilities. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import analytics_api +from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.statistics_report_query_message import StatisticsReportQueryMessage +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + statistics_report_query_message = StatisticsReportQueryMessage( + advertiser_ids="advertiser_ids_example", + ad_set_ids=[ + "ad_set_ids_example", + ], + ad_set_names=[ + "ad_set_names_example", + ], + ad_set_status=[ + "ad_set_status_example", + ], + dimensions=[ + "AdsetId", + ], + metrics=[ + "metrics_example", + ], + currency="currency_example", + format="format_example", + timezone="UTC", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + ) # StatisticsReportQueryMessage | (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_adset_report(statistics_report_query_message=statistics_report_query_message) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_adset_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **statistics_report_query_message** | [**StatisticsReportQueryMessage**](StatisticsReportQueryMessage.md)| | [optional] + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_placements_report** +> str get_placements_report() + + + +Your ads are placed in different domains (publishers) and environments (websites and apps). Thanks to the placements endpoint, you can analyse the performances for each publisher, comparing displays, clicks and sales generated. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import analytics_api +from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.placements_report_query_data_message import PlacementsReportQueryDataMessage +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + placements_report_query_data_message = PlacementsReportQueryDataMessage( + data=[ + PlacementsReportQueryEntityMessage( + type="type_example", + attributes=PlacementsReportQueryMessage( + advertiser_ids="advertiser_ids_example", + campaign_ids="campaign_ids_example", + adset_ids="adset_ids_example", + environment="environment_example", + placement="placement_example", + dimensions=[ + "AdsetId", + ], + metrics=[ + "metrics_example", + ], + currency="currency_example", + disclosed=True, + format="format_example", + timezone="UTC", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + ), + ), + ], + ) # PlacementsReportQueryDataMessage | (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_placements_report(placements_report_query_data_message=placements_report_query_data_message) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_placements_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **placements_report_query_data_message** | [**PlacementsReportQueryDataMessage**](PlacementsReportQueryDataMessage.md)| | [optional] + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_transactions_report** +> str get_transactions_report() + + + +This Transactions endpoint provides transactions id related data. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import analytics_api +from criteo_api_marketingsolutions_v2023_07.model.transactions_report_query_data_message import TransactionsReportQueryDataMessage +from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + transactions_report_query_data_message = TransactionsReportQueryDataMessage( + data=[ + TransactionsReportQueryEntityMessage( + type="type_example", + attributes=TransactionsReportQueryMessage( + advertiser_ids="advertiser_ids_example", + event_type="event_type_example", + currency="currency_example", + format="format_example", + timezone="UTC", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + ), + ), + ], + ) # TransactionsReportQueryDataMessage | (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_transactions_report(transactions_report_query_data_message=transactions_report_query_data_message) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_transactions_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transactions_report_query_data_message** | [**TransactionsReportQueryDataMessage**](TransactionsReportQueryDataMessage.md)| | [optional] + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json, text/csv, text/xml, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_transparency_report** +> TransparencyReportDataMessage get_transparency_report(advertiser_id) + + + +This Statistics endpoint provides publisher data. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import analytics_api +from criteo_api_marketingsolutions_v2023_07.model.transparency_query_message import TransparencyQueryMessage +from criteo_api_marketingsolutions_v2023_07.model.problems_details import ProblemsDetails +from criteo_api_marketingsolutions_v2023_07.model.transparency_report_data_message import TransparencyReportDataMessage +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + advertiser_id = 1 # int | The advertiser id to fetch the transparency data. + transparency_query_message = TransparencyQueryMessage( + should_display_product_ids=False, + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + ) # TransparencyQueryMessage | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_transparency_report(advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_transparency_report: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_transparency_report(advertiser_id, transparency_query_message=transparency_query_message) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_transparency_report: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **int**| The advertiser id to fetch the transparency data. | + **transparency_query_message** | [**TransparencyQueryMessage**](TransparencyQueryMessage.md)| | [optional] + +### Return type + +[**TransparencyReportDataMessage**](TransparencyReportDataMessage.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json, text/plain, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModel.md b/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModel.md new file mode 100644 index 00000000..ca098c15 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModel.md @@ -0,0 +1,17 @@ +# ApplicationSummaryModel + +Model of ApplicationSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_id** | **int** | | [optional] +**name** | **str** | | [optional] +**organization_id** | **int** | | [optional] +**description** | **str** | | [optional] +**criteo_service** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResource.md b/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResource.md new file mode 100644 index 00000000..76b5913d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResource.md @@ -0,0 +1,14 @@ +# ApplicationSummaryModelResource + +A class that represents a ValueType in a guild compliant way + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ApplicationSummaryModel**](ApplicationSummaryModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResponse.md b/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResponse.md new file mode 100644 index 00000000..0393e98e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ApplicationSummaryModelResponse.md @@ -0,0 +1,15 @@ +# ApplicationSummaryModelResponse + +Response of ApplicationSummaryModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ApplicationSummaryModelResource**](ApplicationSummaryModelResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/Audience.md b/sdks/marketingsolutions_2023-07/docs/Audience.md new file mode 100644 index 00000000..24156138 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Audience.md @@ -0,0 +1,15 @@ +# Audience + +Definition of an audience and all its information + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**id** | **str** | id of the Audience | +**attributes** | [**AudienceAttributes**](AudienceAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceApi.md b/sdks/marketingsolutions_2023-07/docs/AudienceApi.md new file mode 100644 index 00000000..e64cf8d1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceApi.md @@ -0,0 +1,2196 @@ +# criteo_api_marketingsolutions_v2023_07.AudienceApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**bulk_create_audience_segments**](AudienceApi.md#bulk_create_audience_segments) | **POST** /2023-07/marketing-solutions/audience-segments/create | +[**bulk_create_audiences**](AudienceApi.md#bulk_create_audiences) | **POST** /2023-07/marketing-solutions/audiences/create | +[**bulk_delete_audience_segments**](AudienceApi.md#bulk_delete_audience_segments) | **POST** /2023-07/marketing-solutions/audience-segments/delete | +[**bulk_delete_audiences**](AudienceApi.md#bulk_delete_audiences) | **POST** /2023-07/marketing-solutions/audiences/delete | +[**bulk_update_audience_segments**](AudienceApi.md#bulk_update_audience_segments) | **PATCH** /2023-07/marketing-solutions/audience-segments | +[**bulk_update_audiences**](AudienceApi.md#bulk_update_audiences) | **PATCH** /2023-07/marketing-solutions/audiences | +[**compute_audience_segments_sizes**](AudienceApi.md#compute_audience_segments_sizes) | **POST** /2023-07/marketing-solutions/audience-segments/compute-sizes | +[**compute_audiences_sizes**](AudienceApi.md#compute_audiences_sizes) | **POST** /2023-07/marketing-solutions/audiences/compute-sizes | +[**create_audience**](AudienceApi.md#create_audience) | **POST** /2023-07/audiences | +[**delete_identifiers**](AudienceApi.md#delete_identifiers) | **DELETE** /2023-07/audiences/{audience-id}/contactlist | +[**estimate_audience_segment_size**](AudienceApi.md#estimate_audience_segment_size) | **POST** /2023-07/marketing-solutions/audience-segments/estimate-size | +[**estimate_audience_size**](AudienceApi.md#estimate_audience_size) | **POST** /2023-07/marketing-solutions/audiences/estimate-size | +[**get_audience_segment_contact_list_statistics**](AudienceApi.md#get_audience_segment_contact_list_statistics) | **GET** /2023-07/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +[**get_audience_segments_in_market_brands**](AudienceApi.md#get_audience_segments_in_market_brands) | **GET** /2023-07/marketing-solutions/audience-segments/in-market-brands | +[**get_audience_segments_in_market_interests**](AudienceApi.md#get_audience_segments_in_market_interests) | **GET** /2023-07/marketing-solutions/audience-segments/in-market-interests | +[**get_audiences**](AudienceApi.md#get_audiences) | **GET** /2023-07/audiences | +[**modify_audience**](AudienceApi.md#modify_audience) | **PATCH** /2023-07/audiences/{audience-id} | +[**modify_audience_users**](AudienceApi.md#modify_audience_users) | **PATCH** /2023-07/audiences/{audience-id}/contactlist | +[**remove_audience**](AudienceApi.md#remove_audience) | **DELETE** /2023-07/audiences/{audience-id} | +[**search_audience_segments**](AudienceApi.md#search_audience_segments) | **POST** /2023-07/marketing-solutions/audience-segments/search | +[**search_audiences**](AudienceApi.md#search_audiences) | **POST** /2023-07/marketing-solutions/audiences/search | + + +# **bulk_create_audience_segments** +> AudienceSegmentEntityV1ListResponse bulk_create_audience_segments(audience_segment_bulk_create_input_v1) + + + +Creates all segments with a valid configuration, and returns their IDs. For those that cannot be created, one or multiple errors are returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_create_input_v1 import AudienceSegmentBulkCreateInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_bulk_create_input_v1 = AudienceSegmentBulkCreateInputV1( + data=[ + AudienceSegmentCreateEntityV1Resource( + type="type_example", + attributes=AudienceSegmentCreateEntityV1( + name="name_example", + description="description_example", + advertiser_id="advertiser_id_example", + in_market=InMarketCreateV1( + country="country_example", + buying_power=[ + "Low", + ], + gender="Male", + interest_ids=[ + "interest_ids_example", + ], + brand_ids=[ + "brand_ids_example", + ], + price_range=[ + "Low", + ], + ), + prospecting=ProspectingCreateV1( + days_since_last_visit_min=1, + days_since_last_visit_max=1, + users_type="Prospects", + ), + contact_list={}, + location=LocationCreateV1( + points_of_interest=[ + PointOfInterestV1( + name="name_example", + latitude=3.14, + longitude=3.14, + ), + ], + radius_in_km=1, + ), + retargeting=RetargetingCreateV1( + visitors_type="All", + days_since_last_visit_min=1, + days_since_last_visit_max=1, + ), + lookalike=LookalikeCreateV1( + seed_segment_id="seed_segment_id_example", + target_size=1, + ), + ), + ), + ], + ) # AudienceSegmentBulkCreateInputV1 | Segment creation parameter + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.bulk_create_audience_segments(audience_segment_bulk_create_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->bulk_create_audience_segments: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_bulk_create_input_v1** | [**AudienceSegmentBulkCreateInputV1**](AudienceSegmentBulkCreateInputV1.md)| Segment creation parameter | + +### Return type + +[**AudienceSegmentEntityV1ListResponse**](AudienceSegmentEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **bulk_create_audiences** +> AudienceEntityV1ListResponse bulk_create_audiences(audience_bulk_create_input_v1) + + + +Creates all audiences with a valid configuration, and returns their IDs. For those that cannot be created, one or multiple errors are returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_create_input_v1 import AudienceBulkCreateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_list_response import AudienceEntityV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_bulk_create_input_v1 = AudienceBulkCreateInputV1( + data=[ + AudienceCreateEntityV1Resource( + type="type_example", + attributes=AudienceCreateEntityV1( + name="name_example", + description="description_example", + advertiser_id="advertiser_id_example", + algebra=AlgebraNodeV1( + _and=[ + AlgebraNodeV1(), + ], + _or=[ + AlgebraNodeV1(), + ], + _not=AlgebraNodeV1(), + audience_segment_id="audience_segment_id_example", + ), + ), + ), + ], + ) # AudienceBulkCreateInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.bulk_create_audiences(audience_bulk_create_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->bulk_create_audiences: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_bulk_create_input_v1** | [**AudienceBulkCreateInputV1**](AudienceBulkCreateInputV1.md)| | + +### Return type + +[**AudienceEntityV1ListResponse**](AudienceEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **bulk_delete_audience_segments** +> AudienceSegmentIdEntityV1ListResponse bulk_delete_audience_segments(audience_segment_bulk_delete_input_v1) + + + +Delete the segments associated to the given audience IDs. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_id_entity_v1_list_response import AudienceSegmentIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_delete_input_v1 import AudienceSegmentBulkDeleteInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_bulk_delete_input_v1 = AudienceSegmentBulkDeleteInputV1( + data=[ + AudienceSegmentDeleteEntityV1Resource( + attributes={}, + id="id_example", + type="type_example", + ), + ], + ) # AudienceSegmentBulkDeleteInputV1 | Segment delete request. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.bulk_delete_audience_segments(audience_segment_bulk_delete_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->bulk_delete_audience_segments: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_bulk_delete_input_v1** | [**AudienceSegmentBulkDeleteInputV1**](AudienceSegmentBulkDeleteInputV1.md)| Segment delete request. | + +### Return type + +[**AudienceSegmentIdEntityV1ListResponse**](AudienceSegmentIdEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **bulk_delete_audiences** +> AudienceIdEntityV1ListResponse bulk_delete_audiences(audience_bulk_delete_input_v1) + + + +Deletes the audiences associated to the given audience IDs. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_id_entity_v1_list_response import AudienceIdEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_delete_input_v1 import AudienceBulkDeleteInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_bulk_delete_input_v1 = AudienceBulkDeleteInputV1( + data=[ + AudienceDeleteEntityV1Resource( + attributes={}, + id="id_example", + type="type_example", + ), + ], + ) # AudienceBulkDeleteInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.bulk_delete_audiences(audience_bulk_delete_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->bulk_delete_audiences: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_bulk_delete_input_v1** | [**AudienceBulkDeleteInputV1**](AudienceBulkDeleteInputV1.md)| | + +### Return type + +[**AudienceIdEntityV1ListResponse**](AudienceIdEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**204** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **bulk_update_audience_segments** +> AudienceSegmentEntityV1ListResponse bulk_update_audience_segments(audience_segment_bulk_update_input_v1) + + + +Updates the properties of all segments with a valid configuration, and returns their IDs. For those that cannot be updated, one or multiple errors are returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_list_response import AudienceSegmentEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_bulk_update_input_v1 import AudienceSegmentBulkUpdateInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_bulk_update_input_v1 = AudienceSegmentBulkUpdateInputV1( + data=[ + AudienceSegmentUpdateEntityV1Resource( + attributes=AudienceSegmentUpdateEntityV1( + name="name_example", + description=NillableString( + value="value_example", + ), + in_market=InMarketUpdateV1( + country="country_example", + buying_power=[ + "Low", + ], + gender=NillableGenderV1( + value="Male", + ), + interest_ids=[ + "interest_ids_example", + ], + brand_ids=[ + "brand_ids_example", + ], + price_range=[ + "Low", + ], + ), + location=LocationUpdateV1( + points_of_interest=[ + PointOfInterestV1( + name="name_example", + latitude=3.14, + longitude=3.14, + ), + ], + radius_in_km=1, + registry_type="PointOfInterest", + ), + retargeting=RetargetingUpdateV1( + visitors_type="All", + days_since_last_visit_min=1, + days_since_last_visit_max=1, + ), + lookalike=LookalikeUpdateV1( + target_size=1, + ), + prospecting=ProspectingUpdateV1( + days_since_last_visit_min=NillableInt32( + value=1, + ), + days_since_last_visit_max=NillableInt32( + value=1, + ), + users_type="Prospects", + ), + ), + id="id_example", + type="type_example", + ), + ], + ) # AudienceSegmentBulkUpdateInputV1 | Segment Update request + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.bulk_update_audience_segments(audience_segment_bulk_update_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->bulk_update_audience_segments: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_bulk_update_input_v1** | [**AudienceSegmentBulkUpdateInputV1**](AudienceSegmentBulkUpdateInputV1.md)| Segment Update request | + +### Return type + +[**AudienceSegmentEntityV1ListResponse**](AudienceSegmentEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **bulk_update_audiences** +> AudienceEntityV1ListResponse bulk_update_audiences(audience_bulk_update_input_v1) + + + +Updates the properties of all audiences with a valid configuration, and returns their IDs. For those that cannot be updated, one or multiple errors are returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_bulk_update_input_v1 import AudienceBulkUpdateInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_list_response import AudienceEntityV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_bulk_update_input_v1 = AudienceBulkUpdateInputV1( + data=[ + AudienceUpdateEntityV1Resource( + attributes=AudienceUpdateEntityV1( + name="name_example", + description=NillableString( + value="value_example", + ), + algebra=AlgebraNodeV1( + _and=[ + AlgebraNodeV1(), + ], + _or=[ + AlgebraNodeV1(), + ], + _not=AlgebraNodeV1(), + audience_segment_id="audience_segment_id_example", + ), + ), + id="id_example", + type="type_example", + ), + ], + ) # AudienceBulkUpdateInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.bulk_update_audiences(audience_bulk_update_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->bulk_update_audiences: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_bulk_update_input_v1** | [**AudienceBulkUpdateInputV1**](AudienceBulkUpdateInputV1.md)| | + +### Return type + +[**AudienceEntityV1ListResponse**](AudienceEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **compute_audience_segments_sizes** +> AudienceSegmentSizeEntityV1ListResponse compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1) + + + +Gets the size of all segments. An error is returned for those whose size calculation is not supported. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_entity_v1_list_response import AudienceSegmentSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_compute_sizes_input_v1 import AudienceSegmentComputeSizesInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_compute_sizes_input_v1 = AudienceSegmentComputeSizesInputV1( + data=[ + AudienceSegmentComputeSizeEntityV1Resource( + attributes={}, + id="id_example", + type="type_example", + ), + ], + ) # AudienceSegmentComputeSizesInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->compute_audience_segments_sizes: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_compute_sizes_input_v1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | + +### Return type + +[**AudienceSegmentSizeEntityV1ListResponse**](AudienceSegmentSizeEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **compute_audiences_sizes** +> AudienceSizeEntityV1ListResponse compute_audiences_sizes(audience_compute_sizes_input_v1) + + + +Gets the size of all audiences. An error is returned for those whose size calculation is not supported. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_size_entity_v1_list_response import AudienceSizeEntityV1ListResponse +from criteo_api_marketingsolutions_v2023_07.model.audience_compute_sizes_input_v1 import AudienceComputeSizesInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_compute_sizes_input_v1 = AudienceComputeSizesInputV1( + data=[ + AudienceComputeSizeEntityV1Resource( + attributes={}, + id="id_example", + type="type_example", + ), + ], + ) # AudienceComputeSizesInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.compute_audiences_sizes(audience_compute_sizes_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->compute_audiences_sizes: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_compute_sizes_input_v1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | + +### Return type + +[**AudienceSizeEntityV1ListResponse**](AudienceSizeEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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_audience** +> NewAudienceResponse create_audience(new_audience_request) + + + +Create an Audience for an Advertiser + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.new_audience_request import NewAudienceRequest +from criteo_api_marketingsolutions_v2023_07.model.new_audience_response import NewAudienceResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + new_audience_request = NewAudienceRequest( + data=NewAudience( + type="Audience", + attributes=NewAudienceAttributes( + advertiser_id="advertiser_id_example", + name="name_example", + description="description_example", + ), + ), + ) # NewAudienceRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_audience(new_audience_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->create_audience: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **new_audience_request** | [**NewAudienceRequest**](NewAudienceRequest.md)| | + +### Return type + +[**NewAudienceResponse**](NewAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The audience was created | - | +**403** | Forbidden | - | + +[[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_identifiers** +> DeleteAudienceContactListResponse delete_identifiers(audience_id) + + + +delete all identifiers from an Audience + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.delete_audience_contact_list_response import DeleteAudienceContactListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_id = "audience-id_example" # str | The id of the audience to amend + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.delete_identifiers(audience_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->delete_identifiers: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_id** | **str**| The id of the audience to amend | + +### Return type + +[**DeleteAudienceContactListResponse**](DeleteAudienceContactListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The contactlist was deleted | - | +**403** | Forbidden | - | + +[[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) + +# **estimate_audience_segment_size** +> AudienceSegmentSizeEstimationV1Response estimate_audience_segment_size(audience_segment_estimate_size_input_v1) + + + +Gets the size estimation of a non existent segment. An error is returned when size calculation is not supported. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_estimate_size_input_v1 import AudienceSegmentEstimateSizeInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_size_estimation_v1_response import AudienceSegmentSizeEstimationV1Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_estimate_size_input_v1 = AudienceSegmentEstimateSizeInputV1( + data=AudienceSegmentSizeEstimationEntityV1Resource( + type="type_example", + attributes=AudienceSegmentSizeEstimationEntityV1( + advertiser_id="advertiser_id_example", + in_market=InMarketSizeEstimationV1( + country="country_example", + buying_power=[ + "Low", + ], + gender="Male", + interest_ids=[ + "interest_ids_example", + ], + brand_ids=[ + "brand_ids_example", + ], + price_range=[ + "Low", + ], + ), + location=LocationSizeEstimationV1( + points_of_interest=[ + PointOfInterestV1( + name="name_example", + latitude=3.14, + longitude=3.14, + ), + ], + radius_in_km=1, + ), + ), + ), + ) # AudienceSegmentEstimateSizeInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.estimate_audience_segment_size(audience_segment_estimate_size_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->estimate_audience_segment_size: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_estimate_size_input_v1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | + +### Return type + +[**AudienceSegmentSizeEstimationV1Response**](AudienceSegmentSizeEstimationV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **estimate_audience_size** +> AudienceSizeEstimationV1Response estimate_audience_size(audience_estimate_size_input_v1) + + + +Gets the size estimation of a non existent audience. An error is returned when size calculation is not supported. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_size_estimation_v1_response import AudienceSizeEstimationV1Response +from criteo_api_marketingsolutions_v2023_07.model.audience_estimate_size_input_v1 import AudienceEstimateSizeInputV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_estimate_size_input_v1 = AudienceEstimateSizeInputV1( + data=AudienceEstimateSizeEntityV1Resource( + type="type_example", + attributes=AudienceEstimateSizeEntityV1( + advertiser_id="advertiser_id_example", + algebra=AlgebraNodeV1( + _and=[ + AlgebraNodeV1(), + ], + _or=[ + AlgebraNodeV1(), + ], + _not=AlgebraNodeV1(), + audience_segment_id="audience_segment_id_example", + ), + ), + ), + ) # AudienceEstimateSizeInputV1 | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.estimate_audience_size(audience_estimate_size_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->estimate_audience_size: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_estimate_size_input_v1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | + +### Return type + +[**AudienceSizeEstimationV1Response**](AudienceSizeEstimationV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success or partial success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **get_audience_segment_contact_list_statistics** +> ContactListStatisticsEntityV1Response get_audience_segment_contact_list_statistics(audience_segment_id) + + + +Returns the statistics of a contact list segment. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.contact_list_statistics_entity_v1_response import ContactListStatisticsEntityV1Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_id = 1 # int | The segment ID. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_audience_segment_contact_list_statistics(audience_segment_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_audience_segment_contact_list_statistics: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_id** | **int**| The segment ID. | + +### Return type + +[**ContactListStatisticsEntityV1Response**](ContactListStatisticsEntityV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **get_audience_segments_in_market_brands** +> InMarketAudienceSegmentBrandEntityV1ListResponse get_audience_segments_in_market_brands(advertiser_id, country) + + + +Returns a list with all available in-market brands that can be used to define an in-market segment. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_brand_entity_v1_list_response import InMarketAudienceSegmentBrandEntityV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser ID. + country = "country_example" # str | The ISO 3166-1 alpha-2 country code. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_audience_segments_in_market_brands(advertiser_id, country) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_audience_segments_in_market_brands: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser ID. | + **country** | **str**| The ISO 3166-1 alpha-2 country code. | + +### Return type + +[**InMarketAudienceSegmentBrandEntityV1ListResponse**](InMarketAudienceSegmentBrandEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **get_audience_segments_in_market_interests** +> InMarketAudienceSegmentInterestEntityV1ListResponse get_audience_segments_in_market_interests(advertiser_id, country) + + + +Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.in_market_audience_segment_interest_entity_v1_list_response import InMarketAudienceSegmentInterestEntityV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser ID. + country = "country_example" # str | The ISO 3166-1 alpha-2 country code. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_audience_segments_in_market_interests(advertiser_id, country) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_audience_segments_in_market_interests: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser ID. | + **country** | **str**| The ISO 3166-1 alpha-2 country code. | + +### Return type + +[**InMarketAudienceSegmentInterestEntityV1ListResponse**](InMarketAudienceSegmentInterestEntityV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **get_audiences** +> GetAudiencesResponse get_audiences() + + + +Get a list of all the audiences for the user or for the given advertiser_id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.get_audiences_response import GetAudiencesResponse +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_audiences(advertiser_id=advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_audiences: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser id to get all the audiences for. Mandatory for internal users. For external users, if you don't provide it, we will take into account the advertisers from your portfolio | [optional] + +### Return type + +[**GetAudiencesResponse**](GetAudiencesResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list was retrieved. | - | +**403** | Forbidden | - | + +[[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) + +# **modify_audience** +> ReplaceAudienceResponse modify_audience(audience_id, replace_audience_request) + + + +Update user audience specified by the audience id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.replace_audience_response import ReplaceAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.replace_audience_request import ReplaceAudienceRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_id = "audience-id_example" # str | The id of the audience to amend + replace_audience_request = ReplaceAudienceRequest( + data=ReplaceAudience( + type="Audience", + attributes=AudienceNameDescription( + name="name_example", + description="description_example", + ), + ), + ) # ReplaceAudienceRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.modify_audience(audience_id, replace_audience_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->modify_audience: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_id** | **str**| The id of the audience to amend | + **replace_audience_request** | [**ReplaceAudienceRequest**](ReplaceAudienceRequest.md)| | + +### Return type + +[**ReplaceAudienceResponse**](ReplaceAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The audience was updated | - | +**403** | Forbidden | - | + +[[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) + +# **modify_audience_users** +> ModifyAudienceResponse modify_audience_users(audience_id, contactlist_amendment_request) + + + +Add/remove users to or from an audience + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.modify_audience_response import ModifyAudienceResponse +from criteo_api_marketingsolutions_v2023_07.model.contactlist_amendment_request import ContactlistAmendmentRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_id = "audience-id_example" # str | The id of the audience to amend + contactlist_amendment_request = ContactlistAmendmentRequest( + data=ContactlistAmendment( + type="ContactlistAmendment", + attributes=ContactlistAmendmentAttributes( + operation="add", + identifier_type="email", + identifiers=[ + "identifiers_example", + ], + gum_caller_id=1, + ), + ), + ) # ContactlistAmendmentRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.modify_audience_users(audience_id, contactlist_amendment_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->modify_audience_users: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_id** | **str**| The id of the audience to amend | + **contactlist_amendment_request** | [**ContactlistAmendmentRequest**](ContactlistAmendmentRequest.md)| | + +### Return type + +[**ModifyAudienceResponse**](ModifyAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Summary of created request | - | +**403** | Forbidden | - | +**404** | Audience 123 not found | - | + +[[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_audience** +> DeleteAudienceResponse remove_audience(audience_id) + + + +Delete an audience by id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.error_code_response import ErrorCodeResponse +from criteo_api_marketingsolutions_v2023_07.model.delete_audience_response import DeleteAudienceResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_id = "audience-id_example" # str | The id of the audience to amend + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.remove_audience(audience_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->remove_audience: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_id** | **str**| The id of the audience to amend | + +### Return type + +[**DeleteAudienceResponse**](DeleteAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The audience was deleted | - | +**403** | Forbidden | - | + +[[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) + +# **search_audience_segments** +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse search_audience_segments(audience_segment_search_input_v1) + + + +Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_search_input_v1 import AudienceSegmentSearchInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response import AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_segment_search_input_v1 = AudienceSegmentSearchInputV1( + data=AudienceSegmentSearchEntityV1Resource( + type="type_example", + attributes=AudienceSegmentSearchEntityV1( + audience_segment_ids=[ + "audience_segment_ids_example", + ], + advertiser_ids=[ + "advertiser_ids_example", + ], + audience_segment_types=[ + "Unknown", + ], + ), + ), + ) # AudienceSegmentSearchInputV1 | Segment search filters. + limit = 50 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) if omitted the server will use the default value of 50 + offset = 0 # int | The (zero-based) offset into the collection. The default is 0. (optional) if omitted the server will use the default value of 0 + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.search_audience_segments(audience_segment_search_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->search_audience_segments: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.search_audience_segments(audience_segment_search_input_v1, limit=limit, offset=offset) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->search_audience_segments: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_segment_search_input_v1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | + **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] if omitted the server will use the default value of 50 + **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] if omitted the server will use the default value of 0 + +### Return type + +[**AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse**](AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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) + +# **search_audiences** +> AudienceEntityV1AudienceSearchMetadataV1ListResponse search_audiences(audience_search_input_v1) + + + +Returns a list of audiences that match the provided filters. If present, the filters are AND'ed together when applied. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import audience_api +from criteo_api_marketingsolutions_v2023_07.model.audience_search_input_v1 import AudienceSearchInputV1 +from criteo_api_marketingsolutions_v2023_07.model.audience_entity_v1_audience_search_metadata_v1_list_response import AudienceEntityV1AudienceSearchMetadataV1ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + audience_search_input_v1 = AudienceSearchInputV1( + data=AudienceSearchEntityV1Resource( + type="type_example", + attributes=AudienceSearchEntityV1( + audience_ids=[ + "audience_ids_example", + ], + advertiser_ids=[ + "advertiser_ids_example", + ], + audience_segment_ids=[ + "audience_segment_ids_example", + ], + ad_set_ids=[ + "ad_set_ids_example", + ], + ), + ), + ) # AudienceSearchInputV1 | Audience search filters. + limit = 50 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) if omitted the server will use the default value of 50 + offset = 0 # int | The (zero-based) offset into the collection. The default is 0. (optional) if omitted the server will use the default value of 0 + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.search_audiences(audience_search_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->search_audiences: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.search_audiences(audience_search_input_v1, limit=limit, offset=offset) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->search_audiences: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audience_search_input_v1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | + **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] if omitted the server will use the default value of 50 + **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] if omitted the server will use the default value of 0 + +### Return type + +[**AudienceEntityV1AudienceSearchMetadataV1ListResponse**](AudienceEntityV1AudienceSearchMetadataV1ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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/sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md b/sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md new file mode 100644 index 00000000..b7cd76f8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceAttributes.md @@ -0,0 +1,19 @@ +# AudienceAttributes + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the Audience | +**description** | **str** | The string description of the Audience | +**created** | **datetime** | Date and time ISO 8601 formatted string | +**updated** | **datetime** | Date and time ISO 8601 formatted string | +**advertiser_id** | **str** | The advertiser id that owns this Audience | [optional] +**nb_lines** | **int** | The number of line in the audience available once processed | [optional] +**nb_lines_email** | **int** | The number of email line in the audience available once processed | [optional] +**nb_matches_email** | **int** | The number of email matches in the audience available once processed | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceBulkCreateInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceBulkCreateInputV1.md new file mode 100644 index 00000000..dee5816a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceBulkCreateInputV1.md @@ -0,0 +1,13 @@ +# AudienceBulkCreateInputV1 + +Input to create one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceCreateEntityV1Resource]**](AudienceCreateEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceBulkDeleteInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceBulkDeleteInputV1.md new file mode 100644 index 00000000..365f28de --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceBulkDeleteInputV1.md @@ -0,0 +1,13 @@ +# AudienceBulkDeleteInputV1 + +Input to delete one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceDeleteEntityV1Resource]**](AudienceDeleteEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceBulkUpdateInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceBulkUpdateInputV1.md new file mode 100644 index 00000000..502b32c2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceBulkUpdateInputV1.md @@ -0,0 +1,13 @@ +# AudienceBulkUpdateInputV1 + +Input to update one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceUpdateEntityV1Resource]**](AudienceUpdateEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizeEntityV1Resource.md new file mode 100644 index 00000000..fca7dc45 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizeEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceComputeSizeEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Audience of people of interest for a marketer. | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizesInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizesInputV1.md new file mode 100644 index 00000000..159a4133 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceComputeSizesInputV1.md @@ -0,0 +1,13 @@ +# AudienceComputeSizesInputV1 + +Input to retrieve the size of one or more audiences. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceComputeSizeEntityV1Resource]**](AudienceComputeSizeEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1.md new file mode 100644 index 00000000..95bcada0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1.md @@ -0,0 +1,16 @@ +# AudienceCreateEntityV1 + +Audience of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the audience | +**advertiser_id** | **str** | Advertiser associated to the audience | +**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | +**description** | **str** | Description of the audience | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1Resource.md new file mode 100644 index 00000000..d3e212d0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceCreateEntityV1Resource.md @@ -0,0 +1,14 @@ +# AudienceCreateEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceCreateEntityV1**](AudienceCreateEntityV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceDeleteEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceDeleteEntityV1Resource.md new file mode 100644 index 00000000..447c8e41 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceDeleteEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceDeleteEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Audience to delete | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1.md new file mode 100644 index 00000000..60f8e9e1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1.md @@ -0,0 +1,19 @@ +# AudienceEntityV1 + +Audience of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the audience | [optional] +**description** | **str** | Description of the audience | [optional] +**created_at** | **datetime** | ISO-8601 timestamp in UTC of audience creation (read-only) | [optional] +**updated_at** | **datetime** | ISO-8601 timestamp in UTC of audience update (read-only) | [optional] +**advertiser_id** | **str** | Advertiser associated to the audience | [optional] +**ad_set_ids** | **[str]** | Ad sets associated to the audience | [optional] +**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..ac8ed0fe --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1AudienceSearchMetadataV1ListResponse.md @@ -0,0 +1,16 @@ +# AudienceEntityV1AudienceSearchMetadataV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities and metadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**AudienceSearchMetadataV1**](AudienceSearchMetadataV1.md) | | [optional] +**data** | [**[AudienceEntityV1Resource]**](AudienceEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1ListResponse.md new file mode 100644 index 00000000..dd53e9ff --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# AudienceEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceEntityV1Resource]**](AudienceEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1Resource.md new file mode 100644 index 00000000..400e8505 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceEntityV1**](AudienceEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceError.md b/sdks/marketingsolutions_2023-07/docs/AudienceError.md new file mode 100644 index 00000000..873c18cd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceError.md @@ -0,0 +1,20 @@ +# AudienceError + +Definition of an audience error + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | (REQUIRED) The classification of the error | +**code** | **str** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. | +**instance** | **str** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem | +**trace_id** | **str** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] +**title** | **str** | (RECOMMENDED) A short, human-readable summary of the problem type | [optional] +**detail** | **str** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **[str]** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1.md new file mode 100644 index 00000000..282016b3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1.md @@ -0,0 +1,14 @@ +# AudienceEstimateSizeEntityV1 + +Audience of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_id** | **str** | Advertiser associated to the audience | +**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1Resource.md new file mode 100644 index 00000000..74049dc5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeEntityV1Resource.md @@ -0,0 +1,14 @@ +# AudienceEstimateSizeEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceEstimateSizeEntityV1**](AudienceEstimateSizeEntityV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeInputV1.md new file mode 100644 index 00000000..a9538f78 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceEstimateSizeInputV1.md @@ -0,0 +1,13 @@ +# AudienceEstimateSizeInputV1 + +Input to estimate the size of an audience. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AudienceEstimateSizeEntityV1Resource**](AudienceEstimateSizeEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1ListResponse.md new file mode 100644 index 00000000..51e264d6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# AudienceIdEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceIdEntityV1Resource]**](AudienceIdEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1Resource.md new file mode 100644 index 00000000..beef0bf6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceIdEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceIdEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Audience entity with only its ID | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceNameDescription.md b/sdks/marketingsolutions_2023-07/docs/AudienceNameDescription.md new file mode 100644 index 00000000..88853fb1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceNameDescription.md @@ -0,0 +1,14 @@ +# AudienceNameDescription + +Description of an audience with name and detailed description + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name to designate the audience by | [optional] +**description** | **str** | The description of the audience | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1.md new file mode 100644 index 00000000..d51a03af --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1.md @@ -0,0 +1,16 @@ +# AudienceSearchEntityV1 + +Available filters to perform a search on segments. If present, the filters are AND'ed together when applied. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audience_ids** | **[str]** | List of audience ids | [optional] +**advertiser_ids** | **[str]** | List of advertiser ids | [optional] +**audience_segment_ids** | **[str]** | List of segment ids (linked to the result audiences) | [optional] +**ad_set_ids** | **[str]** | List of AdSet ids | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1Resource.md new file mode 100644 index 00000000..6b9909d1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSearchEntityV1Resource.md @@ -0,0 +1,14 @@ +# AudienceSearchEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceSearchEntityV1**](AudienceSearchEntityV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSearchInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSearchInputV1.md new file mode 100644 index 00000000..1efd5e65 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSearchInputV1.md @@ -0,0 +1,13 @@ +# AudienceSearchInputV1 + +Audience search parameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AudienceSearchEntityV1Resource**](AudienceSearchEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSearchMetadataV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSearchMetadataV1.md new file mode 100644 index 00000000..719d26c8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSearchMetadataV1.md @@ -0,0 +1,15 @@ +# AudienceSearchMetadataV1 + +Metadata for the audience search response. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | Total number of items | [optional] +**limit** | **int** | Max item of the current page | [optional] +**offset** | **int** | Number of item to skip | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkCreateInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkCreateInputV1.md new file mode 100644 index 00000000..37307490 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkCreateInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentBulkCreateInputV1 + +Input to create one or more audience segments. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentCreateEntityV1Resource]**](AudienceSegmentCreateEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkDeleteInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkDeleteInputV1.md new file mode 100644 index 00000000..5ce06682 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkDeleteInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentBulkDeleteInputV1 + +Input to delete one or more segments. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentDeleteEntityV1Resource]**](AudienceSegmentDeleteEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkUpdateInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkUpdateInputV1.md new file mode 100644 index 00000000..628d92c6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentBulkUpdateInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentBulkUpdateInputV1 + +Input to update one or more segments. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentUpdateEntityV1Resource]**](AudienceSegmentUpdateEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizeEntityV1Resource.md new file mode 100644 index 00000000..bf9718bf --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizeEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSegmentComputeSizeEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Set of rules that defines specific people to target. | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizesInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizesInputV1.md new file mode 100644 index 00000000..ed2afb43 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentComputeSizesInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentComputeSizesInputV1 + +Input to retrieve the size of one or more segments. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentComputeSizeEntityV1Resource]**](AudienceSegmentComputeSizeEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1.md new file mode 100644 index 00000000..39e394e7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1.md @@ -0,0 +1,21 @@ +# AudienceSegmentCreateEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the segment | +**advertiser_id** | **str** | Advertiser associated to the segment | +**description** | **str** | Description of the segment | [optional] +**in_market** | [**InMarketCreateV1**](InMarketCreateV1.md) | | [optional] +**prospecting** | [**ProspectingCreateV1**](ProspectingCreateV1.md) | | [optional] +**contact_list** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Settings to target users with your contact lists. | [optional] +**location** | [**LocationCreateV1**](LocationCreateV1.md) | | [optional] +**retargeting** | [**RetargetingCreateV1**](RetargetingCreateV1.md) | | [optional] +**lookalike** | [**LookalikeCreateV1**](LookalikeCreateV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1Resource.md new file mode 100644 index 00000000..ecc219b7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentCreateEntityV1Resource.md @@ -0,0 +1,14 @@ +# AudienceSegmentCreateEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceSegmentCreateEntityV1**](AudienceSegmentCreateEntityV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentDeleteEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentDeleteEntityV1Resource.md new file mode 100644 index 00000000..f36d3b9f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentDeleteEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSegmentDeleteEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Segment to delete | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1.md new file mode 100644 index 00000000..5ee57be7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1.md @@ -0,0 +1,25 @@ +# AudienceSegmentEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the segment | [optional] +**description** | **str** | Description of the segment | [optional] +**type** | **str** | Type of segment (read-only) | [optional] +**created_at** | **datetime** | ISO-8601 timestamp in UTC of segment creation (read-only) | [optional] +**updated_at** | **datetime** | ISO-8601 timestamp in UTC of segment update (read-only) | [optional] +**advertiser_id** | **str** | Advertiser associated to the segment | [optional] +**in_market** | [**InMarketV1**](InMarketV1.md) | | [optional] +**prospecting** | [**ProspectingV1**](ProspectingV1.md) | | [optional] +**contact_list** | [**ContactListV1**](ContactListV1.md) | | [optional] +**location** | [**LocationV1**](LocationV1.md) | | [optional] +**behavioral** | [**BehavioralV1**](BehavioralV1.md) | | [optional] +**retargeting** | [**RetargetingV1**](RetargetingV1.md) | | [optional] +**lookalike** | [**LookalikeV1**](LookalikeV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md new file mode 100644 index 00000000..152d1d74 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse.md @@ -0,0 +1,16 @@ +# AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities and metadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**AudienceSegmentSearchMetadataV1**](AudienceSegmentSearchMetadataV1.md) | | [optional] +**data** | [**[AudienceSegmentEntityV1Resource]**](AudienceSegmentEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1ListResponse.md new file mode 100644 index 00000000..651eeaef --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# AudienceSegmentEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentEntityV1Resource]**](AudienceSegmentEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1Resource.md new file mode 100644 index 00000000..0d5d1b82 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSegmentEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceSegmentEntityV1**](AudienceSegmentEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEstimateSizeInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEstimateSizeInputV1.md new file mode 100644 index 00000000..8ed365ca --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentEstimateSizeInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentEstimateSizeInputV1 + +Input to estimate the size of an audience segment.. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AudienceSegmentSizeEstimationEntityV1Resource**](AudienceSegmentSizeEstimationEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1ListResponse.md new file mode 100644 index 00000000..ea1ecbdb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# AudienceSegmentIdEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentIdEntityV1Resource]**](AudienceSegmentIdEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1Resource.md new file mode 100644 index 00000000..e02efe59 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentIdEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSegmentIdEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Audience Segment entity only with its ID | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1.md new file mode 100644 index 00000000..41e7c069 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1.md @@ -0,0 +1,15 @@ +# AudienceSegmentSearchEntityV1 + +Available filters to perform a search on audience segments. If present, the filters are AND'ed together when applied. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audience_segment_ids** | **[str]** | List of segment ids | [optional] +**advertiser_ids** | **[str]** | List of advertiser ids | [optional] +**audience_segment_types** | **[str]** | List of segment types | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1Resource.md new file mode 100644 index 00000000..35cd9d58 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchEntityV1Resource.md @@ -0,0 +1,14 @@ +# AudienceSegmentSearchEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceSegmentSearchEntityV1**](AudienceSegmentSearchEntityV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchInputV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchInputV1.md new file mode 100644 index 00000000..7a12b4c0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchInputV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentSearchInputV1 + +Audience segment search parameter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AudienceSegmentSearchEntityV1Resource**](AudienceSegmentSearchEntityV1Resource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchMetadataV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchMetadataV1.md new file mode 100644 index 00000000..874aa7f5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSearchMetadataV1.md @@ -0,0 +1,15 @@ +# AudienceSegmentSearchMetadataV1 + +Metadata for the audience segment search response. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | Total number of items | [optional] +**limit** | **int** | Max item of the current page | [optional] +**offset** | **int** | Number of item to skip | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1.md new file mode 100644 index 00000000..9cd0d89e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1.md @@ -0,0 +1,13 @@ +# AudienceSegmentSizeEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**size** | **int** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1ListResponse.md new file mode 100644 index 00000000..b9ac6a9b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# AudienceSegmentSizeEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSegmentSizeEntityV1Resource]**](AudienceSegmentSizeEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1Resource.md new file mode 100644 index 00000000..55e53cf7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSegmentSizeEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceSegmentSizeEntityV1**](AudienceSegmentSizeEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1.md new file mode 100644 index 00000000..ee1208fd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1.md @@ -0,0 +1,15 @@ +# AudienceSegmentSizeEstimationEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_id** | **str** | Advertiser associated to the segment | +**in_market** | [**InMarketSizeEstimationV1**](InMarketSizeEstimationV1.md) | | [optional] +**location** | [**LocationSizeEstimationV1**](LocationSizeEstimationV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1Resource.md new file mode 100644 index 00000000..e2ca9742 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationEntityV1Resource.md @@ -0,0 +1,14 @@ +# AudienceSegmentSizeEstimationEntityV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceSegmentSizeEstimationEntityV1**](AudienceSegmentSizeEstimationEntityV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/BadRequest.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1.md similarity index 82% rename from sdks/retailmedia_preview/docs/BadRequest.md rename to sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1.md index a21e7f2c..8a848808 100644 --- a/sdks/retailmedia_preview/docs/BadRequest.md +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1.md @@ -1,11 +1,11 @@ -# BadRequest +# AudienceSegmentSizeEstimationV1 -Bad request errors +Segment size estimation ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**[Error]**](Error.md) | The errors | [optional] +**size** | **int** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Resource.md new file mode 100644 index 00000000..998b234b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Resource.md @@ -0,0 +1,14 @@ +# AudienceSegmentSizeEstimationV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceSegmentSizeEstimationV1**](AudienceSegmentSizeEstimationV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Response.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Response.md new file mode 100644 index 00000000..68e6c73e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentSizeEstimationV1Response.md @@ -0,0 +1,15 @@ +# AudienceSegmentSizeEstimationV1Response + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AudienceSegmentSizeEstimationV1Resource**](AudienceSegmentSizeEstimationV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1.md new file mode 100644 index 00000000..442d817b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1.md @@ -0,0 +1,19 @@ +# AudienceSegmentUpdateEntityV1 + +Set of rules that defines specific people to target. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the segment | [optional] +**description** | [**NillableString**](NillableString.md) | | [optional] +**in_market** | [**InMarketUpdateV1**](InMarketUpdateV1.md) | | [optional] +**location** | [**LocationUpdateV1**](LocationUpdateV1.md) | | [optional] +**retargeting** | [**RetargetingUpdateV1**](RetargetingUpdateV1.md) | | [optional] +**lookalike** | [**LookalikeUpdateV1**](LookalikeUpdateV1.md) | | [optional] +**prospecting** | [**ProspectingUpdateV1**](ProspectingUpdateV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1Resource.md new file mode 100644 index 00000000..39f10b17 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSegmentUpdateEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSegmentUpdateEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceSegmentUpdateEntityV1**](AudienceSegmentUpdateEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/EnvelopeReportRequest.md b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1.md similarity index 80% rename from sdks/retailmedia_preview/docs/EnvelopeReportRequest.md rename to sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1.md index 1c864080..3734639c 100644 --- a/sdks/retailmedia_preview/docs/EnvelopeReportRequest.md +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1.md @@ -1,11 +1,11 @@ -# EnvelopeReportRequest +# AudienceSizeEntityV1 -Standard response envelope +Audience entity only with its size ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**ReportRequest**](ReportRequest.md) | | +**size** | **int** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1ListResponse.md new file mode 100644 index 00000000..b971ea69 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# AudienceSizeEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[AudienceSizeEntityV1Resource]**](AudienceSizeEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1Resource.md new file mode 100644 index 00000000..40b12fb1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceSizeEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceSizeEntityV1**](AudienceSizeEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/GlobalBrand.md b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1.md similarity index 80% rename from sdks/retailmedia_preview/docs/GlobalBrand.md rename to sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1.md index 86c99389..ad28d60e 100644 --- a/sdks/retailmedia_preview/docs/GlobalBrand.md +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1.md @@ -1,11 +1,11 @@ -# GlobalBrand +# AudienceSizeEstimationV1 -Global brand of the product. +Audience size estimation ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The name of the global brand. | [optional] +**size** | **int** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Resource.md new file mode 100644 index 00000000..3a536868 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Resource.md @@ -0,0 +1,14 @@ +# AudienceSizeEstimationV1Resource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AudienceSizeEstimationV1**](AudienceSizeEstimationV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Response.md b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Response.md new file mode 100644 index 00000000..98b0fd85 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceSizeEstimationV1Response.md @@ -0,0 +1,15 @@ +# AudienceSizeEstimationV1Response + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AudienceSizeEstimationV1Resource**](AudienceSizeEstimationV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1.md b/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1.md new file mode 100644 index 00000000..68e565c5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1.md @@ -0,0 +1,15 @@ +# AudienceUpdateEntityV1 + +Audience of people of interest for a marketer. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the audience | [optional] +**description** | [**NillableString**](NillableString.md) | | [optional] +**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1Resource.md new file mode 100644 index 00000000..4fdf9488 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceUpdateEntityV1Resource.md @@ -0,0 +1,15 @@ +# AudienceUpdateEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**AudienceUpdateEntityV1**](AudienceUpdateEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/AudienceWarning.md b/sdks/marketingsolutions_2023-07/docs/AudienceWarning.md new file mode 100644 index 00000000..4695a4f6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/AudienceWarning.md @@ -0,0 +1,20 @@ +# AudienceWarning + +Definition of the warning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | (REQUIRED) The classification of the error | +**code** | **str** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kebab-case. | +**instance** | **str** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem | +**detail** | **str** | (REQUIRED) A human-readable explanation specific to this occurrence of the problem | +**trace_id** | **str** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] +**title** | **str** | (RECOMMENDED) A short, human-readable summary of the problem type | [optional] +**source** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **[str]** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/BasicAudienceDefinition.md b/sdks/marketingsolutions_2023-07/docs/BasicAudienceDefinition.md new file mode 100644 index 00000000..822d7c5c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/BasicAudienceDefinition.md @@ -0,0 +1,15 @@ +# BasicAudienceDefinition + +Common definition of an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | the id of the entity type | +**type** | **str** | the name of the entity type | +**attributes** | [**AudienceNameDescription**](AudienceNameDescription.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/BehavioralV1.md b/sdks/marketingsolutions_2023-07/docs/BehavioralV1.md new file mode 100644 index 00000000..cf12a27a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/BehavioralV1.md @@ -0,0 +1,16 @@ +# BehavioralV1 + +Settings of a behavioral set of users provided by Criteo. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category** | **str** | The type of behavioral | +**country** | **str** | The users' country | [optional] +**start_date** | **datetime** | Desired date when the behavioral will start | [optional] +**end_date** | **datetime** | Desired date when the behavioral will end | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/Campaign.md b/sdks/marketingsolutions_2023-07/docs/Campaign.md new file mode 100644 index 00000000..c9bc932d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Campaign.md @@ -0,0 +1,17 @@ +# Campaign + +campaign read model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the campaign | [optional] +**advertiser_id** | **str** | Advertiser id of the campaign | [optional] +**objective** | **str** | Campaign's marketing objective | [optional] +**spend_limit** | [**CampaignSpendLimit**](CampaignSpendLimit.md) | | [optional] +**goal** | **str** | Goal of the campaign | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignApi.md b/sdks/marketingsolutions_2023-07/docs/CampaignApi.md new file mode 100644 index 00000000..1e366636 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignApi.md @@ -0,0 +1,1576 @@ +# criteo_api_marketingsolutions_v2023_07.CampaignApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_ad_set**](CampaignApi.md#create_ad_set) | **POST** /2023-07/marketing-solutions/ad-sets | +[**create_campaign**](CampaignApi.md#create_campaign) | **POST** /2023-07/marketing-solutions/campaigns | +[**get_ad_set**](CampaignApi.md#get_ad_set) | **GET** /2023-07/marketing-solutions/ad-sets/{adSetId} | +[**get_campaign**](CampaignApi.md#get_campaign) | **GET** /2023-07/marketing-solutions/campaigns/{campaign-id} | +[**get_category_bid_list**](CampaignApi.md#get_category_bid_list) | **GET** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | +[**get_display_multipliers**](CampaignApi.md#get_display_multipliers) | **GET** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | +[**patch_ad_sets**](CampaignApi.md#patch_ad_sets) | **PATCH** /2023-07/marketing-solutions/ad-sets | +[**patch_campaigns**](CampaignApi.md#patch_campaigns) | **PATCH** /2023-07/marketing-solutions/campaigns | +[**patch_category_bid_list**](CampaignApi.md#patch_category_bid_list) | **PATCH** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/category-bids | +[**patch_display_multipliers**](CampaignApi.md#patch_display_multipliers) | **PATCH** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/display-multipliers | +[**search_ad_sets**](CampaignApi.md#search_ad_sets) | **POST** /2023-07/marketing-solutions/ad-sets/search | +[**search_campaigns**](CampaignApi.md#search_campaigns) | **POST** /2023-07/marketing-solutions/campaigns/search | +[**start_ad_sets**](CampaignApi.md#start_ad_sets) | **POST** /2023-07/marketing-solutions/ad-sets/start | +[**stop_ad_sets**](CampaignApi.md#stop_ad_sets) | **POST** /2023-07/marketing-solutions/ad-sets/stop | +[**update_ad_set_audience**](CampaignApi.md#update_ad_set_audience) | **PUT** /2023-07/marketing-solutions/ad-sets/{ad-set-id}/audience | + + +# **create_ad_set** +> ResponseReadAdSet create_ad_set(create_ad_set_request) + + + +Create the specified ad set + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.response_read_ad_set import ResponseReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.create_ad_set_request import CreateAdSetRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + create_ad_set_request = CreateAdSetRequest( + data=CreateAdSetResource( + attributes=CreateAdSet( + name="name_example", + dataset_id="dataset_id_example", + campaign_id="campaign_id_example", + objective="customAction", + schedule=CreateAdSetSchedule( + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + ), + bidding=CreateAdSetBidding( + bid_amount=3.14, + cost_controller="COS", + ), + targeting=CreateAdSetTargeting( + delivery_limitations=AdSetDeliveryLimitations( + environments=[ + "web", + ], + devices=[ + "other", + ], + operating_systems=[ + "android", + ], + ), + geo_location=CreateAdSetGeoLocation( + countries=AdSetTargetingRule( + operand="undefined", + values=[ + "values_example", + ], + ), + subdivisions=AdSetTargetingRule( + operand="undefined", + values=[ + "values_example", + ], + ), + zip_codes=AdSetTargetingRule( + operand="undefined", + values=[ + "values_example", + ], + ), + ), + frequency_capping=AdSetFrequencyCapping( + frequency="hourly", + maximum_impressions=1, + ), + ), + budget=CreateAdSetBudget( + budget_strategy="capped", + budget_renewal="undefined", + budget_delivery_smoothing="accelerated", + budget_delivery_week="undefined", + budget_amount=3.14, + ), + tracking_code="tracking_code_example", + media_type="display", + ), + type="AdSet", + ), + ) # CreateAdSetRequest | the ad sets to create + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_ad_set(create_ad_set_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->create_ad_set: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_ad_set_request** | [**CreateAdSetRequest**](CreateAdSetRequest.md)| the ad sets to create | + +### Return type + +[**ResponseReadAdSet**](ResponseReadAdSet.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The ad set that has been created and errors / warnings | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | + +[[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_campaign** +> CampaignV23Q1Response create_campaign(create_campaign_request) + + + +Create the specified campaign + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.create_campaign_request import CreateCampaignRequest +from criteo_api_marketingsolutions_v2023_07.model.campaign_v23_q1_response import CampaignV23Q1Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + create_campaign_request = CreateCampaignRequest( + data=CreateCampaignResource( + attributes=CreateCampaign( + name="name_example", + advertiser_id="advertiser_id_example", + goal="Unspecified", + spend_limit=CreateCampaignSpendLimit( + spend_limit_type="capped", + spend_limit_renewal="undefined", + spend_limit_amount=3.14, + ), + ), + type="Campaign", + ), + ) # CreateCampaignRequest | the campaigns to create + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_campaign(create_campaign_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->create_campaign: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_campaign_request** | [**CreateCampaignRequest**](CreateCampaignRequest.md)| the campaigns to create | + +### Return type + +[**CampaignV23Q1Response**](CampaignV23Q1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The campaign that has been created and errors / warnings | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | + +[[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) + +# **get_ad_set** +> ResponseReadAdSet get_ad_set(ad_set_id) + + + +Get the data for the specified ad set + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.response_read_ad_set import ResponseReadAdSet +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + ad_set_id = "adSetId_example" # str | Id of the ad set + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_ad_set(ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_ad_set: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ad_set_id** | **str**| Id of the ad set | + +### Return type + +[**ResponseReadAdSet**](ResponseReadAdSet.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | data for the ad set | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **get_campaign** +> CampaignResponse get_campaign(campaign_id) + + + +Get the data for the specified campaign + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.campaign_response import CampaignResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaign-id_example" # str | Id of the campaign + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_campaign(campaign_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_campaign: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| Id of the campaign | + +### Return type + +[**CampaignResponse**](CampaignResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | data for the campaign | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **get_category_bid_list** +> AdSetCategoryBidListResponse get_category_bid_list(ad_set_id) + + + +Get the Category Bids for all valid Categories associated to an Ad Set + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + ad_set_id = "ad-set-id_example" # str | Id of the Ad Set + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_category_bid_list(ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_category_bid_list: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ad_set_id** | **str**| Id of the Ad Set | + +### Return type + +[**AdSetCategoryBidListResponse**](AdSetCategoryBidListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of Category Bids for all valid Categories associated to an Ad Set. | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **get_display_multipliers** +> AdSetDisplayMultiplierListResponse get_display_multipliers(ad_set_id) + + + +Get the Display Multipliers for all valid Categories associated to an Ad Set + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + ad_set_id = "ad-set-id_example" # str | Id of the Ad Set + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_display_multipliers(ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_display_multipliers: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ad_set_id** | **str**| Id of the Ad Set | + +### Return type + +[**AdSetDisplayMultiplierListResponse**](AdSetDisplayMultiplierListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of Display Multipliers for all valid Categories associated to an Ad Set. | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **patch_ad_sets** +> ResponseAdSetId patch_ad_sets() + + + +Patch a list of AdSets. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.response_ad_set_id import ResponseAdSetId +from criteo_api_marketingsolutions_v2023_07.model.requests_patch_ad_set import RequestsPatchAdSet +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + requests_patch_ad_set = RequestsPatchAdSet( + data=[ + WriteModelPatchAdSet( + id="id_example", + type="PatchAdSet", + attributes=PatchAdSet( + name="name_example", + scheduling=PatchAdSetScheduling( + start_date=NillableDateTime( + value=dateutil_parser('1970-01-01T00:00:00.00Z'), + ), + end_date=NillableDateTime( + value=dateutil_parser('1970-01-01T00:00:00.00Z'), + ), + ), + bidding=PatchAdSetBidding( + bid_amount=NillableDecimal( + value=3.14, + ), + ), + targeting=AdSetTargeting( + delivery_limitations=AdSetDeliveryLimitations( + environments=[ + "web", + ], + devices=[ + "other", + ], + operating_systems=[ + "android", + ], + ), + geo_location=AdSetGeoLocation( + countries=NillableAdSetTargetingRule( + value=NillableAdSetTargetingRuleValue(None), + ), + subdivisions=NillableAdSetTargetingRule( + value=NillableAdSetTargetingRuleValue(None), + ), + zip_codes=NillableAdSetTargetingRule( + value=NillableAdSetTargetingRuleValue(None), + ), + ), + frequency_capping=AdSetFrequencyCapping( + frequency="hourly", + maximum_impressions=1, + ), + ), + budget=PatchAdSetBudget( + budget_strategy="capped", + budget_renewal="undefined", + budget_delivery_smoothing="accelerated", + budget_delivery_week="undefined", + budget_amount=NillableDecimal( + value=3.14, + ), + ), + ), + ), + ], + ) # RequestsPatchAdSet | List of adsets to patch. (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.patch_ad_sets(requests_patch_ad_set=requests_patch_ad_set) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->patch_ad_sets: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requests_patch_ad_set** | [**RequestsPatchAdSet**](RequestsPatchAdSet.md)| List of adsets to patch. | [optional] + +### Return type + +[**ResponseAdSetId**](ResponseAdSetId.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of patched adSets. | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **patch_campaigns** +> PatchResultCampaignListResponse patch_campaigns() + + + +Patch a list of Campaigns. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.patch_campaign_list_request import PatchCampaignListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_result_campaign_list_response import PatchResultCampaignListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + patch_campaign_list_request = PatchCampaignListRequest( + data=[ + PatchCampaignWriteResource( + id="id_example", + type="Campaign", + attributes=PatchCampaign( + spend_limit=PatchCampaignSpendLimit( + spend_limit_type="capped", + spend_limit_renewal="undefined", + spend_limit_amount=NillableDecimal( + value=3.14, + ), + ), + ), + ), + ], + ) # PatchCampaignListRequest | List of campaigns to patch. (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.patch_campaigns(patch_campaign_list_request=patch_campaign_list_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->patch_campaigns: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **patch_campaign_list_request** | [**PatchCampaignListRequest**](PatchCampaignListRequest.md)| List of campaigns to patch. | [optional] + +### Return type + +[**PatchResultCampaignListResponse**](PatchResultCampaignListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of patched campaigns. | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **patch_category_bid_list** +> PatchAdSetCategoryBidResultListResponse patch_category_bid_list(ad_set_id) + + + +Patch Category Bids for one or more Categories in a single request. Partial success policy is followed. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_list_request import PatchAdSetCategoryBidListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_category_bid_result_list_response import PatchAdSetCategoryBidResultListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + ad_set_id = "ad-set-id_example" # str | Id of the Ad Set + patch_ad_set_category_bid_list_request = PatchAdSetCategoryBidListRequest( + data=[ + PatchAdSetCategoryBidResource( + attributes=PatchAdSetCategoryBid( + bid_amount=3.14, + ), + id="id_example", + type="AdSetCategoryBid", + ), + ], + ) # PatchAdSetCategoryBidListRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.patch_category_bid_list(ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->patch_category_bid_list: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.patch_category_bid_list(ad_set_id, patch_ad_set_category_bid_list_request=patch_ad_set_category_bid_list_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->patch_category_bid_list: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ad_set_id** | **str**| Id of the Ad Set | + **patch_ad_set_category_bid_list_request** | [**PatchAdSetCategoryBidListRequest**](PatchAdSetCategoryBidListRequest.md)| | [optional] + +### Return type + +[**PatchAdSetCategoryBidResultListResponse**](PatchAdSetCategoryBidResultListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of updated Category Bids for given Categories associated to an Ad Set. | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **patch_display_multipliers** +> PatchAdSetDisplayMultiplierResultListResponse patch_display_multipliers(ad_set_id) + + + +Patch Display Multipliers for one or more Categories in a single request. Partial success policy is followed. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_list_request import PatchAdSetDisplayMultiplierListRequest +from criteo_api_marketingsolutions_v2023_07.model.patch_ad_set_display_multiplier_result_list_response import PatchAdSetDisplayMultiplierResultListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + ad_set_id = "ad-set-id_example" # str | Id of the Ad Set + patch_ad_set_display_multiplier_list_request = PatchAdSetDisplayMultiplierListRequest( + data=[ + PatchAdSetDisplayMultiplierResource( + attributes=PatchAdSetDisplayMultiplier( + display_multiplier=3.14, + ), + id="id_example", + type="AdSetDisplayMultiplier", + ), + ], + ) # PatchAdSetDisplayMultiplierListRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.patch_display_multipliers(ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->patch_display_multipliers: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.patch_display_multipliers(ad_set_id, patch_ad_set_display_multiplier_list_request=patch_ad_set_display_multiplier_list_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->patch_display_multipliers: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ad_set_id** | **str**| Id of the Ad Set | + **patch_ad_set_display_multiplier_list_request** | [**PatchAdSetDisplayMultiplierListRequest**](PatchAdSetDisplayMultiplierListRequest.md)| | [optional] + +### Return type + +[**PatchAdSetDisplayMultiplierResultListResponse**](PatchAdSetDisplayMultiplierResultListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of updated Display Multipliers for given Categories associated to an Ad Set. | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource or the resource does not exist. | - | + +[[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) + +# **search_ad_sets** +> ResponsesReadAdSet search_ad_sets() + + + +Search for ad sets + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.responses_read_ad_set import ResponsesReadAdSet +from criteo_api_marketingsolutions_v2023_07.model.request_ad_set_search import RequestAdSetSearch +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + request_ad_set_search = RequestAdSetSearch( + filters=AdSetSearchFilter( + ad_set_ids=[ + "ad_set_ids_example", + ], + advertiser_ids=[ + "advertiser_ids_example", + ], + campaign_ids=[ + "campaign_ids_example", + ], + ), + ) # RequestAdSetSearch | (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.search_ad_sets(request_ad_set_search=request_ad_set_search) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->search_ad_sets: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request_ad_set_search** | [**RequestAdSetSearch**](RequestAdSetSearch.md)| | [optional] + +### Return type + +[**ResponsesReadAdSet**](ResponsesReadAdSet.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | data for the ad sets | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | +**403** | Forbidden | - | + +[[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) + +# **search_campaigns** +> CampaignListResponse search_campaigns() + + + +Search for campaigns + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.campaign_list_response import CampaignListResponse +from criteo_api_marketingsolutions_v2023_07.model.campaign_search_request import CampaignSearchRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_search_request = CampaignSearchRequest( + filters=CampaignSearchFilters( + campaign_ids=[ + "campaign_ids_example", + ], + advertiser_ids=[ + "advertiser_ids_example", + ], + ), + ) # CampaignSearchRequest | filters on campaigns (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.search_campaigns(campaign_search_request=campaign_search_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->search_campaigns: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_search_request** | [**CampaignSearchRequest**](CampaignSearchRequest.md)| filters on campaigns | [optional] + +### Return type + +[**CampaignListResponse**](CampaignListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | data for the campaigns | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | +**403** | Forbidden | - | + +[[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) + +# **start_ad_sets** +> ResponsesAdSetId start_ad_sets() + + + +Start the specified list of ad sets + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.requests_ad_set_id import RequestsAdSetId +from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + requests_ad_set_id = RequestsAdSetId( + data=[ + WriteModelAdSetId( + id="id_example", + type="AdSetId", + ), + ], + ) # RequestsAdSetId | All the ad sets to start (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.start_ad_sets(requests_ad_set_id=requests_ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->start_ad_sets: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requests_ad_set_id** | [**RequestsAdSetId**](RequestsAdSetId.md)| All the ad sets to start | [optional] + +### Return type + +[**ResponsesAdSetId**](ResponsesAdSetId.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of ad sets that have been started and errors / warnings by ad set | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | + +[[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) + +# **stop_ad_sets** +> ResponsesAdSetId stop_ad_sets() + + + +Stop the specified list of ad sets + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.requests_ad_set_id import RequestsAdSetId +from criteo_api_marketingsolutions_v2023_07.model.responses_ad_set_id import ResponsesAdSetId +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + requests_ad_set_id = RequestsAdSetId( + data=[ + WriteModelAdSetId( + id="id_example", + type="AdSetId", + ), + ], + ) # RequestsAdSetId | All the ad sets to stop (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.stop_ad_sets(requests_ad_set_id=requests_ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->stop_ad_sets: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requests_ad_set_id** | [**RequestsAdSetId**](RequestsAdSetId.md)| All the ad sets to stop | [optional] + +### Return type + +[**ResponsesAdSetId**](ResponsesAdSetId.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List of ad sets that have been stopped and errors / warnings by ad set | - | +**400** | Bad Request | - | +**401** | The API client is not properly authenticated. | - | + +[[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_ad_set_audience** +> AdSetAudienceLinkEntityV1Response update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1) + + + +Link or unlink an audience with an ad set + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import campaign_api +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_entity_v1_response import AdSetAudienceLinkEntityV1Response +from criteo_api_marketingsolutions_v2023_07.model.ad_set_audience_link_input_entity_v1 import AdSetAudienceLinkInputEntityV1 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + ad_set_id = "ad-set-id_example" # str | The ad set ID. + ad_set_audience_link_input_entity_v1 = AdSetAudienceLinkInputEntityV1( + data=AdSetAudienceLinkEntityV1Resource( + attributes=AdSetAudienceLinkEntityV1( + audience_id="audience_id_example", + ), + id="id_example", + type="type_example", + ), + ) # AdSetAudienceLinkInputEntityV1 | Ad set-Audience update request. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->update_ad_set_audience: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ad_set_id** | **str**| The ad set ID. | + **ad_set_audience_link_input_entity_v1** | [**AdSetAudienceLinkInputEntityV1**](AdSetAudienceLinkInputEntityV1.md)| Ad set-Audience update request. | + +### Return type + +[**AdSetAudienceLinkEntityV1Response**](AdSetAudienceLinkEntityV1Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad request | - | +**401** | The API client is not properly authenticated. | - | +**403** | The API client is not authorized to access this resource. | - | + +[[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/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md b/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md new file mode 100644 index 00000000..9cf71828 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignListResponse.md @@ -0,0 +1,15 @@ +# CampaignListResponse + +List of output resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[CampaignReadResource]**](CampaignReadResource.md) | | [optional] [readonly] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md b/sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md new file mode 100644 index 00000000..fe2d7e4a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignReadResource.md @@ -0,0 +1,15 @@ +# CampaignReadResource + +read model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] [readonly] +**type** | **str** | | [optional] [readonly] +**attributes** | [**Campaign**](Campaign.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md b/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md new file mode 100644 index 00000000..88e0936f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignResponse.md @@ -0,0 +1,15 @@ +# CampaignResponse + +output resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CampaignReadResource**](CampaignReadResource.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md b/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md new file mode 100644 index 00000000..5616a11d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSearchFilters.md @@ -0,0 +1,14 @@ +# CampaignSearchFilters + +filters on campaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**campaign_ids** | **[str]** | Campaign ids to filter on | [optional] +**advertiser_ids** | **[str]** | Advertiser ids to which campaigns are linked to | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md b/sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md new file mode 100644 index 00000000..1f980099 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSearchRequest.md @@ -0,0 +1,13 @@ +# CampaignSearchRequest + +request payload of the search endpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | [**CampaignSearchFilters**](CampaignSearchFilters.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md new file mode 100644 index 00000000..75512f0a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimit.md @@ -0,0 +1,15 @@ +# CampaignSpendLimit + +campaign spend limit model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spend_limit_type** | **str** | Whether your spend limit is capped or not | [optional] +**spend_limit_renewal** | **str** | The pace of the spend limit renewal | [optional] +**spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md new file mode 100644 index 00000000..7369f983 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignSpendLimitV23Q1.md @@ -0,0 +1,15 @@ +# CampaignSpendLimitV23Q1 + +campaign spend limit model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spend_limit_type** | **str** | Whether your spend limit is capped or not | [optional] +**spend_limit_renewal** | **str** | The pace of the spend limit renewal | [optional] +**spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md new file mode 100644 index 00000000..dd4df623 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1.md @@ -0,0 +1,16 @@ +# CampaignV23Q1 + +campaign read model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the campaign | [optional] +**advertiser_id** | **str** | Advertiser id of the campaign | [optional] +**spend_limit** | [**CampaignSpendLimitV23Q1**](CampaignSpendLimitV23Q1.md) | | [optional] +**goal** | **str** | Goal of the campaign | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Resource.md b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Resource.md new file mode 100644 index 00000000..5590dbc9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Resource.md @@ -0,0 +1,15 @@ +# CampaignV23Q1Resource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**CampaignV23Q1**](CampaignV23Q1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md new file mode 100644 index 00000000..5ddde025 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CampaignV23Q1Response.md @@ -0,0 +1,15 @@ +# CampaignV23Q1Response + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CampaignV23Q1Resource**](CampaignV23Q1Resource.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CommonProblem.md b/sdks/marketingsolutions_2023-07/docs/CommonProblem.md new file mode 100644 index 00000000..08fb7693 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CommonProblem.md @@ -0,0 +1,21 @@ +# CommonProblem + +Common problem object. Can be specialized as needed. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_id** | **str** | The request correlation ID this problem comes from. | [optional] +**trace_identifier** | **str** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] +**type** | **str** | The problem's category. | [optional] +**code** | **str** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str** | A short human-readable description of the problem type | [optional] +**detail** | **str** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1.md b/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1.md new file mode 100644 index 00000000..b8bc8be9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1.md @@ -0,0 +1,15 @@ +# ContactListStatisticsEntityV1 + +Contact list statistics. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number_of_identifiers** | **int** | Number of identifiers in the contact list. | [optional] +**number_of_matches** | **int** | Number of matched identifiers in the contact list. | [optional] +**match_rate** | **float** | Percentage of matched identifiers in the contact list. Can differ from matches/identifiers depending on the contact list type. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Resource.md new file mode 100644 index 00000000..08c49768 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Resource.md @@ -0,0 +1,15 @@ +# ContactListStatisticsEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ContactListStatisticsEntityV1**](ContactListStatisticsEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Response.md b/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Response.md new file mode 100644 index 00000000..c87b7cf2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactListStatisticsEntityV1Response.md @@ -0,0 +1,15 @@ +# ContactListStatisticsEntityV1Response + +A top-level object that encapsulates a Criteo API response for a single entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ContactListStatisticsEntityV1Resource**](ContactListStatisticsEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactListV1.md b/sdks/marketingsolutions_2023-07/docs/ContactListV1.md new file mode 100644 index 00000000..00bf70e1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactListV1.md @@ -0,0 +1,13 @@ +# ContactListV1 + +Settings to target users with your contact lists. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_read_only** | **bool** | Is the segment read-only | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactlistAmendment.md b/sdks/marketingsolutions_2023-07/docs/ContactlistAmendment.md new file mode 100644 index 00000000..efab1fc8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactlistAmendment.md @@ -0,0 +1,14 @@ +# ContactlistAmendment + +Parameters for the amendment of a contactlist + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | User List | +**attributes** | [**ContactlistAmendmentAttributes**](ContactlistAmendmentAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md new file mode 100644 index 00000000..dab37703 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentAttributes.md @@ -0,0 +1,16 @@ +# ContactlistAmendmentAttributes + +the name of the entity type + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation** | **str** | Operation to add or remove users | +**identifiers** | **[str]** | The users tos add or remove, each in the schema specified | +**identifier_type** | **str** | What type of identifiers are used | [optional] +**gum_caller_id** | **int** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentRequest.md b/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentRequest.md new file mode 100644 index 00000000..ced34a88 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactlistAmendmentRequest.md @@ -0,0 +1,13 @@ +# ContactlistAmendmentRequest + +Request for a contactlist amendment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ContactlistAmendment**](ContactlistAmendment.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactlistOperation.md b/sdks/marketingsolutions_2023-07/docs/ContactlistOperation.md new file mode 100644 index 00000000..17262c78 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactlistOperation.md @@ -0,0 +1,14 @@ +# ContactlistOperation + +Response definition of a contactlist operation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**attributes** | [**ContactlistOperationAttributes**](ContactlistOperationAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_2023-07/docs/ContactlistOperationAttributes.md new file mode 100644 index 00000000..db50c0c9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ContactlistOperationAttributes.md @@ -0,0 +1,19 @@ +# ContactlistOperationAttributes + +the contactlist operation attributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation** | **str** | The action recorded | +**contact_list_id** | **int** | the affected user list id | [optional] +**request_date** | **datetime** | When the action was recorded | [optional] +**identifier_type** | **str** | The schema specified for of the identifiers | [optional] +**nb_valid_identifiers** | **int** | How many identifiers were valid for the specified schema | [optional] +**nb_invalid_identifiers** | **int** | How many identifiers were invalid for the specified schema | [optional] +**sample_invalid_identifiers** | **[str]** | A sample of invalid identifiers if there is some | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/Coupon.md b/sdks/marketingsolutions_2023-07/docs/Coupon.md new file mode 100644 index 00000000..bf44ab8c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Coupon.md @@ -0,0 +1,26 @@ +# Coupon + +Coupons are static images applied on ad set which can be displayed within an ad and link to a landing page. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the Coupon | [optional] +**description** | **str** | The description of the Coupon | [optional] +**author** | **str** | The login of the person who created this Coupon | [optional] +**advertiser_id** | **str** | Advertiser linked to the Coupon | [optional] +**ad_set_id** | **str** | The id of the Ad Set on which the Coupon is applied to | [optional] +**landing_page_url** | **str** | Web redirection of the landing page url | [optional] +**start_date** | **str** | The date when the Coupon will be launched String must be in ISO8601 format | [optional] +**end_date** | **str** | The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format | [optional] +**format** | **str** | Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\" | [optional] +**status** | **str** | The status of the Coupon | [optional] +**images** | [**[ImageSlide]**](ImageSlide.md) | List of slides containing the image URLs | [optional] +**show_every** | **int** | Show the Coupon every N seconds (between 1 and 10) | [optional] +**show_duration** | **int** | Show Coupon for a duration of N seconds (between 1 and 5) | [optional] +**rotations_number** | **int** | Number of rotations for the Coupons (from 1 to 10 times) | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CouponListResponse.md b/sdks/marketingsolutions_2023-07/docs/CouponListResponse.md new file mode 100644 index 00000000..47b04e21 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CouponListResponse.md @@ -0,0 +1,15 @@ +# CouponListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[CouponResource]**](CouponResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CouponResource.md b/sdks/marketingsolutions_2023-07/docs/CouponResource.md new file mode 100644 index 00000000..cf3dd64b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CouponResource.md @@ -0,0 +1,15 @@ +# CouponResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Coupon**](Coupon.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CouponResponse.md b/sdks/marketingsolutions_2023-07/docs/CouponResponse.md new file mode 100644 index 00000000..5aa9f42c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CouponResponse.md @@ -0,0 +1,15 @@ +# CouponResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CouponResource**](CouponResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizes.md b/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizes.md new file mode 100644 index 00000000..e07164d5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizes.md @@ -0,0 +1,14 @@ +# CouponSupportedSizes + +Entity containing the list of Coupon supported sizes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logo_zone** | **[str]** | Array of LogoZone sizes as string in width x height format | [optional] +**full_frame** | **[str]** | Array of FullFrame sizes as string in width x height format | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResource.md b/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResource.md new file mode 100644 index 00000000..c1f115d0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResource.md @@ -0,0 +1,15 @@ +# CouponSupportedSizesResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**CouponSupportedSizes**](CouponSupportedSizes.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResponse.md b/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResponse.md new file mode 100644 index 00000000..cc22c855 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CouponSupportedSizesResponse.md @@ -0,0 +1,15 @@ +# CouponSupportedSizesResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CouponSupportedSizesResource**](CouponSupportedSizesResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md new file mode 100644 index 00000000..ada33fdb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSet.md @@ -0,0 +1,22 @@ +# CreateAdSet + +ad set create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the ad set | +**dataset_id** | **str** | Dataset id of this ad set | +**campaign_id** | **str** | Campaign id this ad set belongs to | +**objective** | **str** | Objective of the ad set | +**schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | +**bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | +**targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | +**budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | +**tracking_code** | **str** | The click tracking code associated to this Ad Set. | +**media_type** | **str** | Media type for the ad set | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md new file mode 100644 index 00000000..d6060ec7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetBidding.md @@ -0,0 +1,14 @@ +# CreateAdSetBidding + +ad set bidding create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cost_controller** | **str** | How spend is controlled | +**bid_amount** | **float** | Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md new file mode 100644 index 00000000..374ec617 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetBudget.md @@ -0,0 +1,17 @@ +# CreateAdSetBudget + +ad set budget create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**budget_strategy** | **str** | | +**budget_renewal** | **str** | | [optional] +**budget_delivery_smoothing** | **str** | | [optional] +**budget_delivery_week** | **str** | | [optional] +**budget_amount** | **float** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md new file mode 100644 index 00000000..c2fde1f0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetGeoLocation.md @@ -0,0 +1,15 @@ +# CreateAdSetGeoLocation + +Geolocation configuration of the ad set + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countries** | [**AdSetTargetingRule**](AdSetTargetingRule.md) | | [optional] +**subdivisions** | [**AdSetTargetingRule**](AdSetTargetingRule.md) | | [optional] +**zip_codes** | [**AdSetTargetingRule**](AdSetTargetingRule.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md new file mode 100644 index 00000000..13bee9cc --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetRequest.md @@ -0,0 +1,13 @@ +# CreateAdSetRequest + +Data model for an input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateAdSetResource**](CreateAdSetResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md new file mode 100644 index 00000000..9e75d916 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetResource.md @@ -0,0 +1,14 @@ +# CreateAdSetResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**CreateAdSet**](CreateAdSet.md) | | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md new file mode 100644 index 00000000..4d3634f7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetSchedule.md @@ -0,0 +1,14 @@ +# CreateAdSetSchedule + +ad set schedule create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | | +**end_date** | **datetime** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md b/sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md new file mode 100644 index 00000000..835a9743 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateAdSetTargeting.md @@ -0,0 +1,15 @@ +# CreateAdSetTargeting + +Targeting configuration of the ad set + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**frequency_capping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | +**delivery_limitations** | [**AdSetDeliveryLimitations**](AdSetDeliveryLimitations.md) | | [optional] +**geo_location** | [**CreateAdSetGeoLocation**](CreateAdSetGeoLocation.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md b/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md new file mode 100644 index 00000000..b42dd734 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCampaign.md @@ -0,0 +1,16 @@ +# CreateCampaign + +Campaign create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the campaign | +**advertiser_id** | **str** | Advertiser id this campaign belongs to | +**goal** | **str** | Goal for the marketing campaign | +**spend_limit** | [**CreateCampaignSpendLimit**](CreateCampaignSpendLimit.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCampaignRequest.md b/sdks/marketingsolutions_2023-07/docs/CreateCampaignRequest.md new file mode 100644 index 00000000..06d9d1e9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCampaignRequest.md @@ -0,0 +1,13 @@ +# CreateCampaignRequest + +Data model for an input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateCampaignResource**](CreateCampaignResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCampaignResource.md b/sdks/marketingsolutions_2023-07/docs/CreateCampaignResource.md new file mode 100644 index 00000000..2e4134f3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCampaignResource.md @@ -0,0 +1,14 @@ +# CreateCampaignResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**CreateCampaign**](CreateCampaign.md) | | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCampaignSpendLimit.md b/sdks/marketingsolutions_2023-07/docs/CreateCampaignSpendLimit.md new file mode 100644 index 00000000..2473665a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCampaignSpendLimit.md @@ -0,0 +1,15 @@ +# CreateCampaignSpendLimit + +campaign spend limit create model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spend_limit_type** | **str** | Whether your spend limit is capped or not | +**spend_limit_renewal** | **str** | The pace of the spend limit renewal | [optional] +**spend_limit_amount** | **float** | The amount of the spend limit. null if spendLimitType is uncapped. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCoupon.md b/sdks/marketingsolutions_2023-07/docs/CreateCoupon.md new file mode 100644 index 00000000..41f4eda6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCoupon.md @@ -0,0 +1,23 @@ +# CreateCoupon + +Entity to create a Coupon + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the Coupon | +**ad_set_id** | **str** | The id of the Ad Set on which the Coupon is applied to | +**landing_page_url** | **str** | Web redirection of the landing page url | +**start_date** | **str** | The date when the coupon will be launched String must be in ISO8601 format | +**format** | **str** | Format of the Coupon, it can have two values: \"FullFrame\" or \"LogoZone\" | +**images** | [**[CreateImageSlide]**](CreateImageSlide.md) | List of slides containing the images as a base-64 encoded string | +**show_every** | **int** | Show the Coupon every N seconds (between 1 and 10) | +**show_duration** | **int** | Show Coupon for a duration of N seconds (between 1 and 5) | +**rotations_number** | **int** | Number of rotations for the Coupons (from 1 to 10 times) | +**description** | **str** | The description of the Coupon | [optional] +**end_date** | **str** | The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCouponRequest.md b/sdks/marketingsolutions_2023-07/docs/CreateCouponRequest.md new file mode 100644 index 00000000..612272cc --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCouponRequest.md @@ -0,0 +1,13 @@ +# CreateCouponRequest + +Data model for input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateCouponResource**](CreateCouponResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateCouponResource.md b/sdks/marketingsolutions_2023-07/docs/CreateCouponResource.md new file mode 100644 index 00000000..53987e49 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateCouponResource.md @@ -0,0 +1,15 @@ +# CreateCouponResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**CreateCoupon**](CreateCoupon.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreateImageSlide.md b/sdks/marketingsolutions_2023-07/docs/CreateImageSlide.md new file mode 100644 index 00000000..83dfa7f9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreateImageSlide.md @@ -0,0 +1,15 @@ +# CreateImageSlide + +Slide containing the images of the same size as a base-64 encoded string + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**width** | **int** | Width of the Coupon slide | [optional] +**height** | **int** | Height of the Coupon slide | [optional] +**slide_base64_strings** | **[str]** | Array of images of the same size as a base-64 encoded string | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/Creative.md b/sdks/marketingsolutions_2023-07/docs/Creative.md new file mode 100644 index 00000000..a6e5b392 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Creative.md @@ -0,0 +1,23 @@ +# Creative + +A creative is a project with the necessary information to display a creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the creative | +**author** | **str** | The login of the person who created this creative ( | +**status** | **str** | The status of the creative | +**advertiser_id** | **str** | Advertiser linked to the Creative | +**description** | **str** | The description of the creative | [optional] +**format** | **str** | The format of the creative | [optional] +**dataset_id** | **str** | Data set id linked to the Creative | [optional] +**image_attributes** | [**ImageAttributes**](ImageAttributes.md) | | [optional] +**html_tag_attributes** | [**HtmlTagAttributes**](HtmlTagAttributes.md) | | [optional] +**dynamic_attributes** | [**DynamicAttributes**](DynamicAttributes.md) | | [optional] +**adaptive_attributes** | [**AdaptiveAttributes**](AdaptiveAttributes.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreativeApi.md b/sdks/marketingsolutions_2023-07/docs/CreativeApi.md new file mode 100644 index 00000000..465854f2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeApi.md @@ -0,0 +1,1775 @@ +# criteo_api_marketingsolutions_v2023_07.CreativeApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_advertiser_ad**](CreativeApi.md#create_advertiser_ad) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads | +[**create_advertiser_coupon**](CreativeApi.md#create_advertiser_coupon) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons | +[**create_advertiser_creative**](CreativeApi.md#create_advertiser_creative) | **POST** /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives | +[**delete_ad**](CreativeApi.md#delete_ad) | **DELETE** /2023-07/marketing-solutions/ads/{id} | +[**delete_advertiser_coupon**](CreativeApi.md#delete_advertiser_coupon) | **DELETE** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +[**delete_creative**](CreativeApi.md#delete_creative) | **DELETE** /2023-07/marketing-solutions/creatives/{id} | +[**edit_advertiser_coupon**](CreativeApi.md#edit_advertiser_coupon) | **PUT** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +[**edit_creative**](CreativeApi.md#edit_creative) | **PUT** /2023-07/marketing-solutions/creatives/{id} | +[**generate_creative_preview**](CreativeApi.md#generate_creative_preview) | **POST** /2023-07/marketing-solutions/creatives/{id}/preview | +[**get_ad**](CreativeApi.md#get_ad) | **GET** /2023-07/marketing-solutions/ads/{id} | +[**get_advertiser_ads**](CreativeApi.md#get_advertiser_ads) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/ads | +[**get_advertiser_coupon**](CreativeApi.md#get_advertiser_coupon) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id} | +[**get_advertiser_coupon_preview**](CreativeApi.md#get_advertiser_coupon_preview) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons/{id}/preview | +[**get_advertiser_coupon_supported_sizes**](CreativeApi.md#get_advertiser_coupon_supported_sizes) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons-supported-sizes | +[**get_advertiser_coupons**](CreativeApi.md#get_advertiser_coupons) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/coupons | +[**get_advertiser_creatives**](CreativeApi.md#get_advertiser_creatives) | **GET** /2023-07/marketing-solutions/advertisers/{advertiser-id}/creatives | +[**get_creative**](CreativeApi.md#get_creative) | **GET** /2023-07/marketing-solutions/creatives/{id} | + + +# **create_advertiser_ad** +> AdResponse create_advertiser_ad(advertiser_id, ad_write_request) + + + +Create an Ad + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.ad_response import AdResponse +from criteo_api_marketingsolutions_v2023_07.model.ad_write_request import AdWriteRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + ad_write_request = AdWriteRequest( + data=AdWriteResource( + attributes=AdWrite( + name="name_example", + description="description_example", + creative_id="creative_id_example", + ad_set_id="ad_set_id_example", + inventory_type="Display", + start_date="start_date_example", + end_date="end_date_example", + ), + id="id_example", + type="type_example", + ), + ) # AdWriteRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_advertiser_ad(advertiser_id, ad_write_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->create_advertiser_ad: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **ad_write_request** | [**AdWriteRequest**](AdWriteRequest.md)| | + +### Return type + +[**AdResponse**](AdResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The created Ad is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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_advertiser_coupon** +> CouponResponse create_advertiser_coupon(advertiser_id, create_coupon_request) + + + +Create a Coupon + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_07.model.create_coupon_request import CreateCouponRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + create_coupon_request = CreateCouponRequest( + data=CreateCouponResource( + attributes=CreateCoupon( + name="name_example", + description="description_example", + ad_set_id="ad_set_id_example", + landing_page_url="landing_page_url_example", + start_date="start_date_example", + end_date="end_date_example", + format="FullFrame", + images=[ + CreateImageSlide( + width=1, + height=1, + slide_base64_strings=[ + "slide_base64_strings_example", + ], + ), + ], + show_every=1, + show_duration=1, + rotations_number=1, + ), + id="id_example", + type="type_example", + ), + ) # CreateCouponRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_advertiser_coupon(advertiser_id, create_coupon_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->create_advertiser_coupon: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **create_coupon_request** | [**CreateCouponRequest**](CreateCouponRequest.md)| | + +### Return type + +[**CouponResponse**](CouponResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The created Coupon is returned. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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_advertiser_creative** +> CreativeResponse create_advertiser_creative(advertiser_id, creative_write_request) + + + +Create a Creative + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_07.model.creative_write_request import CreativeWriteRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + creative_write_request = CreativeWriteRequest( + data=CreativeWriteResource( + attributes=CreativeWrite( + name="name_example", + description="description_example", + format="Image", + dataset_id="dataset_id_example", + image_write_attributes=ImageWriteAttributes( + base64_strings=[ + "base64_strings_example", + ], + landing_page_url="landing_page_url_example", + ), + html_tag_write_attributes=HtmlTagWriteAttributes( + tags=[ + Tag( + html_tag="html_tag_example", + size=Size( + width=1, + height=1, + ), + ), + ], + ), + dynamic_write_attributes=DynamicWriteAttributes( + logo_base64_string="logo_base64_string_example", + creative_background_color="creative_background_color_example", + body_text_color="body_text_color_example", + prices_color="prices_color_example", + primary_font="primary_font_example", + calls_to_action=[ + "calls_to_action_example", + ], + product_image_display="ShowFullImage", + ), + adaptive_write_attributes=AdaptiveWriteAttributes( + layouts=[ + "Editorial", + ], + logo_base64_string="logo_base64_string_example", + headline_text="headline_text_example", + headline_font="headline_font_example", + description_text="description_text_example", + description_font="description_font_example", + calls_to_action=[ + "calls_to_action_example", + ], + colors=AdaptiveColors( + logo_area_and_title_color="logo_area_and_title_color_example", + background_color="background_color_example", + text1_color="text1_color_example", + text2_color="text2_color_example", + cta_background_color="cta_background_color_example", + cta_text_color="cta_text_color_example", + ), + image_sets_base64=[ + ImageSetBase64( + image_base64_strings=[ + "image_base64_strings_example", + ], + headline_text="headline_text_example", + ), + ], + image_display="ShowFullImage", + video_base64_strings=[ + "video_base64_strings_example", + ], + landing_page_url="landing_page_url_example", + ), + ), + id="id_example", + type="type_example", + ), + ) # CreativeWriteRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_advertiser_creative(advertiser_id, creative_write_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->create_advertiser_creative: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **creative_write_request** | [**CreativeWriteRequest**](CreativeWriteRequest.md)| | + +### Return type + +[**CreativeResponse**](CreativeResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The created creative is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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_ad** +> delete_ad(id) + + + +Delete an Ad + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + id = 1 # int | The ad identifier to delete. + + # example passing only required values which don't have defaults set + try: + api_instance.delete_ad(id) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->delete_ad: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| The ad identifier to delete. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The ad was deleted. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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_advertiser_coupon** +> delete_advertiser_coupon(advertiser_id, id) + + + +Delete a Coupon + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + id = "id_example" # str | The Coupon identifier to delete. + + # example passing only required values which don't have defaults set + try: + api_instance.delete_advertiser_coupon(advertiser_id, id) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->delete_advertiser_coupon: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **id** | **str**| The Coupon identifier to delete. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The Coupon was deleted. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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_creative** +> delete_creative(id) + + + +Delete a Creative if there are no ads binded to it + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + id = "id_example" # str | The creative identifier to delete. + + # example passing only required values which don't have defaults set + try: + api_instance.delete_creative(id) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->delete_creative: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The creative identifier to delete. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | The creative was deleted. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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) + +# **edit_advertiser_coupon** +> CouponResponse edit_advertiser_coupon(advertiser_id, id, update_coupon_request) + + + +Edit a specific Coupon + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_v2023_07.model.update_coupon_request import UpdateCouponRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + id = "id_example" # str | The Coupon identifier to edit. + update_coupon_request = UpdateCouponRequest( + data=UpdateCouponResource( + attributes=UpdateCoupon( + start_date="start_date_example", + end_date="end_date_example", + ), + id="id_example", + type="type_example", + ), + ) # UpdateCouponRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.edit_advertiser_coupon(advertiser_id, id, update_coupon_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->edit_advertiser_coupon: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **id** | **str**| The Coupon identifier to edit. | + **update_coupon_request** | [**UpdateCouponRequest**](UpdateCouponRequest.md)| | + +### Return type + +[**CouponResponse**](CouponResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The edited Coupon is returned. | - | +**400** | The request contained invalid parameters. | - | + +[[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) + +# **edit_creative** +> CreativeResponse edit_creative(id, creative_write_request) + + + +Edit a specific Creative + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_v2023_07.model.creative_write_request import CreativeWriteRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + id = "id_example" # str | The creative identifier to edit. + creative_write_request = CreativeWriteRequest( + data=CreativeWriteResource( + attributes=CreativeWrite( + name="name_example", + description="description_example", + format="Image", + dataset_id="dataset_id_example", + image_write_attributes=ImageWriteAttributes( + base64_strings=[ + "base64_strings_example", + ], + landing_page_url="landing_page_url_example", + ), + html_tag_write_attributes=HtmlTagWriteAttributes( + tags=[ + Tag( + html_tag="html_tag_example", + size=Size( + width=1, + height=1, + ), + ), + ], + ), + dynamic_write_attributes=DynamicWriteAttributes( + logo_base64_string="logo_base64_string_example", + creative_background_color="creative_background_color_example", + body_text_color="body_text_color_example", + prices_color="prices_color_example", + primary_font="primary_font_example", + calls_to_action=[ + "calls_to_action_example", + ], + product_image_display="ShowFullImage", + ), + adaptive_write_attributes=AdaptiveWriteAttributes( + layouts=[ + "Editorial", + ], + logo_base64_string="logo_base64_string_example", + headline_text="headline_text_example", + headline_font="headline_font_example", + description_text="description_text_example", + description_font="description_font_example", + calls_to_action=[ + "calls_to_action_example", + ], + colors=AdaptiveColors( + logo_area_and_title_color="logo_area_and_title_color_example", + background_color="background_color_example", + text1_color="text1_color_example", + text2_color="text2_color_example", + cta_background_color="cta_background_color_example", + cta_text_color="cta_text_color_example", + ), + image_sets_base64=[ + ImageSetBase64( + image_base64_strings=[ + "image_base64_strings_example", + ], + headline_text="headline_text_example", + ), + ], + image_display="ShowFullImage", + video_base64_strings=[ + "video_base64_strings_example", + ], + landing_page_url="landing_page_url_example", + ), + ), + id="id_example", + type="type_example", + ), + ) # CreativeWriteRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.edit_creative(id, creative_write_request) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->edit_creative: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The creative identifier to edit. | + **creative_write_request** | [**CreativeWriteRequest**](CreativeWriteRequest.md)| | + +### Return type + +[**CreativeResponse**](CreativeResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The edited creative is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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) + +# **generate_creative_preview** +> str generate_creative_preview(id) + + + +Generate a preview of a specific Creative + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + id = "id_example" # str | The Creative identifier to preview. + width = 1 # int | The width of the Creative to preview. (optional) + height = 1 # int | The height of the Creative to preview. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.generate_creative_preview(id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->generate_creative_preview: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.generate_creative_preview(id, width=width, height=height) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->generate_creative_preview: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The Creative identifier to preview. | + **width** | **int**| The width of the Creative to preview. | [optional] + **height** | **int**| The height of the Creative to preview. | [optional] + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/html, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The preview HTML of a specific Creative is returned. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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) + +# **get_ad** +> AdResponse get_ad(id) + + + +Get an Ad from its id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.ad_response import AdResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + id = 1 # int | The ad identifier to retrieve. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_ad(id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_ad: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| The ad identifier to retrieve. | + +### Return type + +[**AdResponse**](AdResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The found ad is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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) + +# **get_advertiser_ads** +> AdListResponse get_advertiser_ads(advertiser_id) + + + +Get the list of self-services Ads for a given advertiser + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.ad_list_response import AdListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + limit = 1 # int | The number of ads to be returned. The default is 50. (optional) + offset = 1 # int | The (zero-based) offset into the collection of ads. The default is 0. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_ads(advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_ads: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_advertiser_ads(advertiser_id, limit=limit, offset=offset) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_ads: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **limit** | **int**| The number of ads to be returned. The default is 50. | [optional] + **offset** | **int**| The (zero-based) offset into the collection of ads. The default is 0. | [optional] + +### Return type + +[**AdListResponse**](AdListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of self-services Ads is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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) + +# **get_advertiser_coupon** +> CouponResponse get_advertiser_coupon(advertiser_id, id) + + + +Get a Coupon from its id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.coupon_response import CouponResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + id = "id_example" # str | The Coupon identifier to retrieve. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_coupon(advertiser_id, id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupon: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **id** | **str**| The Coupon identifier to retrieve. | + +### Return type + +[**CouponResponse**](CouponResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The found Coupon is returned. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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) + +# **get_advertiser_coupon_preview** +> str get_advertiser_coupon_preview(advertiser_id, id) + + + +Get the preview of a specific Coupon + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + id = "id_example" # str | The Coupon identifier to preview. + width = 1 # int | The width of the coupon to preview. (optional) + height = 1 # int | The height of the coupon to preview. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_coupon_preview(advertiser_id, id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupon_preview: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_advertiser_coupon_preview(advertiser_id, id, width=width, height=height) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupon_preview: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **id** | **str**| The Coupon identifier to preview. | + **width** | **int**| The width of the coupon to preview. | [optional] + **height** | **int**| The height of the coupon to preview. | [optional] + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/html, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The preview HTML of a specific Coupon is returned. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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) + +# **get_advertiser_coupon_supported_sizes** +> CouponSupportedSizesResponse get_advertiser_coupon_supported_sizes(advertiser_id) + + + +Get the list of Coupon supported sizes + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.coupon_supported_sizes_response import CouponSupportedSizesResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + ad_set_id = "ad-set-id_example" # str | The ad set id on which you want to check the Coupon supported sizes. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_coupon_supported_sizes(advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupon_supported_sizes: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_advertiser_coupon_supported_sizes(advertiser_id, ad_set_id=ad_set_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupon_supported_sizes: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **ad_set_id** | **str**| The ad set id on which you want to check the Coupon supported sizes. | [optional] + +### Return type + +[**CouponSupportedSizesResponse**](CouponSupportedSizesResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of Coupon supported sizes is returned. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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) + +# **get_advertiser_coupons** +> CouponListResponse get_advertiser_coupons(advertiser_id) + + + +Get the list of self-services Coupons for a given advertiser + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.coupon_list_response import CouponListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + limit = 1 # int | The number of coupons to be returned. The default is 50. (optional) + offset = 1 # int | The (zero-based) offset into the collection of coupons. The default is 0. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_coupons(advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupons: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_advertiser_coupons(advertiser_id, limit=limit, offset=offset) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupons: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **limit** | **int**| The number of coupons to be returned. The default is 50. | [optional] + **offset** | **int**| The (zero-based) offset into the collection of coupons. The default is 0. | [optional] + +### Return type + +[**CouponListResponse**](CouponListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of self-services Coupons is returned. | - | +**400** | The request contained invalid parameters. | - | +**403** | The request was not properly authorized. | - | + +[[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) + +# **get_advertiser_creatives** +> CreativeListResponse get_advertiser_creatives(advertiser_id) + + + +Get the list of self-services Creatives for a given advertiser + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.creative_list_response import CreativeListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + limit = 1 # int | The number of creatives to be returned. The default is 50. (optional) + offset = 1 # int | The (zero-based) offset into the collection of creatives. The default is 0. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_creatives(advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_creatives: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_advertiser_creatives(advertiser_id, limit=limit, offset=offset) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_creatives: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **advertiser_id** | **str**| The advertiser identifier. | + **limit** | **int**| The number of creatives to be returned. The default is 50. | [optional] + **offset** | **int**| The (zero-based) offset into the collection of creatives. The default is 0. | [optional] + +### Return type + +[**CreativeListResponse**](CreativeListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The list of self-services Creatives is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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) + +# **get_creative** +> CreativeResponse get_creative(id) + + + +Get a Creative from its id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import creative_api +from criteo_api_marketingsolutions_v2023_07.model.creative_response import CreativeResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = creative_api.CreativeApi(api_client) + id = "id_example" # str | The creative identifier to retrieve. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_creative(id) + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling CreativeApi->get_creative: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The creative identifier to retrieve. | + +### Return type + +[**CreativeResponse**](CreativeResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | The found creative is returned. | - | +**400** | The request contained invalid parameters. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | + +[[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/sdks/marketingsolutions_2023-07/docs/CreativeListResponse.md b/sdks/marketingsolutions_2023-07/docs/CreativeListResponse.md new file mode 100644 index 00000000..778ef466 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeListResponse.md @@ -0,0 +1,15 @@ +# CreativeListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[CreativeResource]**](CreativeResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreativeResource.md b/sdks/marketingsolutions_2023-07/docs/CreativeResource.md new file mode 100644 index 00000000..024a0be3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeResource.md @@ -0,0 +1,15 @@ +# CreativeResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Creative**](Creative.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreativeResponse.md b/sdks/marketingsolutions_2023-07/docs/CreativeResponse.md new file mode 100644 index 00000000..dde2efa0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeResponse.md @@ -0,0 +1,15 @@ +# CreativeResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreativeResource**](CreativeResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreativeWrite.md b/sdks/marketingsolutions_2023-07/docs/CreativeWrite.md new file mode 100644 index 00000000..66d31085 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeWrite.md @@ -0,0 +1,20 @@ +# CreativeWrite + +Entity to create or update a creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the creative | +**format** | **str** | The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" | +**dataset_id** | **str** | Dataset linked to the Creative | +**description** | **str** | The description of the creative | [optional] +**image_write_attributes** | [**ImageWriteAttributes**](ImageWriteAttributes.md) | | [optional] +**html_tag_write_attributes** | [**HtmlTagWriteAttributes**](HtmlTagWriteAttributes.md) | | [optional] +**dynamic_write_attributes** | [**DynamicWriteAttributes**](DynamicWriteAttributes.md) | | [optional] +**adaptive_write_attributes** | [**AdaptiveWriteAttributes**](AdaptiveWriteAttributes.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreativeWriteRequest.md b/sdks/marketingsolutions_2023-07/docs/CreativeWriteRequest.md new file mode 100644 index 00000000..953806a2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeWriteRequest.md @@ -0,0 +1,13 @@ +# CreativeWriteRequest + +Data model for input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreativeWriteResource**](CreativeWriteResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/CreativeWriteResource.md b/sdks/marketingsolutions_2023-07/docs/CreativeWriteResource.md new file mode 100644 index 00000000..85e4e16c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CreativeWriteResource.md @@ -0,0 +1,15 @@ +# CreativeWriteResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**CreativeWrite**](CreativeWrite.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CriteoApiErrorV2.md b/sdks/marketingsolutions_2023-07/docs/CriteoApiError.md similarity index 98% rename from sdks/marketingsolutions_preview/docs/CriteoApiErrorV2.md rename to sdks/marketingsolutions_2023-07/docs/CriteoApiError.md index 382e7397..3a96e3de 100644 --- a/sdks/marketingsolutions_preview/docs/CriteoApiErrorV2.md +++ b/sdks/marketingsolutions_2023-07/docs/CriteoApiError.md @@ -1,4 +1,4 @@ -# CriteoApiErrorV2 +# CriteoApiError Criteo API response error diff --git a/sdks/marketingsolutions_2023-07/docs/CriteoApiWarning.md b/sdks/marketingsolutions_2023-07/docs/CriteoApiWarning.md new file mode 100644 index 00000000..8126aae7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/CriteoApiWarning.md @@ -0,0 +1,18 @@ +# CriteoApiWarning + +Criteo API response warning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_id** | **str** | The correlation ID provided by the gateway | [optional] +**type** | **str** | A machine-readable code specifying error category | [optional] +**code** | **str** | A machine-readable error code string in kabab-case. Unique across Criteo | [optional] +**instance** | **str** | A URI reference that identifies the specific occurrence of the problem | [optional] +**title** | **str** | A short, human-readable remarks of the problem type. | [optional] +**detail** | **str** | A human-readable explanation specific to this occurrence of the problem. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/DeleteAudienceContactListResponse.md b/sdks/marketingsolutions_2023-07/docs/DeleteAudienceContactListResponse.md new file mode 100644 index 00000000..c4ca8210 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/DeleteAudienceContactListResponse.md @@ -0,0 +1,15 @@ +# DeleteAudienceContactListResponse + +Response of a contactlist deletion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md b/sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md new file mode 100644 index 00000000..2ac1615c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/DeleteAudienceResponse.md @@ -0,0 +1,15 @@ +# DeleteAudienceResponse + +Response of an audience deletion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/DynamicAttributes.md b/sdks/marketingsolutions_2023-07/docs/DynamicAttributes.md new file mode 100644 index 00000000..711f977b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/DynamicAttributes.md @@ -0,0 +1,19 @@ +# DynamicAttributes + +The attributes specific to Dynamic creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logos** | [**[ImageShape]**](ImageShape.md) | Logo images uploaded on demostatic.criteo.com when deploying and then static.criteo.net | [optional] +**creative_background_color** | **str** | Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**body_text_color** | **str** | Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**prices_color** | **str** | Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**primary_font** | **str** | Font of the primary font Valid supported font like \"Arial\" | [optional] +**calls_to_action** | **[str]** | A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. | [optional] +**product_image_display** | **str** | Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/DynamicWriteAttributes.md b/sdks/marketingsolutions_2023-07/docs/DynamicWriteAttributes.md new file mode 100644 index 00000000..a30dfbc1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/DynamicWriteAttributes.md @@ -0,0 +1,19 @@ +# DynamicWriteAttributes + +The attributes specific to create or update a Dynamic creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logo_base64_string** | **str** | Logo image as a base-64 encoded string | +**body_text_color** | **str** | Color of the creative's body text Valid hexadecimal RGB color (e.g. \"AB00FF\") | +**prices_color** | **str** | Color of the creative's prices Valid hexadecimal RGB color (e.g. \"AB00FF\") | +**calls_to_action** | **[str]** | A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. | +**product_image_display** | **str** | Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. | +**creative_background_color** | **str** | Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\") | [optional] +**primary_font** | **str** | Font of the primary font Valid supported font like \"Arial\" | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/EntityOfPortfolioMessage.md b/sdks/marketingsolutions_2023-07/docs/EntityOfPortfolioMessage.md new file mode 100644 index 00000000..fb11981e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/EntityOfPortfolioMessage.md @@ -0,0 +1,16 @@ +# EntityOfPortfolioMessage + +Generic Criteo API successful data model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | A string containing the entity type | [optional] +**id** | **str** | A opaque string containing the unique Id of the entity | [optional] +**attributes** | [**PortfolioMessage**](PortfolioMessage.md) | | [optional] +**meta** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | A meta object that contains application-specific metadata | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ErrorCodeResponse.md b/sdks/marketingsolutions_2023-07/docs/ErrorCodeResponse.md new file mode 100644 index 00000000..793fe829 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ErrorCodeResponse.md @@ -0,0 +1,14 @@ +# ErrorCodeResponse + +Definition of the error code + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/GatewayApi.md b/sdks/marketingsolutions_2023-07/docs/GatewayApi.md new file mode 100644 index 00000000..c246d202 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/GatewayApi.md @@ -0,0 +1,90 @@ +# criteo_api_marketingsolutions_v2023_07.GatewayApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2023-07/marketing-solutions/me | + + +# **get_current_application** +> ApplicationSummaryModelResponse get_current_application() + + + +Get information about the currently logged application + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_marketingsolutions_v2023_07 +from criteo_api_marketingsolutions_v2023_07.api import gateway_api +from criteo_api_marketingsolutions_v2023_07.model.application_summary_model_response import ApplicationSummaryModelResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_marketingsolutions_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_marketingsolutions_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = gateway_api.GatewayApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.get_current_application() + pprint(api_response) + except criteo_api_marketingsolutions_v2023_07.ApiException as e: + print("Exception when calling GatewayApi->get_current_application: %s\n" % e) +``` + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApplicationSummaryModelResponse**](ApplicationSummaryModelResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**404** | Not Found | - | + +[[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/sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md b/sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md new file mode 100644 index 00000000..9de4b05b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/GetAudiencesResponse.md @@ -0,0 +1,15 @@ +# GetAudiencesResponse + +Body of the GET audience operation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[Audience]**](Audience.md) | | +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/GetPortfolioResponse.md b/sdks/marketingsolutions_2023-07/docs/GetPortfolioResponse.md new file mode 100644 index 00000000..f843e2d6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/GetPortfolioResponse.md @@ -0,0 +1,15 @@ +# GetPortfolioResponse + +Portfolio fetch Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[EntityOfPortfolioMessage]**](EntityOfPortfolioMessage.md) | The response�s primary data | [optional] +**errors** | [**[CriteoApiError]**](CriteoApiError.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] +**warnings** | [**[CriteoApiWarning]**](CriteoApiWarning.md) | Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/HtmlTagAttributes.md b/sdks/marketingsolutions_2023-07/docs/HtmlTagAttributes.md new file mode 100644 index 00000000..fac0fce0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/HtmlTagAttributes.md @@ -0,0 +1,13 @@ +# HtmlTagAttributes + +The attributes specific to HtmlTag creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | [**[Tag]**](Tag.md) | An array containing the html tags | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/HtmlTagWriteAttributes.md b/sdks/marketingsolutions_2023-07/docs/HtmlTagWriteAttributes.md new file mode 100644 index 00000000..10662ff4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/HtmlTagWriteAttributes.md @@ -0,0 +1,13 @@ +# HtmlTagWriteAttributes + +The attributes specific to create or update a HtmlTag creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | [**[Tag]**](Tag.md) | An array containing the html tags | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ImageAttributes.md b/sdks/marketingsolutions_2023-07/docs/ImageAttributes.md new file mode 100644 index 00000000..a0f0c085 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ImageAttributes.md @@ -0,0 +1,14 @@ +# ImageAttributes + +The attributes specific to Image creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**urls** | **[str]** | Array of images uploaded on demostatic.criteo.com when deploying and then static.criteo.net | [optional] +**landing_page_url** | **str** | Web redirection of the landing page url | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ImageSet.md b/sdks/marketingsolutions_2023-07/docs/ImageSet.md new file mode 100644 index 00000000..63631b58 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ImageSet.md @@ -0,0 +1,14 @@ +# ImageSet + +Entity consists of multiple images in different ratios and a headline text. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**[ImageShape]**](ImageShape.md) | The images' urls with their shapes. | +**headline_text** | **str** | The headline of the image set | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ImageSetBase64.md b/sdks/marketingsolutions_2023-07/docs/ImageSetBase64.md new file mode 100644 index 00000000..25689f3a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ImageSetBase64.md @@ -0,0 +1,14 @@ +# ImageSetBase64 + +Entity consists of multiple images in different ratios as a base-64 encoded and a headline text. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**image_base64_strings** | **[str]** | Multiple images potentially in different shapes, each image is a base-64 encoded string. | +**headline_text** | **str** | The headline of the image set | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ImageShape.md b/sdks/marketingsolutions_2023-07/docs/ImageShape.md new file mode 100644 index 00000000..364b34e4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ImageShape.md @@ -0,0 +1,14 @@ +# ImageShape + +Entity containing the shape and url of the image + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shape** | **str** | Ratio of the image | +**url** | **str** | URL of the image uploaded on demostatic.criteo.com when deploying and then static.criteo.net | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ImageSlide.md b/sdks/marketingsolutions_2023-07/docs/ImageSlide.md new file mode 100644 index 00000000..d1fdaf98 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ImageSlide.md @@ -0,0 +1,15 @@ +# ImageSlide + +Slide containing the image URLs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**width** | **int** | Width of the Coupon slide | [optional] +**height** | **int** | Height of the Coupon slide | [optional] +**slide_urls** | **[str]** | Array of images of the same size uploaded on demostatic.criteo.com when deploying and then static.criteo.net | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ImageWriteAttributes.md b/sdks/marketingsolutions_2023-07/docs/ImageWriteAttributes.md new file mode 100644 index 00000000..9d73bfe1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ImageWriteAttributes.md @@ -0,0 +1,14 @@ +# ImageWriteAttributes + +The attributes specific to create or update an Image creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**base64_strings** | **[str]** | Array of images as a base-64 encoded string | +**landing_page_url** | **str** | Web redirection of the landing page url | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1.md b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1.md new file mode 100644 index 00000000..916d0e4a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1.md @@ -0,0 +1,14 @@ +# InMarketAudienceSegmentBrandEntityV1 + +In-market segment brand entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the in-market segment brand | [optional] +**size** | **int** | Size of the in-market segment brand | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md new file mode 100644 index 00000000..7ca05961 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# InMarketAudienceSegmentBrandEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[InMarketAudienceSegmentBrandEntityV1Resource]**](InMarketAudienceSegmentBrandEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1Resource.md new file mode 100644 index 00000000..51497d8d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentBrandEntityV1Resource.md @@ -0,0 +1,15 @@ +# InMarketAudienceSegmentBrandEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**InMarketAudienceSegmentBrandEntityV1**](InMarketAudienceSegmentBrandEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1.md b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1.md new file mode 100644 index 00000000..9eeb2146 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1.md @@ -0,0 +1,13 @@ +# InMarketAudienceSegmentInterestEntityV1 + +In-market segment interest entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parent_id** | **str** | Id of the parent in-market segment interest | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md new file mode 100644 index 00000000..322154ba --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1ListResponse.md @@ -0,0 +1,15 @@ +# InMarketAudienceSegmentInterestEntityV1ListResponse + +A top-level object that encapsulates a Criteo API response for several entities + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[InMarketAudienceSegmentInterestEntityV1Resource]**](InMarketAudienceSegmentInterestEntityV1Resource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1Resource.md b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1Resource.md new file mode 100644 index 00000000..548e70f0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketAudienceSegmentInterestEntityV1Resource.md @@ -0,0 +1,15 @@ +# InMarketAudienceSegmentInterestEntityV1Resource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**InMarketAudienceSegmentInterestEntityV1**](InMarketAudienceSegmentInterestEntityV1.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketCreateV1.md b/sdks/marketingsolutions_2023-07/docs/InMarketCreateV1.md new file mode 100644 index 00000000..a8c76946 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketCreateV1.md @@ -0,0 +1,18 @@ +# InMarketCreateV1 + +Settings to target users based on high shopping intents and demographics. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | **str** | Reach people of a specific country | +**buying_power** | **[str]** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | **str** | Reach people who’ve shown interest in products made for a specific gender | [optional] +**interest_ids** | **[str]** | Reach new people based on their interests | [optional] +**brand_ids** | **[str]** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str]** | Reach people who’ve shown interest in products within a specific price range | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketSizeEstimationV1.md b/sdks/marketingsolutions_2023-07/docs/InMarketSizeEstimationV1.md new file mode 100644 index 00000000..a7f02e91 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketSizeEstimationV1.md @@ -0,0 +1,18 @@ +# InMarketSizeEstimationV1 + +Settings to target users based on high shopping intents and demographics. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | **str** | | +**buying_power** | **[str]** | | [optional] +**gender** | **str** | | [optional] +**interest_ids** | **[str]** | | [optional] +**brand_ids** | **[str]** | | [optional] +**price_range** | **[str]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketUpdateV1.md b/sdks/marketingsolutions_2023-07/docs/InMarketUpdateV1.md new file mode 100644 index 00000000..36dbb1e4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketUpdateV1.md @@ -0,0 +1,18 @@ +# InMarketUpdateV1 + +Settings to target users based on high shopping intents and demographics. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | **str** | Reach people of a specific country | [optional] +**buying_power** | **[str]** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | [**NillableGenderV1**](NillableGenderV1.md) | | [optional] +**interest_ids** | **[str]** | Reach new people based on their interests | [optional] +**brand_ids** | **[str]** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str]** | Reach people who’ve shown interest in products within a specific price range | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/InMarketV1.md b/sdks/marketingsolutions_2023-07/docs/InMarketV1.md new file mode 100644 index 00000000..78b77bd1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/InMarketV1.md @@ -0,0 +1,18 @@ +# InMarketV1 + +Settings to target users based on high shopping intents and demographics. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country** | **str** | Reach people of a specific country | [optional] +**buying_power** | **[str]** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | **str** | Reach people who’ve shown interest in products made for a specific gender | [optional] +**interest_ids** | **[str]** | Reach new people based on their interests | [optional] +**brand_ids** | **[str]** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str]** | Reach people who’ve shown interest in products within a specific price range | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LocationCreateV1.md b/sdks/marketingsolutions_2023-07/docs/LocationCreateV1.md new file mode 100644 index 00000000..eb6d9ac9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LocationCreateV1.md @@ -0,0 +1,14 @@ +# LocationCreateV1 + +Settings to target users based on their location. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | +**radius_in_km** | **int** | The expected maximum distance in kilometers between a user and a point of interest | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LocationSizeEstimationV1.md b/sdks/marketingsolutions_2023-07/docs/LocationSizeEstimationV1.md new file mode 100644 index 00000000..c9fe8594 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LocationSizeEstimationV1.md @@ -0,0 +1,14 @@ +# LocationSizeEstimationV1 + +Settings to define your audience based on their location. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | | +**radius_in_km** | **int** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LocationUpdateV1.md b/sdks/marketingsolutions_2023-07/docs/LocationUpdateV1.md new file mode 100644 index 00000000..e87406dd --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LocationUpdateV1.md @@ -0,0 +1,15 @@ +# LocationUpdateV1 + +Settings to target users based on their location. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | [optional] +**radius_in_km** | **int** | Radius in kilometers | [optional] +**registry_type** | **str** | The kind of Location audience | [optional] if omitted the server will use the default value of "PointOfInterest" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LocationV1.md b/sdks/marketingsolutions_2023-07/docs/LocationV1.md new file mode 100644 index 00000000..bface8fe --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LocationV1.md @@ -0,0 +1,15 @@ +# LocationV1 + +Settings to target users based on their location. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | [optional] +**radius_in_km** | **int** | The expected maximum distance in kilometers between a user and a point of interest | [optional] +**registry_type** | **str** | The kind of Location audience | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LookalikeCreateV1.md b/sdks/marketingsolutions_2023-07/docs/LookalikeCreateV1.md new file mode 100644 index 00000000..4cf226a3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LookalikeCreateV1.md @@ -0,0 +1,14 @@ +# LookalikeCreateV1 + +Settings to target users close to a given seed segment. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seed_segment_id** | **str** | Segment from which the Lookalike segment will be generated | +**target_size** | **int** | Desired size of the generated Lookalike segment | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LookalikeUpdateV1.md b/sdks/marketingsolutions_2023-07/docs/LookalikeUpdateV1.md new file mode 100644 index 00000000..2c7320ee --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LookalikeUpdateV1.md @@ -0,0 +1,13 @@ +# LookalikeUpdateV1 + +Settings to target users that behave like a given seed segment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target_size** | **int** | Desired size of the generated Lookalike segment | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/LookalikeV1.md b/sdks/marketingsolutions_2023-07/docs/LookalikeV1.md new file mode 100644 index 00000000..c5ff812b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/LookalikeV1.md @@ -0,0 +1,14 @@ +# LookalikeV1 + +Settings to target users that behave like a given seed segment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seed_segment_id** | **str** | Segment from which the Lookalike segment will be generated | [optional] +**target_size** | **int** | Desired size of the generated Lookalike segment | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ModifyAudienceResponse.md b/sdks/marketingsolutions_2023-07/docs/ModifyAudienceResponse.md new file mode 100644 index 00000000..2e2cbd2c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ModifyAudienceResponse.md @@ -0,0 +1,15 @@ +# ModifyAudienceResponse + +Parameters to modify an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ContactlistOperation**](ContactlistOperation.md) | | +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NewAudience.md b/sdks/marketingsolutions_2023-07/docs/NewAudience.md new file mode 100644 index 00000000..a0e97880 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NewAudience.md @@ -0,0 +1,14 @@ +# NewAudience + +Body for the creation of a new audience (name, advertiserId, etc) + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**attributes** | [**NewAudienceAttributes**](NewAudienceAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md b/sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md new file mode 100644 index 00000000..71bde361 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NewAudienceAttributes.md @@ -0,0 +1,14 @@ +# NewAudienceAttributes + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the new audience | +**advertiser_id** | **str** | The advertiser id to create the audience for | [optional] +**description** | **str** | The description of the audience | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md b/sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md new file mode 100644 index 00000000..865562e7 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NewAudienceRequest.md @@ -0,0 +1,13 @@ +# NewAudienceRequest + +Body of creation of a new audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**NewAudience**](NewAudience.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md b/sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md new file mode 100644 index 00000000..842c3125 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NewAudienceResponse.md @@ -0,0 +1,15 @@ +# NewAudienceResponse + +Response of a newly created audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md new file mode 100644 index 00000000..a0c8681e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRule.md @@ -0,0 +1,13 @@ +# NillableAdSetTargetingRule + +structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | [**NillableAdSetTargetingRuleValue**](NillableAdSetTargetingRuleValue.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md new file mode 100644 index 00000000..0020506d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NillableAdSetTargetingRuleValue.md @@ -0,0 +1,13 @@ +# NillableAdSetTargetingRuleValue + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operand** | **str** | Operand which states how the values should be applied | [optional] +**values** | **[str]** | List of values to apply | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md b/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md new file mode 100644 index 00000000..a1dbd46f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NillableDateTime.md @@ -0,0 +1,13 @@ +# NillableDateTime + +structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **datetime, none_type** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md b/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md new file mode 100644 index 00000000..a0f8dba4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NillableDecimal.md @@ -0,0 +1,13 @@ +# NillableDecimal + +structure that encapsulates an object that have valid business null values. If the structure is provided (i.e. not null), then the value in it, even null, is provided. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **float, none_type** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NillableGenderV1.md b/sdks/marketingsolutions_2023-07/docs/NillableGenderV1.md new file mode 100644 index 00000000..a65d225f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NillableGenderV1.md @@ -0,0 +1,13 @@ +# NillableGenderV1 + +Placeholder object for value for which \"null\" is a valid business value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | The value. If missing or null the value is set to \"null\" | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/NillableInt32.md b/sdks/marketingsolutions_2023-07/docs/NillableInt32.md new file mode 100644 index 00000000..0c58a7be --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/NillableInt32.md @@ -0,0 +1,13 @@ +# NillableInt32 + +Placeholder object for value for which \"null\" is a valid business value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **int** | The value. If missing or null the value is set to \"null\" | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/RetailerBrand.md b/sdks/marketingsolutions_2023-07/docs/NillableString.md similarity index 66% rename from sdks/retailmedia_preview/docs/RetailerBrand.md rename to sdks/marketingsolutions_2023-07/docs/NillableString.md index 0a691696..77696d90 100644 --- a/sdks/retailmedia_preview/docs/RetailerBrand.md +++ b/sdks/marketingsolutions_2023-07/docs/NillableString.md @@ -1,11 +1,11 @@ -# RetailerBrand +# NillableString -Retailer brand of the product. +Placeholder object for string value for which \"null\" is a valid business value ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The name of the retailer brand. | [optional] +**value** | **str** | The string's value. If missing or null the string's value is set to \"null\" | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md new file mode 100644 index 00000000..df0e4297 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSet.md @@ -0,0 +1,17 @@ +# PatchAdSet + +ad set patch model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the ad set | [optional] +**scheduling** | [**PatchAdSetScheduling**](PatchAdSetScheduling.md) | | [optional] +**bidding** | [**PatchAdSetBidding**](PatchAdSetBidding.md) | | [optional] +**targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] +**budget** | [**PatchAdSetBudget**](PatchAdSetBudget.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md new file mode 100644 index 00000000..9c9deec3 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetBidding.md @@ -0,0 +1,13 @@ +# PatchAdSetBidding + +ad set bidding patch model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bid_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md new file mode 100644 index 00000000..bcad8a23 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetBudget.md @@ -0,0 +1,17 @@ +# PatchAdSetBudget + +ad set budget patch model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**budget_strategy** | **str** | Whether your budget is capped or not | [optional] +**budget_renewal** | **str** | The pace of the budget renewal | [optional] +**budget_delivery_smoothing** | **str** | The pace at which the budget can be spent | [optional] +**budget_delivery_week** | **str** | The delivery week for the budget | [optional] +**budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBid.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBid.md new file mode 100644 index 00000000..87243503 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBid.md @@ -0,0 +1,13 @@ +# PatchAdSetCategoryBid + +Category Bid to update for a given combination of Ad Set and Category. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bid_amount** | **float** | The Bid amount applied to the given Category associated to an Ad Set. At most 4 decimals are supported. Additional decimals are rounded. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidListRequest.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidListRequest.md new file mode 100644 index 00000000..be34cd22 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidListRequest.md @@ -0,0 +1,13 @@ +# PatchAdSetCategoryBidListRequest + +Data model for a list of input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PatchAdSetCategoryBidResource]**](PatchAdSetCategoryBidResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResource.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResource.md new file mode 100644 index 00000000..1da2b14f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResource.md @@ -0,0 +1,15 @@ +# PatchAdSetCategoryBidResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**PatchAdSetCategoryBid**](PatchAdSetCategoryBid.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md new file mode 100644 index 00000000..744c7205 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultListResponse.md @@ -0,0 +1,15 @@ +# PatchAdSetCategoryBidResultListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PatchAdSetCategoryBidResultResource]**](PatchAdSetCategoryBidResultResource.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultResource.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultResource.md new file mode 100644 index 00000000..c6914947 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetCategoryBidResultResource.md @@ -0,0 +1,14 @@ +# PatchAdSetCategoryBidResultResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplier.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplier.md new file mode 100644 index 00000000..bccf1143 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplier.md @@ -0,0 +1,13 @@ +# PatchAdSetDisplayMultiplier + +Display Multiplier to update for a given combination of Ad Set and Category. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_multiplier** | **float** | Any positive decimal value. To remove the impact of the Display Multiplier set it to 1. At most 4 decimals are supported. Additional decimals are rounded. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierListRequest.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierListRequest.md new file mode 100644 index 00000000..5f38e3b1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierListRequest.md @@ -0,0 +1,13 @@ +# PatchAdSetDisplayMultiplierListRequest + +Data model for a list of input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PatchAdSetDisplayMultiplierResource]**](PatchAdSetDisplayMultiplierResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResource.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResource.md new file mode 100644 index 00000000..9b6f4f53 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResource.md @@ -0,0 +1,15 @@ +# PatchAdSetDisplayMultiplierResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**PatchAdSetDisplayMultiplier**](PatchAdSetDisplayMultiplier.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md new file mode 100644 index 00000000..b13638fe --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultListResponse.md @@ -0,0 +1,15 @@ +# PatchAdSetDisplayMultiplierResultListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PatchAdSetDisplayMultiplierResultResource]**](PatchAdSetDisplayMultiplierResultResource.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultResource.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultResource.md new file mode 100644 index 00000000..fd31d6a5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetDisplayMultiplierResultResource.md @@ -0,0 +1,14 @@ +# PatchAdSetDisplayMultiplierResultResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md b/sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md new file mode 100644 index 00000000..d381a19d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchAdSetScheduling.md @@ -0,0 +1,14 @@ +# PatchAdSetScheduling + +ad set schedule patch model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] +**end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchCampaign.md b/sdks/marketingsolutions_2023-07/docs/PatchCampaign.md new file mode 100644 index 00000000..1341579d --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchCampaign.md @@ -0,0 +1,13 @@ +# PatchCampaign + +campaign patch model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spend_limit** | [**PatchCampaignSpendLimit**](PatchCampaignSpendLimit.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchCampaignListRequest.md b/sdks/marketingsolutions_2023-07/docs/PatchCampaignListRequest.md new file mode 100644 index 00000000..0315b0d9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchCampaignListRequest.md @@ -0,0 +1,13 @@ +# PatchCampaignListRequest + +List of input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PatchCampaignWriteResource]**](PatchCampaignWriteResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md b/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md new file mode 100644 index 00000000..a0af9327 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchCampaignSpendLimit.md @@ -0,0 +1,15 @@ +# PatchCampaignSpendLimit + +campaign spend limit model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**spend_limit_type** | **str** | Whether your spend limit is capped or not | [optional] +**spend_limit_renewal** | **str** | The pace of the spend limit renewal | [optional] +**spend_limit_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchCampaignWriteResource.md b/sdks/marketingsolutions_2023-07/docs/PatchCampaignWriteResource.md new file mode 100644 index 00000000..b1e4cc1a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchCampaignWriteResource.md @@ -0,0 +1,15 @@ +# PatchCampaignWriteResource + +write model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**PatchCampaign**](PatchCampaign.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md b/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md new file mode 100644 index 00000000..cab4ecfb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignListResponse.md @@ -0,0 +1,15 @@ +# PatchResultCampaignListResponse + +List of output resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PatchResultCampaignReadResource]**](PatchResultCampaignReadResource.md) | | [optional] [readonly] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignReadResource.md b/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignReadResource.md new file mode 100644 index 00000000..6309bd4b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PatchResultCampaignReadResource.md @@ -0,0 +1,14 @@ +# PatchResultCampaignReadResource + +read model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] [readonly] +**type** | **str** | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryDataMessage.md new file mode 100644 index 00000000..2986a86e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryDataMessage.md @@ -0,0 +1,13 @@ +# PlacementsReportQueryDataMessage + +Contains queries for Placements report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[PlacementsReportQueryEntityMessage]**](PlacementsReportQueryEntityMessage.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryEntityMessage.md new file mode 100644 index 00000000..f22c0f80 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryEntityMessage.md @@ -0,0 +1,14 @@ +# PlacementsReportQueryEntityMessage + +Contains a query for Transaction report and its type + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**attributes** | [**PlacementsReportQueryMessage**](PlacementsReportQueryMessage.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md new file mode 100644 index 00000000..f172877f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PlacementsReportQueryMessage.md @@ -0,0 +1,25 @@ +# PlacementsReportQueryMessage + +This is the message defining the query for Placements report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_ids** | **str** | The comma-separated list of advertiser ids. | +**dimensions** | **[str]** | The dimensions for the report. | +**metrics** | **[str]** | The list of metrics to report. | +**currency** | **str** | The currency used for the report. ISO 4217 code (three-letter capitals). | +**format** | **str** | The file format of the generated report: csv, xml, excel or json. | +**start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**campaign_ids** | **str** | The comma-separated list of campaign ids. | [optional] +**adset_ids** | **str** | The comma-separated list of adSet ids. | [optional] +**environment** | **str** | Type of environment: Web, Android or iOS. | [optional] +**placement** | **str** | Filter the value of the placement | [optional] +**disclosed** | **bool** | Returns disclosed or undisclosed placements. | [optional] if omitted the server will use the default value of True +**timezone** | **str** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PointOfInterestV1.md b/sdks/marketingsolutions_2023-07/docs/PointOfInterestV1.md new file mode 100644 index 00000000..2df9083e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PointOfInterestV1.md @@ -0,0 +1,15 @@ +# PointOfInterestV1 + +Named coordinate defined by its latitude and longitude. Latitude and Longitude are rounded at 5 decimals. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the point of interest | [optional] +**latitude** | **float** | ISO-6709 latitude (rounded at 5 decimals) | [optional] +**longitude** | **float** | ISO-6709 longitude (rounded at 5 decimals) | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/PortfolioMessage.md b/sdks/marketingsolutions_2023-07/docs/PortfolioMessage.md new file mode 100644 index 00000000..f439630c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/PortfolioMessage.md @@ -0,0 +1,13 @@ +# PortfolioMessage + +Class with elementary info about advertiser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_name** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md b/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md new file mode 100644 index 00000000..b820a5a2 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ProblemDetails.md @@ -0,0 +1,21 @@ +# ProblemDetails + +Data model for common error or warning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_id** | **str** | The request correlation ID this problem comes from. | [optional] +**trace_identifier** | **str** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] +**type** | **str** | | [optional] +**code** | **str** | | [optional] +**instance** | **str** | | [optional] +**title** | **str** | | [optional] +**detail** | **str** | | [optional] +**source** | **{str: (str,)}** | | [optional] +**stack_trace** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ProblemsDetails.md b/sdks/marketingsolutions_2023-07/docs/ProblemsDetails.md new file mode 100644 index 00000000..b60baba4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ProblemsDetails.md @@ -0,0 +1,13 @@ +# ProblemsDetails + +Common problems object + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ProspectingCreateV1.md b/sdks/marketingsolutions_2023-07/docs/ProspectingCreateV1.md new file mode 100644 index 00000000..91a027b5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ProspectingCreateV1.md @@ -0,0 +1,15 @@ +# ProspectingCreateV1 + +Settings to target prospecting users to website visitors. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users_type** | **str** | Type of users to target | +**days_since_last_visit_min** | **int** | When non buyers are included, include users who visited your website before this number of days | [optional] +**days_since_last_visit_max** | **int** | When non buyers are included, include users who visited your website after this number of days | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ProspectingUpdateV1.md b/sdks/marketingsolutions_2023-07/docs/ProspectingUpdateV1.md new file mode 100644 index 00000000..f41bec91 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ProspectingUpdateV1.md @@ -0,0 +1,15 @@ +# ProspectingUpdateV1 + +Settings to target prospecting users to website visitors. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**days_since_last_visit_min** | [**NillableInt32**](NillableInt32.md) | | [optional] +**days_since_last_visit_max** | [**NillableInt32**](NillableInt32.md) | | [optional] +**users_type** | **str** | Type of users to target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ProspectingV1.md b/sdks/marketingsolutions_2023-07/docs/ProspectingV1.md new file mode 100644 index 00000000..13347234 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ProspectingV1.md @@ -0,0 +1,15 @@ +# ProspectingV1 + +Settings to target prospecting users to website visitors. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**days_since_last_visit_min** | **int** | When non buyers are included, include users who visited your website before this number of days | [optional] +**days_since_last_visit_max** | **int** | When non buyers are included, include users who visited your website after this number of days | [optional] +**users_type** | **str** | Type of users to target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md new file mode 100644 index 00000000..6c0cc3a0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSet.md @@ -0,0 +1,22 @@ +# ReadAdSet + +ad set read model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the ad set | [optional] +**advertiser_id** | **str** | Advertiser id of the campaign this ad set belongs to | [optional] +**dataset_id** | **str** | Dataset id of this ad set | [optional] +**campaign_id** | **str** | Campaign id this ad set belongs to | [optional] +**destination_environment** | **str** | The environment that an ad click will lead a user to | [optional] +**schedule** | [**ReadAdSetSchedule**](ReadAdSetSchedule.md) | | [optional] +**bidding** | [**ReadAdSetBidding**](ReadAdSetBidding.md) | | [optional] +**targeting** | [**AdSetTargeting**](AdSetTargeting.md) | | [optional] +**budget** | [**ReadAdSetBudget**](ReadAdSetBudget.md) | | [optional] +**media_type** | **str** | Media type for the ad set | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md new file mode 100644 index 00000000..81a564a0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBidding.md @@ -0,0 +1,15 @@ +# ReadAdSetBidding + +ad set bidding read model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bid_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**bid_strategy** | **str** | The intended optimization for the Ad Set | [optional] +**cost_controller** | **str** | How spend is controlled | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md new file mode 100644 index 00000000..71d17619 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSetBudget.md @@ -0,0 +1,17 @@ +# ReadAdSetBudget + +ad set budget read model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**budget_strategy** | **str** | Whether your budget is capped or not | [optional] +**budget_renewal** | **str** | The pace of the budget renewal | [optional] +**budget_delivery_smoothing** | **str** | The pace at which the budget can be spent | [optional] +**budget_delivery_week** | **str** | The delivery week for the budget | [optional] +**budget_amount** | [**NillableDecimal**](NillableDecimal.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md b/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md new file mode 100644 index 00000000..3df22824 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReadAdSetSchedule.md @@ -0,0 +1,16 @@ +# ReadAdSetSchedule + +ad set schedule read model + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] +**end_date** | [**NillableDateTime**](NillableDateTime.md) | | [optional] +**activation_status** | **str** | Activation status of the ad set, i.e. whether the consumer wants it to deliver | [optional] +**delivery_status** | **str** | Delivery status of the delivery of the ad set, i.e. whether the ad set is delivering | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReadModelAdSetId.md b/sdks/marketingsolutions_2023-07/docs/ReadModelAdSetId.md new file mode 100644 index 00000000..dc17c248 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReadModelAdSetId.md @@ -0,0 +1,14 @@ +# ReadModelAdSetId + +read model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] [readonly] +**type** | **str** | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md new file mode 100644 index 00000000..3b5e4b5b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReadModelReadAdSet.md @@ -0,0 +1,15 @@ +# ReadModelReadAdSet + +read model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] [readonly] +**type** | **str** | | [optional] [readonly] +**attributes** | [**ReadAdSet**](ReadAdSet.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md b/sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md new file mode 100644 index 00000000..87863984 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReplaceAudience.md @@ -0,0 +1,14 @@ +# ReplaceAudience + +Parameters required to replace an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**attributes** | [**AudienceNameDescription**](AudienceNameDescription.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md b/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md new file mode 100644 index 00000000..36739af4 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceRequest.md @@ -0,0 +1,13 @@ +# ReplaceAudienceRequest + +Request to replace an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ReplaceAudience**](ReplaceAudience.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md b/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md new file mode 100644 index 00000000..db420997 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ReplaceAudienceResponse.md @@ -0,0 +1,15 @@ +# ReplaceAudienceResponse + +Response of an audience replacement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**BasicAudienceDefinition**](BasicAudienceDefinition.md) | | +**errors** | [**[AudienceError]**](AudienceError.md) | | +**warnings** | [**[AudienceWarning]**](AudienceWarning.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md b/sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md new file mode 100644 index 00000000..f3f8cff6 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/RequestAdSetSearch.md @@ -0,0 +1,13 @@ +# RequestAdSetSearch + +request payload of the search endpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | [**AdSetSearchFilter**](AdSetSearchFilter.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/RequestsAdSetId.md b/sdks/marketingsolutions_2023-07/docs/RequestsAdSetId.md new file mode 100644 index 00000000..e8c2f2f5 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/RequestsAdSetId.md @@ -0,0 +1,13 @@ +# RequestsAdSetId + +List of input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[WriteModelAdSetId]**](WriteModelAdSetId.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md b/sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md new file mode 100644 index 00000000..ba4c665b --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/RequestsPatchAdSet.md @@ -0,0 +1,13 @@ +# RequestsPatchAdSet + +List of input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[WriteModelPatchAdSet]**](WriteModelPatchAdSet.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md b/sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md new file mode 100644 index 00000000..9a0e424c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ResponseAdSetId.md @@ -0,0 +1,15 @@ +# ResponseAdSetId + +output resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ReadModelAdSetId**](ReadModelAdSetId.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md new file mode 100644 index 00000000..e3b0f1c0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ResponseReadAdSet.md @@ -0,0 +1,15 @@ +# ResponseReadAdSet + +output resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ReadModelReadAdSet**](ReadModelReadAdSet.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md b/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md new file mode 100644 index 00000000..140b7e4e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ResponsesAdSetId.md @@ -0,0 +1,15 @@ +# ResponsesAdSetId + +List of output resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ReadModelAdSetId]**](ReadModelAdSetId.md) | | [optional] [readonly] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md b/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md new file mode 100644 index 00000000..1f268ce0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/ResponsesReadAdSet.md @@ -0,0 +1,15 @@ +# ResponsesReadAdSet + +List of output resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ReadModelReadAdSet]**](ReadModelReadAdSet.md) | | [optional] [readonly] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/RetargetingCreateV1.md b/sdks/marketingsolutions_2023-07/docs/RetargetingCreateV1.md new file mode 100644 index 00000000..ea88876c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/RetargetingCreateV1.md @@ -0,0 +1,15 @@ +# RetargetingCreateV1 + +Settings to target users based on its type and days since last visit. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**visitors_type** | **str** | Types of visitors. | +**days_since_last_visit_min** | **int** | Minimum number of days since last visit to partner. | +**days_since_last_visit_max** | **int** | Maximum number of days since last visit to partner. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/RetargetingUpdateV1.md b/sdks/marketingsolutions_2023-07/docs/RetargetingUpdateV1.md new file mode 100644 index 00000000..21dfa42e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/RetargetingUpdateV1.md @@ -0,0 +1,15 @@ +# RetargetingUpdateV1 + +Settings to target users based on its type and days since last visit. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**visitors_type** | **str** | Types of visitors. | [optional] +**days_since_last_visit_min** | **int** | Minimum number of days since last visit to partner. | [optional] +**days_since_last_visit_max** | **int** | Maximum number of days since last visit to partner. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/RetargetingV1.md b/sdks/marketingsolutions_2023-07/docs/RetargetingV1.md new file mode 100644 index 00000000..3f27aa94 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/RetargetingV1.md @@ -0,0 +1,15 @@ +# RetargetingV1 + +Settings to target users based on its type and days since last visit. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**visitors_type** | **str** | Types of visitors. | [optional] +**days_since_last_visit_min** | **int** | Minimum number of days since last visit to partner. | [optional] +**days_since_last_visit_max** | **int** | Maximum number of days since last visit to partner. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/Size.md b/sdks/marketingsolutions_2023-07/docs/Size.md new file mode 100644 index 00000000..0ec7bb7c --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Size.md @@ -0,0 +1,14 @@ +# Size + +Size entity containing width and height of the creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**width** | **int** | | [optional] +**height** | **int** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md new file mode 100644 index 00000000..6c847b67 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/StatisticsReportQueryMessage.md @@ -0,0 +1,23 @@ +# StatisticsReportQueryMessage + +This is the message defining the query for Adset report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dimensions** | **[str]** | The dimensions for the report. | +**metrics** | **[str]** | The list of metrics to report. | +**currency** | **str** | The currency used for the report. ISO 4217 code (three-letter capitals). | +**format** | **str** | The file format of the generated report: csv, xml, excel or json. | +**start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**advertiser_ids** | **str** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] +**ad_set_ids** | **[str]** | list of adSets ids. If empty, all the adSets will be fetched | [optional] +**ad_set_names** | **[str]** | list of adSets names. If empty, all the adSets will be fetched | [optional] +**ad_set_status** | **[str]** | list of adSets status. If empty, all the adSets will be fetched | [optional] +**timezone** | **str** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/Tag.md b/sdks/marketingsolutions_2023-07/docs/Tag.md new file mode 100644 index 00000000..1450b835 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/Tag.md @@ -0,0 +1,14 @@ +# Tag + +Entity specifying the html of the tag and its size + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**html_tag** | **str** | Html tag | [optional] +**size** | [**Size**](Size.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryDataMessage.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryDataMessage.md new file mode 100644 index 00000000..dbecaf5a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryDataMessage.md @@ -0,0 +1,13 @@ +# TransactionsReportQueryDataMessage + +Contains queries for Transactions report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransactionsReportQueryEntityMessage]**](TransactionsReportQueryEntityMessage.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md new file mode 100644 index 00000000..6b708dae --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryEntityMessage.md @@ -0,0 +1,14 @@ +# TransactionsReportQueryEntityMessage + +Contains a query for Transaction report and its type + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**attributes** | [**TransactionsReportQueryMessage**](TransactionsReportQueryMessage.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md new file mode 100644 index 00000000..86e44a69 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransactionsReportQueryMessage.md @@ -0,0 +1,19 @@ +# TransactionsReportQueryMessage + +This is the message defining the query for Transaction report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | **str** | The currency used for the report. ISO 4217 code (three-letter capitals). | +**format** | **str** | The file format of the generated report: csv, xml, excel or json. | +**start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**advertiser_ids** | **str** | The comma-separated list of advertiser ids. If empty, all the advertisers in the portfolio will be used | [optional] +**event_type** | **str** | Apply a filter on Event type . | [optional] +**timezone** | **str** | The timezone used for the report. Timezone Database format (Tz). | [optional] if omitted the server will use the default value of "UTC" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md b/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md new file mode 100644 index 00000000..0d598f9a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyQueryMessage.md @@ -0,0 +1,15 @@ +# TransparencyQueryMessage + +This is the message defining the query for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**end_date** | **datetime** | End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored. | +**should_display_product_ids** | **bool** | Specify if the product ids are displayed in the report. | [optional] if omitted the server will use the default value of False +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransparencyReportAttributes.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportAttributes.md new file mode 100644 index 00000000..fd2960af --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportAttributes.md @@ -0,0 +1,15 @@ +# TransparencyReportAttributes + +This is the message defining the attribute response for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertiser_id** | **str** | | +**token_valid_until** | **datetime** | | +**files** | [**[TransparencyReportFile]**](TransparencyReportFile.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransparencyReportDataMessage.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportDataMessage.md new file mode 100644 index 00000000..4747e84f --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportDataMessage.md @@ -0,0 +1,13 @@ +# TransparencyReportDataMessage + +This is the message defining the response for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[TransparencyReportEntityMessage]**](TransparencyReportEntityMessage.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransparencyReportEntityMessage.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportEntityMessage.md new file mode 100644 index 00000000..b56ebe88 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportEntityMessage.md @@ -0,0 +1,14 @@ +# TransparencyReportEntityMessage + +This is the message defining the entity response for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [readonly] +**attributes** | [**TransparencyReportAttributes**](TransparencyReportAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md b/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md new file mode 100644 index 00000000..d95247b9 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/TransparencyReportFile.md @@ -0,0 +1,14 @@ +# TransparencyReportFile + +This is the message defining the file response for Transparency report + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_name** | **str** | | +**url** | **str** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/UpdateCoupon.md b/sdks/marketingsolutions_2023-07/docs/UpdateCoupon.md new file mode 100644 index 00000000..625c7a75 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/UpdateCoupon.md @@ -0,0 +1,14 @@ +# UpdateCoupon + +Entity to edit a Coupon + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **str** | The date when the Coupon will be launched String must be in ISO8601 format | +**end_date** | **str** | The date when when we will stop to show this Coupon. If the end date is not specified (i.e. null) then the Coupon will go on forever String must be in ISO8601 format | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/UpdateCouponRequest.md b/sdks/marketingsolutions_2023-07/docs/UpdateCouponRequest.md new file mode 100644 index 00000000..cba2bc6e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/UpdateCouponRequest.md @@ -0,0 +1,13 @@ +# UpdateCouponRequest + +Data model for input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**UpdateCouponResource**](UpdateCouponResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/UpdateCouponResource.md b/sdks/marketingsolutions_2023-07/docs/UpdateCouponResource.md new file mode 100644 index 00000000..b87be7d8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/UpdateCouponResource.md @@ -0,0 +1,15 @@ +# UpdateCouponResource + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**UpdateCoupon**](UpdateCoupon.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/VideoDetail.md b/sdks/marketingsolutions_2023-07/docs/VideoDetail.md new file mode 100644 index 00000000..3ac2d4b0 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/VideoDetail.md @@ -0,0 +1,15 @@ +# VideoDetail + +Entity consists of the url of the video, its duration and its shape. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**duration** | **float** | The duration of the video in milliseconds, the video could be trimmed if it is longer than 30000 ms. | +**shape** | **str** | Shape of the video | +**url** | **str** | URL of the video uploaded on demostatic.criteo.com when deploying and then static.criteo.net | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/WriteModelAdSetId.md b/sdks/marketingsolutions_2023-07/docs/WriteModelAdSetId.md new file mode 100644 index 00000000..9af0e18e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/WriteModelAdSetId.md @@ -0,0 +1,14 @@ +# WriteModelAdSetId + +write model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md b/sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md new file mode 100644 index 00000000..26b070d1 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/docs/WriteModelPatchAdSet.md @@ -0,0 +1,15 @@ +# WriteModelPatchAdSet + +write model data for resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**PatchAdSet**](PatchAdSet.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_2023-07/requirements.txt b/sdks/marketingsolutions_2023-07/requirements.txt new file mode 100644 index 00000000..96947f60 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/requirements.txt @@ -0,0 +1,3 @@ +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.25.3 diff --git a/sdks/marketingsolutions_2023-07/setup.cfg b/sdks/marketingsolutions_2023-07/setup.cfg new file mode 100644 index 00000000..11433ee8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length=99 diff --git a/sdks/marketingsolutions_2023-07/setup.py b/sdks/marketingsolutions_2023-07/setup.py new file mode 100644 index 00000000..31b3e0ba --- /dev/null +++ b/sdks/marketingsolutions_2023-07/setup.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "criteo-api-marketingsolutions-sdk" +VERSION = "2023.07.0.230726" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.25.3", "python-dateutil"] + +AUTHOR='Criteo' +README_CONTENT_TYPE='text/markdown' +PACKAGE_LONG_DESCRIPTION = """# Criteo API SDK for Python + +IMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real data. + +## Installation & Usage +### pip install + + +```sh +pip install criteo-api-marketingsolutions-sdk==2023.07.0.230726 +``` +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2023.07.0.230726`) + +Then import the package: +```python +import criteo_api_marketingsolutions_v2023_07 +``` + +Full documentation on [Github](https://github.com/criteo/criteo-api-python-sdk). + +## Disclaimer + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +""" + +setup( + name=NAME, + version=VERSION, + description="Criteo API SDK", + author_email="", + author=AUTHOR, + url="https://github.com/criteo/criteo-api-python-sdk", + keywords=[AUTHOR, "OpenAPI-Generator", "Criteo API SDK"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description_content_type=README_CONTENT_TYPE, + long_description=PACKAGE_LONG_DESCRIPTION, + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries", + ], + python_requires=">=3.6", +) diff --git a/sdks/marketingsolutions_2023-07/test-requirements.txt b/sdks/marketingsolutions_2023-07/test-requirements.txt new file mode 100644 index 00000000..bb4f22bb --- /dev/null +++ b/sdks/marketingsolutions_2023-07/test-requirements.txt @@ -0,0 +1 @@ +pytest-cov>=2.8.1 diff --git a/sdks/marketingsolutions_2023-07/test/example_application_with_auth_code.py b/sdks/marketingsolutions_2023-07/test/example_application_with_auth_code.py new file mode 100644 index 00000000..d54fb3d8 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/test/example_application_with_auth_code.py @@ -0,0 +1,27 @@ +from criteo_api_marketingsolutions_v2023_07.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_07 import ApiClientBuilder + +class ExampleApplication: + + def call_then_application_endpoint(self, clientId, clientSecret, authorization_code, redirect_uri): + # Create a client using your choosen OAuth flow, Authorization Code in this case. The client will handle the token generation/renewal for you + client = ApiClientBuilder.WithAuthorizationCode(clientId, clientSecret, authorization_code, redirect_uri) + + # The Gateway API regroups common technical endpoints that exists for all versions + # You can find the other endpoints in the other *Api + # You can reuse the same client with several Apis, but be careful, as they will then use the same token and credentials + api = GatewayApi(client) + + # Perform the call to the application introspection endpoint + response = api.get_current_application() + + # Most of Criteo's API response follow the same structure: + # The response consists of a Data, Errors and Warnings fields + # The Data fields contains an Id (if applicable), a Type, and an Attributes field that contains the business object + myApplication = response.data.attributes + print(f'Hello, I\'m using Criteo API and I\'m connected as {myApplication.name}') + + # You will need to save the refresh_token to use it in the refresh_token flow + # You can fetch the refresh token like this: + refreshToken = client.get_refresh_token() + print('The refresh token to be saved is ', refreshToken) \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/test/example_application_with_client_credentials.py b/sdks/marketingsolutions_2023-07/test/example_application_with_client_credentials.py new file mode 100644 index 00000000..c438d47e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/test/example_application_with_client_credentials.py @@ -0,0 +1,22 @@ +from criteo_api_marketingsolutions_v2023_07.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_07 import ApiClientBuilder + +class ExampleApplication: + + def call_then_application_endpoint(self, clientId, clientSecret): + # Create a client using your choosen OAuth flow, Client Credentials in this case. The client will handle the token generation/renewal for you + client = ApiClientBuilder.WithClientCredentials(clientId=clientId, clientSecret=clientSecret) + + # The Gateway API regroups common technical endpoints that exists for all versions + # You can find the other endpoints in the other *Api + # You can reuse the same client with several Apis, but be careful, as they will then use the same token and credentials + api = GatewayApi(client) + + # Perform the call to the application introspection endpoint + response = api.get_current_application() + + # Most of Criteo's API response follow the same structure: + # The response consists of a Data, Errors and Warnings fields + # The Data fields contains an Id (if applicable), a Type, and an Attributes field that contains the business object + myApplication = response.data.attributes + print(f'Hello, I\'m using Criteo API and I\'m connected as {myApplication.name}') \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/test/example_application_with_refresh_token.py b/sdks/marketingsolutions_2023-07/test/example_application_with_refresh_token.py new file mode 100644 index 00000000..84c8565e --- /dev/null +++ b/sdks/marketingsolutions_2023-07/test/example_application_with_refresh_token.py @@ -0,0 +1,27 @@ +from criteo_api_marketingsolutions_v2023_07.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_07 import ApiClientBuilder + +class ExampleApplication: + + def call_then_application_endpoint(self, clientId, clientSecret, refresh_token): + # Create a client using your choosen OAuth flow, Refresh Token in this case. The client will handle the token generation/renewal for you + client = ApiClientBuilder.WithRefreshToken(clientId, clientSecret, refresh_token) + + # The Gateway API regroups common technical endpoints that exists for all versions + # You can find the other endpoints in the other *Api + # You can reuse the same client with several Apis, but be careful, as they will then use the same token and credentials + api = GatewayApi(client) + + # Perform the call to the application introspection endpoint + response = api.get_current_application() + + # Most of Criteo's API response follow the same structure: + # The response consists of a Data, Errors and Warnings fields + # The Data fields contains an Id (if applicable), a Type, and an Attributes field that contains the business object + myApplication = response.data.attributes + print(f'Hello, I\'m using Criteo API and I\'m connected as {myApplication.name}') + + # You will need to save the new refresh_token to use it again in the future + # You can fetch the refresh token like this: + refreshToken = client.get_refresh_token() + print('The refresh token to be saved is ', refreshToken) \ No newline at end of file diff --git a/sdks/marketingsolutions_2023-07/test/test_gateway_api.py b/sdks/marketingsolutions_2023-07/test/test_gateway_api.py new file mode 100644 index 00000000..e2b2b79a --- /dev/null +++ b/sdks/marketingsolutions_2023-07/test/test_gateway_api.py @@ -0,0 +1,62 @@ +import pytest +import os + +from criteo_api_marketingsolutions_v2023_07.api.gateway_api import GatewayApi +from criteo_api_marketingsolutions_v2023_07.api_client_builder import ApiClientBuilder +from criteo_api_marketingsolutions_v2023_07.rest import ApiException +from example_application_with_client_credentials import ExampleApplication + +class TestGatewayApi: + @pytest.fixture(autouse=True) + def before_each(self): + self.client_id = os.environ.get("TEST_CLIENT_ID") + self.client_secret = os.environ.get("TEST_CLIENT_SECRET") + self.application_id = int(os.environ.get("TEST_APPLICATION_ID")) + + self.client = ApiClientBuilder.WithClientCredentials(clientId=self.client_id, clientSecret=self.client_secret) + + def test_environment_variables(self): + assert len(self.client_id) > 0, "Environment variable \"TEST_CLIENT_ID\" not found." + assert len(self.client_secret) > 0, "Environment variable \"TEST_CLIENT_SECRET\" not found." + assert self.application_id > 0, "Environment variable \"TEST_APPLICATION_ID\" not found." + + def test_example_works(self): + # Arrange + exampleApplication = ExampleApplication() + exampleApplication.call_then_application_endpoint(self.client_id, self.client_secret) + + def test_get_current_application_should_succeed_with_valid_token(self): + # Arrange + api = GatewayApi(self.client) + + # Act + http_response = api.get_current_application() + + # Assert + assert self.application_id == http_response.data.attributes.application_id + + + def test_get_current_application_should_succeed_with_renewed_invalid_token(self): + # Arrange + invalid_token = "invalid.access.token" + self.client.configuration.access_token = invalid_token + api = GatewayApi(self.client) + + # Act + http_response = api.get_current_application() + + # Assert + assert self.application_id == http_response.data.attributes.application_id + + + def test_get_current_application_should_fail_without_token(self): + # Arrange + api = GatewayApi(ApiClientBuilder.WithNoAuthorization()) + + # Act + try: + api.get_current_application() + + # Assert + except ApiException as exception: + assert exception.status == 401 diff --git a/sdks/marketingsolutions_2023-07/tox.ini b/sdks/marketingsolutions_2023-07/tox.ini new file mode 100644 index 00000000..9f868973 --- /dev/null +++ b/sdks/marketingsolutions_2023-07/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + pytest --cov=criteo_api_marketingsolutions_v2023_07 diff --git a/sdks/marketingsolutions_preview/.openapi-generator/FILES b/sdks/marketingsolutions_preview/.openapi-generator/FILES index c72577b0..24e2e664 100644 --- a/sdks/marketingsolutions_preview/.openapi-generator/FILES +++ b/sdks/marketingsolutions_preview/.openapi-generator/FILES @@ -198,7 +198,6 @@ criteo_api_marketingsolutions_preview/model/creative_write.py criteo_api_marketingsolutions_preview/model/creative_write_request.py criteo_api_marketingsolutions_preview/model/creative_write_resource.py criteo_api_marketingsolutions_preview/model/criteo_api_error.py -criteo_api_marketingsolutions_preview/model/criteo_api_error_v2.py criteo_api_marketingsolutions_preview/model/criteo_api_warning.py criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py criteo_api_marketingsolutions_preview/model/custom_attribute.py @@ -277,6 +276,7 @@ criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value criteo_api_marketingsolutions_preview/model/nillable_date_time.py criteo_api_marketingsolutions_preview/model/nillable_decimal.py criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py +criteo_api_marketingsolutions_preview/model/nillable_int32.py criteo_api_marketingsolutions_preview/model/nillable_string.py criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py @@ -337,6 +337,9 @@ criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py +criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py +criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py +criteo_api_marketingsolutions_preview/model/prospecting_v1.py criteo_api_marketingsolutions_preview/model/read_ad_set.py criteo_api_marketingsolutions_preview/model/read_ad_set_bidding.py criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v23_q1.py @@ -408,6 +411,7 @@ criteo_api_marketingsolutions_preview/model/user_event.py criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py +criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py criteo_api_marketingsolutions_preview/model/video_detail.py criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py @@ -595,7 +599,6 @@ docs/CreativeWrite.md docs/CreativeWriteRequest.md docs/CreativeWriteResource.md docs/CriteoApiError.md -docs/CriteoApiErrorV2.md docs/CriteoApiWarning.md docs/CriteoApiWarningV2.md docs/CustomAttribute.md @@ -675,6 +678,7 @@ docs/NillableAdSetTargetingRuleValue.md docs/NillableDateTime.md docs/NillableDecimal.md docs/NillableGenderV1.md +docs/NillableInt32.md docs/NillableString.md docs/OciBrandSafetyResponse.md docs/OciBrandSafetyResponseData.md @@ -736,6 +740,9 @@ docs/ProductUnitPricingBaseMeasure.md docs/ProductUnitPricingMeasure.md docs/ProductsCustomBatchRequest.md docs/ProductsCustomBatchRequestEntry.md +docs/ProspectingCreateV1.md +docs/ProspectingUpdateV1.md +docs/ProspectingV1.md docs/ReadAdSet.md docs/ReadAdSetBidding.md docs/ReadAdSetBiddingV23Q1.md @@ -808,6 +815,7 @@ docs/UserEvent.md docs/UserProfileAttributeModel.md docs/UserProfileIdentifierModel.md docs/ValueResourceInputOfCreateProductSetRequest.md +docs/ValueResourceOfAdvertiserCreationInput.md docs/ValueResourceOfCreateProductSetRequest.md docs/VideoDetail.md docs/WriteModelAdSetId.md diff --git a/sdks/marketingsolutions_preview/README.md b/sdks/marketingsolutions_preview/README.md index 7f902592..f4e3abcb 100644 --- a/sdks/marketingsolutions_preview/README.md +++ b/sdks/marketingsolutions_preview/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 0.0.230601 +- Package version: 0.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.230601 +pip install criteo-api-marketingsolutions-sdk==0.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.230726`) Then import the package: ```python @@ -234,7 +234,6 @@ Class | Method | HTTP request | Description - [CreativeWriteRequest](docs/CreativeWriteRequest.md) - [CreativeWriteResource](docs/CreativeWriteResource.md) - [CriteoApiError](docs/CriteoApiError.md) - - [CriteoApiErrorV2](docs/CriteoApiErrorV2.md) - [CriteoApiWarning](docs/CriteoApiWarning.md) - [CriteoApiWarningV2](docs/CriteoApiWarningV2.md) - [CustomAttribute](docs/CustomAttribute.md) @@ -313,6 +312,7 @@ Class | Method | HTTP request | Description - [NillableDateTime](docs/NillableDateTime.md) - [NillableDecimal](docs/NillableDecimal.md) - [NillableGenderV1](docs/NillableGenderV1.md) + - [NillableInt32](docs/NillableInt32.md) - [NillableString](docs/NillableString.md) - [OciBrandSafetyResponse](docs/OciBrandSafetyResponse.md) - [OciBrandSafetyResponseData](docs/OciBrandSafetyResponseData.md) @@ -373,6 +373,9 @@ Class | Method | HTTP request | Description - [ProductUnitPricingMeasure](docs/ProductUnitPricingMeasure.md) - [ProductsCustomBatchRequest](docs/ProductsCustomBatchRequest.md) - [ProductsCustomBatchRequestEntry](docs/ProductsCustomBatchRequestEntry.md) + - [ProspectingCreateV1](docs/ProspectingCreateV1.md) + - [ProspectingUpdateV1](docs/ProspectingUpdateV1.md) + - [ProspectingV1](docs/ProspectingV1.md) - [ReadAdSet](docs/ReadAdSet.md) - [ReadAdSetBidding](docs/ReadAdSetBidding.md) - [ReadAdSetBiddingV23Q1](docs/ReadAdSetBiddingV23Q1.md) @@ -444,6 +447,7 @@ Class | Method | HTTP request | Description - [UserProfileAttributeModel](docs/UserProfileAttributeModel.md) - [UserProfileIdentifierModel](docs/UserProfileIdentifierModel.md) - [ValueResourceInputOfCreateProductSetRequest](docs/ValueResourceInputOfCreateProductSetRequest.md) + - [ValueResourceOfAdvertiserCreationInput](docs/ValueResourceOfAdvertiserCreationInput.md) - [ValueResourceOfCreateProductSetRequest](docs/ValueResourceOfCreateProductSetRequest.md) - [VideoDetail](docs/VideoDetail.md) - [WriteModelAdSetId](docs/WriteModelAdSetId.md) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py index 89849686..0bd76358 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ -__version__ = "0.0.230601" +__version__ = "0.0.230726" # import ApiClient from criteo_api_marketingsolutions_preview.api_client import ApiClient diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py index c76c6793..d072ee07 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/advertiser_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py index 519114f0..0a8940cb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py index eb12c2de..7c3e1de2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -82,7 +82,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_segment_bulk_create_input_v1', ], - 'required': [], + 'required': [ + 'audience_segment_bulk_create_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -138,7 +140,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_bulk_create_input_v1', ], - 'required': [], + 'required': [ + 'audience_bulk_create_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -178,7 +182,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bulk_delete_audience_segment_endpoint = _Endpoint( + self.bulk_delete_audience_segments_endpoint = _Endpoint( settings={ 'response_type': (AudienceSegmentIdEntityV1ListResponse,), 'auth': [ @@ -186,7 +190,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/marketing-solutions/audience-segments/delete', - 'operation_id': 'bulk_delete_audience_segment', + 'operation_id': 'bulk_delete_audience_segments', 'http_method': 'POST', 'servers': None, }, @@ -194,7 +198,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_segment_bulk_delete_input_v1', ], - 'required': [], + 'required': [ + 'audience_segment_bulk_delete_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -250,7 +256,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_bulk_delete_input_v1', ], - 'required': [], + 'required': [ + 'audience_bulk_delete_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -306,7 +314,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_segment_bulk_update_input_v1', ], - 'required': [], + 'required': [ + 'audience_segment_bulk_update_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -362,7 +372,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_bulk_update_input_v1', ], - 'required': [], + 'required': [ + 'audience_bulk_update_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -418,7 +430,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_segment_compute_sizes_input_v1', ], - 'required': [], + 'required': [ + 'audience_segment_compute_sizes_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -474,7 +488,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_compute_sizes_input_v1', ], - 'required': [], + 'required': [ + 'audience_compute_sizes_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -643,7 +659,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_segment_estimate_size_input_v1', ], - 'required': [], + 'required': [ + 'audience_segment_estimate_size_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -699,7 +717,9 @@ def __init__(self, api_client=None): 'all': [ 'audience_estimate_size_input_v1', ], - 'required': [], + 'required': [ + 'audience_estimate_size_input_v1', + ], 'nullable': [ ], 'enum': [ @@ -739,7 +759,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_contact_list_statistics_endpoint = _Endpoint( + self.get_audience_segment_contact_list_statistics_endpoint = _Endpoint( settings={ 'response_type': (ContactListStatisticsEntityV1Response,), 'auth': [ @@ -747,7 +767,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list', - 'operation_id': 'get_contact_list_statistics', + 'operation_id': 'get_audience_segment_contact_list_statistics', 'http_method': 'GET', 'servers': None, }, @@ -793,7 +813,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_in_market_brands_endpoint = _Endpoint( + self.get_audience_segments_in_market_brands_endpoint = _Endpoint( settings={ 'response_type': (InMarketAudienceSegmentBrandEntityV1ListResponse,), 'auth': [ @@ -801,7 +821,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/marketing-solutions/audience-segments/in-market-brands', - 'operation_id': 'get_in_market_brands', + 'operation_id': 'get_audience_segments_in_market_brands', 'http_method': 'GET', 'servers': None, }, @@ -853,7 +873,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_in_market_interests_endpoint = _Endpoint( + self.get_audience_segments_in_market_interests_endpoint = _Endpoint( settings={ 'response_type': (InMarketAudienceSegmentInterestEntityV1ListResponse,), 'auth': [ @@ -861,7 +881,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/marketing-solutions/audience-segments/in-market-interests', - 'operation_id': 'get_in_market_interests', + 'operation_id': 'get_audience_segments_in_market_interests', 'http_method': 'GET', 'servers': None, }, @@ -948,7 +968,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'audience_id': - (int,), + (str,), 'contactlist_with_attributes_amendment_request': (ContactlistWithAttributesAmendmentRequest,), }, @@ -986,39 +1006,47 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ + 'audience_segment_search_input_v1', 'limit', 'offset', + ], + 'required': [ 'audience_segment_search_input_v1', ], - 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ + 'limit', ] }, root_map={ 'validations': { + ('limit',): { + + 'inclusive_maximum': 100, + 'inclusive_minimum': 0, + }, }, 'allowed_values': { }, 'openapi_types': { + 'audience_segment_search_input_v1': + (AudienceSegmentSearchInputV1,), 'limit': (int,), 'offset': (int,), - 'audience_segment_search_input_v1': - (AudienceSegmentSearchInputV1,), }, 'attribute_map': { 'limit': 'limit', 'offset': 'offset', }, 'location_map': { + 'audience_segment_search_input_v1': 'body', 'limit': 'query', 'offset': 'query', - 'audience_segment_search_input_v1': 'body', }, 'collection_format_map': { } @@ -1052,39 +1080,47 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ + 'audience_search_input_v1', 'limit', 'offset', + ], + 'required': [ 'audience_search_input_v1', ], - 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ + 'limit', ] }, root_map={ 'validations': { + ('limit',): { + + 'inclusive_maximum': 100, + 'inclusive_minimum': 0, + }, }, 'allowed_values': { }, 'openapi_types': { + 'audience_search_input_v1': + (AudienceSearchInputV1,), 'limit': (int,), 'offset': (int,), - 'audience_search_input_v1': - (AudienceSearchInputV1,), }, 'attribute_map': { 'limit': 'limit', 'offset': 'offset', }, 'location_map': { + 'audience_search_input_v1': 'body', 'limit': 'query', 'offset': 'query', - 'audience_search_input_v1': 'body', }, 'collection_format_map': { } @@ -1227,6 +1263,7 @@ def __init__(self, api_client=None): def bulk_create_audience_segments( self, + audience_segment_bulk_create_input_v1, **kwargs ): """bulk_create_audience_segments # noqa: E501 @@ -1235,12 +1272,13 @@ def bulk_create_audience_segments( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.bulk_create_audience_segments(async_req=True) + >>> thread = api.bulk_create_audience_segments(audience_segment_bulk_create_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_segment_bulk_create_input_v1 (AudienceSegmentBulkCreateInputV1): Segment creation parameter Keyword Args: - audience_segment_bulk_create_input_v1 (AudienceSegmentBulkCreateInputV1): Segment creation parameter. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1302,10 +1340,13 @@ def bulk_create_audience_segments( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_bulk_create_input_v1'] = \ + audience_segment_bulk_create_input_v1 return self.bulk_create_audience_segments_endpoint.call_with_http_info(**kwargs) def bulk_create_audiences( self, + audience_bulk_create_input_v1, **kwargs ): """bulk_create_audiences # noqa: E501 @@ -1314,12 +1355,13 @@ def bulk_create_audiences( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.bulk_create_audiences(async_req=True) + >>> thread = api.bulk_create_audiences(audience_bulk_create_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_bulk_create_input_v1 (AudienceBulkCreateInputV1): Keyword Args: - audience_bulk_create_input_v1 (AudienceBulkCreateInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1381,24 +1423,28 @@ def bulk_create_audiences( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_bulk_create_input_v1'] = \ + audience_bulk_create_input_v1 return self.bulk_create_audiences_endpoint.call_with_http_info(**kwargs) - def bulk_delete_audience_segment( + def bulk_delete_audience_segments( self, + audience_segment_bulk_delete_input_v1, **kwargs ): - """bulk_delete_audience_segment # noqa: E501 + """bulk_delete_audience_segments # noqa: E501 Delete the segments associated to the given audience IDs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.bulk_delete_audience_segment(async_req=True) + >>> thread = api.bulk_delete_audience_segments(audience_segment_bulk_delete_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_segment_bulk_delete_input_v1 (AudienceSegmentBulkDeleteInputV1): Segment delete request. Keyword Args: - audience_segment_bulk_delete_input_v1 (AudienceSegmentBulkDeleteInputV1): Segment delete request.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1460,10 +1506,13 @@ def bulk_delete_audience_segment( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.bulk_delete_audience_segment_endpoint.call_with_http_info(**kwargs) + kwargs['audience_segment_bulk_delete_input_v1'] = \ + audience_segment_bulk_delete_input_v1 + return self.bulk_delete_audience_segments_endpoint.call_with_http_info(**kwargs) def bulk_delete_audiences( self, + audience_bulk_delete_input_v1, **kwargs ): """bulk_delete_audiences # noqa: E501 @@ -1472,12 +1521,13 @@ def bulk_delete_audiences( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.bulk_delete_audiences(async_req=True) + >>> thread = api.bulk_delete_audiences(audience_bulk_delete_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_bulk_delete_input_v1 (AudienceBulkDeleteInputV1): Keyword Args: - audience_bulk_delete_input_v1 (AudienceBulkDeleteInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1539,10 +1589,13 @@ def bulk_delete_audiences( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_bulk_delete_input_v1'] = \ + audience_bulk_delete_input_v1 return self.bulk_delete_audiences_endpoint.call_with_http_info(**kwargs) def bulk_update_audience_segments( self, + audience_segment_bulk_update_input_v1, **kwargs ): """bulk_update_audience_segments # noqa: E501 @@ -1551,12 +1604,13 @@ def bulk_update_audience_segments( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.bulk_update_audience_segments(async_req=True) + >>> thread = api.bulk_update_audience_segments(audience_segment_bulk_update_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_segment_bulk_update_input_v1 (AudienceSegmentBulkUpdateInputV1): Segment Update request Keyword Args: - audience_segment_bulk_update_input_v1 (AudienceSegmentBulkUpdateInputV1): Segment Update request. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1618,10 +1672,13 @@ def bulk_update_audience_segments( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_bulk_update_input_v1'] = \ + audience_segment_bulk_update_input_v1 return self.bulk_update_audience_segments_endpoint.call_with_http_info(**kwargs) def bulk_update_audiences( self, + audience_bulk_update_input_v1, **kwargs ): """bulk_update_audiences # noqa: E501 @@ -1630,12 +1687,13 @@ def bulk_update_audiences( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.bulk_update_audiences(async_req=True) + >>> thread = api.bulk_update_audiences(audience_bulk_update_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_bulk_update_input_v1 (AudienceBulkUpdateInputV1): Keyword Args: - audience_bulk_update_input_v1 (AudienceBulkUpdateInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1697,10 +1755,13 @@ def bulk_update_audiences( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_bulk_update_input_v1'] = \ + audience_bulk_update_input_v1 return self.bulk_update_audiences_endpoint.call_with_http_info(**kwargs) def compute_audience_segments_sizes( self, + audience_segment_compute_sizes_input_v1, **kwargs ): """compute_audience_segments_sizes # noqa: E501 @@ -1709,12 +1770,13 @@ def compute_audience_segments_sizes( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.compute_audience_segments_sizes(async_req=True) + >>> thread = api.compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_segment_compute_sizes_input_v1 (AudienceSegmentComputeSizesInputV1): Keyword Args: - audience_segment_compute_sizes_input_v1 (AudienceSegmentComputeSizesInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1776,10 +1838,13 @@ def compute_audience_segments_sizes( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_compute_sizes_input_v1'] = \ + audience_segment_compute_sizes_input_v1 return self.compute_audience_segments_sizes_endpoint.call_with_http_info(**kwargs) def compute_audiences_sizes( self, + audience_compute_sizes_input_v1, **kwargs ): """compute_audiences_sizes # noqa: E501 @@ -1788,12 +1853,13 @@ def compute_audiences_sizes( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.compute_audiences_sizes(async_req=True) + >>> thread = api.compute_audiences_sizes(audience_compute_sizes_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_compute_sizes_input_v1 (AudienceComputeSizesInputV1): Keyword Args: - audience_compute_sizes_input_v1 (AudienceComputeSizesInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1855,6 +1921,8 @@ def compute_audiences_sizes( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_compute_sizes_input_v1'] = \ + audience_compute_sizes_input_v1 return self.compute_audiences_sizes_endpoint.call_with_http_info(**kwargs) def delete_contact_list_identifiers( @@ -2026,6 +2094,7 @@ def delete_user_profiles( def estimate_audience_segment_size( self, + audience_segment_estimate_size_input_v1, **kwargs ): """estimate_audience_segment_size # noqa: E501 @@ -2034,12 +2103,13 @@ def estimate_audience_segment_size( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.estimate_audience_segment_size(async_req=True) + >>> thread = api.estimate_audience_segment_size(audience_segment_estimate_size_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_segment_estimate_size_input_v1 (AudienceSegmentEstimateSizeInputV1): Keyword Args: - audience_segment_estimate_size_input_v1 (AudienceSegmentEstimateSizeInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2101,10 +2171,13 @@ def estimate_audience_segment_size( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_estimate_size_input_v1'] = \ + audience_segment_estimate_size_input_v1 return self.estimate_audience_segment_size_endpoint.call_with_http_info(**kwargs) def estimate_audience_size( self, + audience_estimate_size_input_v1, **kwargs ): """estimate_audience_size # noqa: E501 @@ -2113,12 +2186,13 @@ def estimate_audience_size( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.estimate_audience_size(async_req=True) + >>> thread = api.estimate_audience_size(audience_estimate_size_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_estimate_size_input_v1 (AudienceEstimateSizeInputV1): Keyword Args: - audience_estimate_size_input_v1 (AudienceEstimateSizeInputV1): . [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2180,20 +2254,22 @@ def estimate_audience_size( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_estimate_size_input_v1'] = \ + audience_estimate_size_input_v1 return self.estimate_audience_size_endpoint.call_with_http_info(**kwargs) - def get_contact_list_statistics( + def get_audience_segment_contact_list_statistics( self, audience_segment_id, **kwargs ): - """get_contact_list_statistics # noqa: E501 + """get_audience_segment_contact_list_statistics # noqa: E501 Returns the statistics of a contact list segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_contact_list_statistics(audience_segment_id, async_req=True) + >>> thread = api.get_audience_segment_contact_list_statistics(audience_segment_id, async_req=True) >>> result = thread.get() Args: @@ -2263,21 +2339,21 @@ def get_contact_list_statistics( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['audience_segment_id'] = \ audience_segment_id - return self.get_contact_list_statistics_endpoint.call_with_http_info(**kwargs) + return self.get_audience_segment_contact_list_statistics_endpoint.call_with_http_info(**kwargs) - def get_in_market_brands( + def get_audience_segments_in_market_brands( self, advertiser_id, country, **kwargs ): - """get_in_market_brands # noqa: E501 + """get_audience_segments_in_market_brands # noqa: E501 Returns a list with all available in-market brands that can be used to define an in-market segment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_in_market_brands(advertiser_id, country, async_req=True) + >>> thread = api.get_audience_segments_in_market_brands(advertiser_id, country, async_req=True) >>> result = thread.get() Args: @@ -2350,21 +2426,21 @@ def get_in_market_brands( advertiser_id kwargs['country'] = \ country - return self.get_in_market_brands_endpoint.call_with_http_info(**kwargs) + return self.get_audience_segments_in_market_brands_endpoint.call_with_http_info(**kwargs) - def get_in_market_interests( + def get_audience_segments_in_market_interests( self, advertiser_id, country, **kwargs ): - """get_in_market_interests # noqa: E501 + """get_audience_segments_in_market_interests # noqa: E501 Returns a list with all available in-market interests that can be used to define an in-market segment. These in-market interests correspond to the Google product taxonomy. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_in_market_interests(advertiser_id, country, async_req=True) + >>> thread = api.get_audience_segments_in_market_interests(advertiser_id, country, async_req=True) >>> result = thread.get() Args: @@ -2437,7 +2513,7 @@ def get_in_market_interests( advertiser_id kwargs['country'] = \ country - return self.get_in_market_interests_endpoint.call_with_http_info(**kwargs) + return self.get_audience_segments_in_market_interests_endpoint.call_with_http_info(**kwargs) def modify_audience_users_with_attributes( self, @@ -2455,7 +2531,7 @@ def modify_audience_users_with_attributes( >>> result = thread.get() Args: - audience_id (int): The id of the audience to amend + audience_id (str): The id of the audience to amend contactlist_with_attributes_amendment_request (ContactlistWithAttributesAmendmentRequest): Keyword Args: @@ -2528,6 +2604,7 @@ def modify_audience_users_with_attributes( def search_audience_segments( self, + audience_segment_search_input_v1, **kwargs ): """search_audience_segments # noqa: E501 @@ -2536,14 +2613,15 @@ def search_audience_segments( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.search_audience_segments(async_req=True) + >>> thread = api.search_audience_segments(audience_segment_search_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_segment_search_input_v1 (AudienceSegmentSearchInputV1): Segment search filters. Keyword Args: - limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] - offset (int): The (zero-based) offset into the collection. The default is 0.. [optional] - audience_segment_search_input_v1 (AudienceSegmentSearchInputV1): Segment search filters.. [optional] + limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] if omitted the server will use the default value of 50 + offset (int): The (zero-based) offset into the collection. The default is 0.. [optional] if omitted the server will use the default value of 0 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2605,10 +2683,13 @@ def search_audience_segments( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_segment_search_input_v1'] = \ + audience_segment_search_input_v1 return self.search_audience_segments_endpoint.call_with_http_info(**kwargs) def search_audiences( self, + audience_search_input_v1, **kwargs ): """search_audiences # noqa: E501 @@ -2617,14 +2698,15 @@ def search_audiences( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.search_audiences(async_req=True) + >>> thread = api.search_audiences(audience_search_input_v1, async_req=True) >>> result = thread.get() + Args: + audience_search_input_v1 (AudienceSearchInputV1): Audience search filters. Keyword Args: - limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] - offset (int): The (zero-based) offset into the collection. The default is 0.. [optional] - audience_search_input_v1 (AudienceSearchInputV1): Audience search filters.. [optional] + limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] if omitted the server will use the default value of 50 + offset (int): The (zero-based) offset into the collection. The default is 0.. [optional] if omitted the server will use the default value of 0 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2686,6 +2768,8 @@ def search_audiences( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['audience_search_input_v1'] = \ + audience_search_input_v1 return self.search_audiences_endpoint.call_with_http_info(**kwargs) def set_user_profiles( diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py index 4a98d05a..0d40179c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -90,7 +90,9 @@ def __init__(self, api_client=None): 'all': [ 'create_ad_set_request', ], - 'required': [], + 'required': [ + 'create_ad_set_request', + ], 'nullable': [ ], 'enum': [ @@ -146,7 +148,9 @@ def __init__(self, api_client=None): 'all': [ 'create_campaign_request', ], - 'required': [], + 'required': [ + 'create_campaign_request', + ], 'nullable': [ ], 'enum': [ @@ -2496,6 +2500,7 @@ def __init__(self, api_client=None): ], 'required': [ 'ad_set_id', + 'ad_set_audience_link_input_entity_v1', ], 'nullable': [ ], @@ -2649,6 +2654,7 @@ def __init__(self, api_client=None): def create_ad_set( self, + create_ad_set_request, **kwargs ): """create_ad_set # noqa: E501 @@ -2657,12 +2663,13 @@ def create_ad_set( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_ad_set(async_req=True) + >>> thread = api.create_ad_set(create_ad_set_request, async_req=True) >>> result = thread.get() + Args: + create_ad_set_request (CreateAdSetRequest): the ad sets to create Keyword Args: - create_ad_set_request (CreateAdSetRequest): the ad sets to create. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2724,10 +2731,13 @@ def create_ad_set( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['create_ad_set_request'] = \ + create_ad_set_request return self.create_ad_set_endpoint.call_with_http_info(**kwargs) def create_campaign( self, + create_campaign_request, **kwargs ): """create_campaign # noqa: E501 @@ -2736,12 +2746,13 @@ def create_campaign( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_campaign(async_req=True) + >>> thread = api.create_campaign(create_campaign_request, async_req=True) >>> result = thread.get() + Args: + create_campaign_request (CreateCampaignRequest): the campaigns to create Keyword Args: - create_campaign_request (CreateCampaignRequest): the campaigns to create. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2803,6 +2814,8 @@ def create_campaign( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['create_campaign_request'] = \ + create_campaign_request return self.create_campaign_endpoint.call_with_http_info(**kwargs) def delete_advertiser_bundle_rules( @@ -6048,6 +6061,7 @@ def stop_ad_sets( def update_ad_set_audience( self, ad_set_id, + ad_set_audience_link_input_entity_v1, **kwargs ): """update_ad_set_audience # noqa: E501 @@ -6056,14 +6070,14 @@ def update_ad_set_audience( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_ad_set_audience(ad_set_id, async_req=True) + >>> thread = api.update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1, async_req=True) >>> result = thread.get() Args: ad_set_id (str): The ad set ID. + ad_set_audience_link_input_entity_v1 (AdSetAudienceLinkInputEntityV1): Ad set-Audience update request. Keyword Args: - ad_set_audience_link_input_entity_v1 (AdSetAudienceLinkInputEntityV1): Ad set-Audience update request.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -6127,6 +6141,8 @@ def update_ad_set_audience( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['ad_set_id'] = \ ad_set_id + kwargs['ad_set_audience_link_input_entity_v1'] = \ + ad_set_audience_link_input_entity_v1 return self.update_ad_set_audience_endpoint.call_with_http_info(**kwargs) def upsert_oc_ibrand_safety_rule( diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py index 04ad3f54..348a1405 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/catalog_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py index 400e8f04..3d65b6d0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/creative_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -45,7 +45,7 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.create_ad_endpoint = _Endpoint( + self.create_advertiser_ad_endpoint = _Endpoint( settings={ 'response_type': (AdResponse,), 'auth': [ @@ -53,7 +53,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/ads', - 'operation_id': 'create_ad', + 'operation_id': 'create_advertiser_ad', 'http_method': 'POST', 'servers': None, }, @@ -64,6 +64,7 @@ def __init__(self, api_client=None): ], 'required': [ 'advertiser_id', + 'ad_write_request', ], 'nullable': [ ], @@ -108,7 +109,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.create_coupon_endpoint = _Endpoint( + self.create_advertiser_coupon_endpoint = _Endpoint( settings={ 'response_type': (CouponResponse,), 'auth': [ @@ -116,7 +117,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons', - 'operation_id': 'create_coupon', + 'operation_id': 'create_advertiser_coupon', 'http_method': 'POST', 'servers': None, }, @@ -127,6 +128,7 @@ def __init__(self, api_client=None): ], 'required': [ 'advertiser_id', + 'create_coupon_request', ], 'nullable': [ ], @@ -171,7 +173,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.create_creative_endpoint = _Endpoint( + self.create_advertiser_creative_endpoint = _Endpoint( settings={ 'response_type': (CreativeResponse,), 'auth': [ @@ -179,7 +181,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/creatives', - 'operation_id': 'create_creative', + 'operation_id': 'create_advertiser_creative', 'http_method': 'POST', 'servers': None, }, @@ -190,6 +192,7 @@ def __init__(self, api_client=None): ], 'required': [ 'advertiser_id', + 'creative_write_request', ], 'nullable': [ ], @@ -284,7 +287,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.delete_coupon_endpoint = _Endpoint( + self.delete_advertiser_coupon_endpoint = _Endpoint( settings={ 'response_type': None, 'auth': [ @@ -292,7 +295,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons/{id}', - 'operation_id': 'delete_coupon', + 'operation_id': 'delete_advertiser_coupon', 'http_method': 'DELETE', 'servers': None, }, @@ -390,7 +393,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.edit_coupon_endpoint = _Endpoint( + self.edit_advertiser_coupon_endpoint = _Endpoint( settings={ 'response_type': (CouponResponse,), 'auth': [ @@ -398,7 +401,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons/{id}', - 'operation_id': 'edit_coupon', + 'operation_id': 'edit_advertiser_coupon', 'http_method': 'PUT', 'servers': None, }, @@ -411,6 +414,7 @@ def __init__(self, api_client=None): 'required': [ 'advertiser_id', 'id', + 'update_coupon_request', ], 'nullable': [ ], @@ -478,6 +482,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', + 'creative_write_request', ], 'nullable': [ ], @@ -522,6 +527,70 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.generate_creative_preview_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/creatives/{id}/preview', + 'operation_id': 'generate_creative_preview', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'width', + 'height', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'width': + (int,), + 'height': + (int,), + }, + 'attribute_map': { + 'id': 'id', + 'width': 'width', + 'height': 'height', + }, + 'location_map': { + 'id': 'path', + 'width': 'query', + 'height': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/html', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_ad_endpoint = _Endpoint( settings={ 'response_type': (AdResponse,), @@ -576,7 +645,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_ads_endpoint = _Endpoint( + self.get_advertiser_ads_endpoint = _Endpoint( settings={ 'response_type': (AdListResponse,), 'auth': [ @@ -584,7 +653,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/ads', - 'operation_id': 'get_ads', + 'operation_id': 'get_advertiser_ads', 'http_method': 'GET', 'servers': None, }, @@ -640,7 +709,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_coupon_endpoint = _Endpoint( + self.get_advertiser_coupon_endpoint = _Endpoint( settings={ 'response_type': (CouponResponse,), 'auth': [ @@ -648,7 +717,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons/{id}', - 'operation_id': 'get_coupon', + 'operation_id': 'get_advertiser_coupon', 'http_method': 'GET', 'servers': None, }, @@ -700,7 +769,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_coupon_preview_endpoint = _Endpoint( + self.get_advertiser_coupon_preview_endpoint = _Endpoint( settings={ 'response_type': (str,), 'auth': [ @@ -708,7 +777,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons/{id}/preview', - 'operation_id': 'get_coupon_preview', + 'operation_id': 'get_advertiser_coupon_preview', 'http_method': 'GET', 'servers': None, }, @@ -770,7 +839,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_coupon_supported_sizes_endpoint = _Endpoint( + self.get_advertiser_coupon_supported_sizes_endpoint = _Endpoint( settings={ 'response_type': (CouponSupportedSizesResponse,), 'auth': [ @@ -778,7 +847,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons-supported-sizes', - 'operation_id': 'get_coupon_supported_sizes', + 'operation_id': 'get_advertiser_coupon_supported_sizes', 'http_method': 'GET', 'servers': None, }, @@ -829,7 +898,7 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_coupons_endpoint = _Endpoint( + self.get_advertiser_coupons_endpoint = _Endpoint( settings={ 'response_type': (CouponListResponse,), 'auth': [ @@ -837,7 +906,7 @@ def __init__(self, api_client=None): 'oauth' ], 'endpoint_path': '/preview/advertisers/{advertiser-id}/coupons', - 'operation_id': 'get_coupons', + 'operation_id': 'get_advertiser_coupons', 'http_method': 'GET', 'servers': None, }, @@ -893,24 +962,26 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_creative_endpoint = _Endpoint( + self.get_advertiser_creatives_endpoint = _Endpoint( settings={ - 'response_type': (CreativeResponse,), + 'response_type': (CreativeListResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/creatives/{id}', - 'operation_id': 'get_creative', + 'endpoint_path': '/preview/advertisers/{advertiser-id}/creatives', + 'operation_id': 'get_advertiser_creatives', 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'id', + 'advertiser_id', + 'limit', + 'offset', ], 'required': [ - 'id', + 'advertiser_id', ], 'nullable': [ ], @@ -925,14 +996,22 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'id': + 'advertiser_id': (str,), + 'limit': + (int,), + 'offset': + (int,), }, 'attribute_map': { - 'id': 'id', + 'advertiser_id': 'advertiser-id', + 'limit': 'limit', + 'offset': 'offset', }, 'location_map': { - 'id': 'path', + 'advertiser_id': 'path', + 'limit': 'query', + 'offset': 'query', }, 'collection_format_map': { } @@ -947,23 +1026,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_creative_preview_post_endpoint = _Endpoint( + self.get_creative_endpoint = _Endpoint( settings={ - 'response_type': (str,), + 'response_type': (CreativeResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/creatives/{id}/preview', - 'operation_id': 'get_creative_preview_post', - 'http_method': 'POST', + 'endpoint_path': '/preview/creatives/{id}', + 'operation_id': 'get_creative', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ 'id', - 'width', - 'height', ], 'required': [ 'id', @@ -983,84 +1060,12 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'width': - (int,), - 'height': - (int,), }, 'attribute_map': { 'id': 'id', - 'width': 'width', - 'height': 'height', }, 'location_map': { 'id': 'path', - 'width': 'query', - 'height': 'query', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'text/html', - 'application/json', - 'text/json' - ], - 'content_type': [], - }, - api_client=api_client - ) - self.get_creatives_endpoint = _Endpoint( - settings={ - 'response_type': (CreativeListResponse,), - 'auth': [ - 'oauth', - 'oauth' - ], - 'endpoint_path': '/preview/advertisers/{advertiser-id}/creatives', - 'operation_id': 'get_creatives', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'advertiser_id', - 'limit', - 'offset', - ], - 'required': [ - 'advertiser_id', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'advertiser_id': - (str,), - 'limit': - (int,), - 'offset': - (int,), - }, - 'attribute_map': { - 'advertiser_id': 'advertiser-id', - 'limit': 'limit', - 'offset': 'offset', - }, - 'location_map': { - 'advertiser_id': 'path', - 'limit': 'query', - 'offset': 'query', }, 'collection_format_map': { } @@ -1076,25 +1081,26 @@ def __init__(self, api_client=None): api_client=api_client ) - def create_ad( + def create_advertiser_ad( self, advertiser_id, + ad_write_request, **kwargs ): - """create_ad # noqa: E501 + """create_advertiser_ad # noqa: E501 Create an Ad # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_ad(advertiser_id, async_req=True) + >>> thread = api.create_advertiser_ad(advertiser_id, ad_write_request, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. + ad_write_request (AdWriteRequest): Keyword Args: - ad_write_request (AdWriteRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1158,27 +1164,30 @@ def create_ad( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['advertiser_id'] = \ advertiser_id - return self.create_ad_endpoint.call_with_http_info(**kwargs) + kwargs['ad_write_request'] = \ + ad_write_request + return self.create_advertiser_ad_endpoint.call_with_http_info(**kwargs) - def create_coupon( + def create_advertiser_coupon( self, advertiser_id, + create_coupon_request, **kwargs ): - """create_coupon # noqa: E501 + """create_advertiser_coupon # noqa: E501 Create a Coupon # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_coupon(advertiser_id, async_req=True) + >>> thread = api.create_advertiser_coupon(advertiser_id, create_coupon_request, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. + create_coupon_request (CreateCouponRequest): Keyword Args: - create_coupon_request (CreateCouponRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1242,27 +1251,30 @@ def create_coupon( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['advertiser_id'] = \ advertiser_id - return self.create_coupon_endpoint.call_with_http_info(**kwargs) + kwargs['create_coupon_request'] = \ + create_coupon_request + return self.create_advertiser_coupon_endpoint.call_with_http_info(**kwargs) - def create_creative( + def create_advertiser_creative( self, advertiser_id, + creative_write_request, **kwargs ): - """create_creative # noqa: E501 + """create_advertiser_creative # noqa: E501 Create a Creative # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_creative(advertiser_id, async_req=True) + >>> thread = api.create_advertiser_creative(advertiser_id, creative_write_request, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. + creative_write_request (CreativeWriteRequest): Keyword Args: - creative_write_request (CreativeWriteRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1326,7 +1338,9 @@ def create_creative( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['advertiser_id'] = \ advertiser_id - return self.create_creative_endpoint.call_with_http_info(**kwargs) + kwargs['creative_write_request'] = \ + creative_write_request + return self.create_advertiser_creative_endpoint.call_with_http_info(**kwargs) def delete_ad( self, @@ -1411,19 +1425,19 @@ def delete_ad( id return self.delete_ad_endpoint.call_with_http_info(**kwargs) - def delete_coupon( + def delete_advertiser_coupon( self, advertiser_id, id, **kwargs ): - """delete_coupon # noqa: E501 + """delete_advertiser_coupon # noqa: E501 Delete a Coupon # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_coupon(advertiser_id, id, async_req=True) + >>> thread = api.delete_advertiser_coupon(advertiser_id, id, async_req=True) >>> result = thread.get() Args: @@ -1496,7 +1510,7 @@ def delete_coupon( advertiser_id kwargs['id'] = \ id - return self.delete_coupon_endpoint.call_with_http_info(**kwargs) + return self.delete_advertiser_coupon_endpoint.call_with_http_info(**kwargs) def delete_creative( self, @@ -1581,27 +1595,28 @@ def delete_creative( id return self.delete_creative_endpoint.call_with_http_info(**kwargs) - def edit_coupon( + def edit_advertiser_coupon( self, advertiser_id, id, + update_coupon_request, **kwargs ): - """edit_coupon # noqa: E501 + """edit_advertiser_coupon # noqa: E501 Edit a specific Coupon # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.edit_coupon(advertiser_id, id, async_req=True) + >>> thread = api.edit_advertiser_coupon(advertiser_id, id, update_coupon_request, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. id (str): The Coupon identifier to edit. + update_coupon_request (UpdateCouponRequest): Keyword Args: - update_coupon_request (UpdateCouponRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1667,11 +1682,14 @@ def edit_coupon( advertiser_id kwargs['id'] = \ id - return self.edit_coupon_endpoint.call_with_http_info(**kwargs) + kwargs['update_coupon_request'] = \ + update_coupon_request + return self.edit_advertiser_coupon_endpoint.call_with_http_info(**kwargs) def edit_creative( self, id, + creative_write_request, **kwargs ): """edit_creative # noqa: E501 @@ -1680,14 +1698,14 @@ def edit_creative( This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.edit_creative(id, async_req=True) + >>> thread = api.edit_creative(id, creative_write_request, async_req=True) >>> result = thread.get() Args: id (str): The creative identifier to edit. + creative_write_request (CreativeWriteRequest): Keyword Args: - creative_write_request (CreativeWriteRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1751,26 +1769,30 @@ def edit_creative( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['id'] = \ id + kwargs['creative_write_request'] = \ + creative_write_request return self.edit_creative_endpoint.call_with_http_info(**kwargs) - def get_ad( + def generate_creative_preview( self, id, **kwargs ): - """get_ad # noqa: E501 + """generate_creative_preview # noqa: E501 - Get an Ad with its id # noqa: E501 + Generate a preview of a specific Creative # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_ad(id, async_req=True) + >>> thread = api.generate_creative_preview(id, async_req=True) >>> result = thread.get() Args: - id (int): The ad identifier to retrieve. + id (str): The Creative identifier to preview. Keyword Args: + width (int): The width of the Creative to preview.. [optional] + height (int): The height of the Creative to preview.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1803,7 +1825,7 @@ def get_ad( async_req (bool): execute request asynchronously Returns: - AdResponse + str If the method is called asynchronously, returns the request thread. """ @@ -1834,28 +1856,26 @@ def get_ad( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['id'] = \ id - return self.get_ad_endpoint.call_with_http_info(**kwargs) + return self.generate_creative_preview_endpoint.call_with_http_info(**kwargs) - def get_ads( + def get_ad( self, - advertiser_id, + id, **kwargs ): - """get_ads # noqa: E501 + """get_ad # noqa: E501 - Get the list of self-services Ads for a given advertiser # noqa: E501 + Get an Ad from its id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_ads(advertiser_id, async_req=True) + >>> thread = api.get_ad(id, async_req=True) >>> result = thread.get() Args: - advertiser_id (str): The advertiser identifier. + id (int): The ad identifier to retrieve. Keyword Args: - limit (int): The number of ads to be returned. The default is 50.. [optional] - offset (int): The (zero-based) offset into the collection of ads. The default is 0.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1888,7 +1908,7 @@ def get_ads( async_req (bool): execute request asynchronously Returns: - AdListResponse + AdResponse If the method is called asynchronously, returns the request thread. """ @@ -1917,30 +1937,30 @@ def get_ads( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['advertiser_id'] = \ - advertiser_id - return self.get_ads_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.get_ad_endpoint.call_with_http_info(**kwargs) - def get_coupon( + def get_advertiser_ads( self, advertiser_id, - id, **kwargs ): - """get_coupon # noqa: E501 + """get_advertiser_ads # noqa: E501 - Get a Coupon with its id # noqa: E501 + Get the list of self-services Ads for a given advertiser # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_coupon(advertiser_id, id, async_req=True) + >>> thread = api.get_advertiser_ads(advertiser_id, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. - id (str): The Coupon identifier to retrieve. Keyword Args: + limit (int): The number of ads to be returned. The default is 50.. [optional] + offset (int): The (zero-based) offset into the collection of ads. The default is 0.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -1973,7 +1993,7 @@ def get_coupon( async_req (bool): execute request asynchronously Returns: - CouponResponse + AdListResponse If the method is called asynchronously, returns the request thread. """ @@ -2004,32 +2024,28 @@ def get_coupon( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['advertiser_id'] = \ advertiser_id - kwargs['id'] = \ - id - return self.get_coupon_endpoint.call_with_http_info(**kwargs) + return self.get_advertiser_ads_endpoint.call_with_http_info(**kwargs) - def get_coupon_preview( + def get_advertiser_coupon( self, advertiser_id, id, **kwargs ): - """get_coupon_preview # noqa: E501 + """get_advertiser_coupon # noqa: E501 - Get the preview of a specific Coupon # noqa: E501 + Get a Coupon from its id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_coupon_preview(advertiser_id, id, async_req=True) + >>> thread = api.get_advertiser_coupon(advertiser_id, id, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. - id (str): The Coupon identifier to preview. + id (str): The Coupon identifier to retrieve. Keyword Args: - width (int): The width of the coupon to preview.. [optional] - height (int): The height of the coupon to preview.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2062,7 +2078,7 @@ def get_coupon_preview( async_req (bool): execute request asynchronously Returns: - str + CouponResponse If the method is called asynchronously, returns the request thread. """ @@ -2095,27 +2111,30 @@ def get_coupon_preview( advertiser_id kwargs['id'] = \ id - return self.get_coupon_preview_endpoint.call_with_http_info(**kwargs) + return self.get_advertiser_coupon_endpoint.call_with_http_info(**kwargs) - def get_coupon_supported_sizes( + def get_advertiser_coupon_preview( self, advertiser_id, + id, **kwargs ): - """get_coupon_supported_sizes # noqa: E501 + """get_advertiser_coupon_preview # noqa: E501 - Get the list of Coupon supported sizes # noqa: E501 + Get the preview of a specific Coupon # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_coupon_supported_sizes(advertiser_id, async_req=True) + >>> thread = api.get_advertiser_coupon_preview(advertiser_id, id, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. + id (str): The Coupon identifier to preview. Keyword Args: - ad_set_id (str): The ad set id on which you want to check the Coupon supported sizes.. [optional] + width (int): The width of the coupon to preview.. [optional] + height (int): The height of the coupon to preview.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2148,7 +2167,7 @@ def get_coupon_supported_sizes( async_req (bool): execute request asynchronously Returns: - CouponSupportedSizesResponse + str If the method is called asynchronously, returns the request thread. """ @@ -2179,28 +2198,29 @@ def get_coupon_supported_sizes( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['advertiser_id'] = \ advertiser_id - return self.get_coupon_supported_sizes_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.get_advertiser_coupon_preview_endpoint.call_with_http_info(**kwargs) - def get_coupons( + def get_advertiser_coupon_supported_sizes( self, advertiser_id, **kwargs ): - """get_coupons # noqa: E501 + """get_advertiser_coupon_supported_sizes # noqa: E501 - Get the list of self-services Coupons for a given advertiser # noqa: E501 + Get the list of Coupon supported sizes # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_coupons(advertiser_id, async_req=True) + >>> thread = api.get_advertiser_coupon_supported_sizes(advertiser_id, async_req=True) >>> result = thread.get() Args: advertiser_id (str): The advertiser identifier. Keyword Args: - limit (int): The number of coupons to be returned. The default is 50.. [optional] - offset (int): The (zero-based) offset into the collection of coupons. The default is 0.. [optional] + ad_set_id (str): The ad set id on which you want to check the Coupon supported sizes.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2233,7 +2253,7 @@ def get_coupons( async_req (bool): execute request asynchronously Returns: - CouponListResponse + CouponSupportedSizesResponse If the method is called asynchronously, returns the request thread. """ @@ -2264,26 +2284,28 @@ def get_coupons( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['advertiser_id'] = \ advertiser_id - return self.get_coupons_endpoint.call_with_http_info(**kwargs) + return self.get_advertiser_coupon_supported_sizes_endpoint.call_with_http_info(**kwargs) - def get_creative( + def get_advertiser_coupons( self, - id, + advertiser_id, **kwargs ): - """get_creative # noqa: E501 + """get_advertiser_coupons # noqa: E501 - Get a Creative with its id # noqa: E501 + Get the list of self-services Coupons for a given advertiser # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_creative(id, async_req=True) + >>> thread = api.get_advertiser_coupons(advertiser_id, async_req=True) >>> result = thread.get() Args: - id (str): The creative identifier to retrieve. + advertiser_id (str): The advertiser identifier. Keyword Args: + limit (int): The number of coupons to be returned. The default is 50.. [optional] + offset (int): The (zero-based) offset into the collection of coupons. The default is 0.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2316,7 +2338,7 @@ def get_creative( async_req (bool): execute request asynchronously Returns: - CreativeResponse + CouponListResponse If the method is called asynchronously, returns the request thread. """ @@ -2345,30 +2367,30 @@ def get_creative( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = \ - id - return self.get_creative_endpoint.call_with_http_info(**kwargs) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_coupons_endpoint.call_with_http_info(**kwargs) - def get_creative_preview_post( + def get_advertiser_creatives( self, - id, + advertiser_id, **kwargs ): - """get_creative_preview_post # noqa: E501 + """get_advertiser_creatives # noqa: E501 - Get the preview of a specific Creative # noqa: E501 + Get the list of self-services Creatives for a given advertiser # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_creative_preview_post(id, async_req=True) + >>> thread = api.get_advertiser_creatives(advertiser_id, async_req=True) >>> result = thread.get() Args: - id (str): The Creative identifier to preview. + advertiser_id (str): The advertiser identifier. Keyword Args: - width (int): The width of the Creative to preview.. [optional] - height (int): The height of the Creative to preview.. [optional] + limit (int): The number of creatives to be returned. The default is 50.. [optional] + offset (int): The (zero-based) offset into the collection of creatives. The default is 0.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2401,7 +2423,7 @@ def get_creative_preview_post( async_req (bool): execute request asynchronously Returns: - str + CreativeListResponse If the method is called asynchronously, returns the request thread. """ @@ -2430,30 +2452,28 @@ def get_creative_preview_post( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['id'] = \ - id - return self.get_creative_preview_post_endpoint.call_with_http_info(**kwargs) + kwargs['advertiser_id'] = \ + advertiser_id + return self.get_advertiser_creatives_endpoint.call_with_http_info(**kwargs) - def get_creatives( + def get_creative( self, - advertiser_id, + id, **kwargs ): - """get_creatives # noqa: E501 + """get_creative # noqa: E501 - Get the list of self-services Creatives for a given advertiser # noqa: E501 + Get a Creative from its id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_creatives(advertiser_id, async_req=True) + >>> thread = api.get_creative(id, async_req=True) >>> result = thread.get() Args: - advertiser_id (str): The advertiser identifier. + id (str): The creative identifier to retrieve. Keyword Args: - limit (int): The number of creatives to be returned. The default is 50.. [optional] - offset (int): The (zero-based) offset into the collection of creatives. The default is 0.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2486,7 +2506,7 @@ def get_creatives( async_req (bool): execute request asynchronously Returns: - CreativeListResponse + CreativeResponse If the method is called asynchronously, returns the request thread. """ @@ -2515,7 +2535,7 @@ def get_creatives( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['advertiser_id'] = \ - advertiser_id - return self.get_creatives_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.get_creative_endpoint.call_with_http_info(**kwargs) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py index b0cd247e..193bc280 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py index a62eb0d3..b8d51965 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py index e7f2a345..ef2bf70d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api/reco_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py index 52b8ebb6..393a39c9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.0.230601/python' + self.user_agent = 'OpenAPI-Generator/0.0.230726/python' def __enter__(self): return self diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py index 3e06a11a..78a9da8e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: Preview\n"\ - "SDK Package Version: 0.0.230601".\ + "SDK Package Version: 0.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py index b222e869..c8399aec 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py index 89a5de65..0eab7323 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py index 6f9cca06..57abe194 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py index 06c39aca..c1cf3963 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py index 2da47e8c..7d45e5d6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py index aa166888..32f64316 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py index 5d723596..b3e9f30c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py index 6f5b530d..9536144f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_entity_v1_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,10 +64,6 @@ class AdSetAudienceLinkEntityV1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py index 5c3bea88..a6458369 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_audience_link_input_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py index 3668e823..444e8cc8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py index 5f9a6cd9..e2f2a9d0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py index c185e67a..f692fc57 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py index d498c113..bb3b7e19 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py index 3a5354d7..a867275c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_delivery_limitations_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py index 3c6a7fa2..d0136ecd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py index d47d9cfa..466115ff 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py index 2e6d3637..378305c1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py index 922e19d6..22a5eb2b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py index a45af3b4..8af09269 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_frequency_capping_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location.py index 4ce27fbc..038c83b5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v23_q1.py index a4c76d31..cba6adc6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_geo_location_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py index 7448cfe8..70566244 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_filter_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v23_q1.py index a16d2da6..31991445 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_search_request_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting.py index 6abb0594..3306ca97 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py index 06cb33fd..99329cf3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py index b3a32ad8..8c8e15e4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py index 2d835074..5077936f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_disable_result_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py index 675d074f..23080e5b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py index e26fbe28..45f63d71 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py index e95a24f1..716c68e3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py index ccc9cf44..0e8f559d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_deal_ids_set_result_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py index 192bd089..4cd6d058 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py index fabe2681..af3b5c0d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_rule_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v23_q1.py index 74a38b49..1ceb6db5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py index 1aba9d24..68d53b79 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py index 118ba73f..9712718b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py index 39b11445..408b79c3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_disable_result_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py index 15aba38e..176271be 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py index 5ba7c169..f49736c0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py index 511b4d4b..3d50edde 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py index 28f9ed3d..21272441 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning_set_result_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py index ed537061..819627ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -55,6 +55,10 @@ class AdWrite(ModelNormal): """ allowed_values = { + ('inventory_type',): { + 'DISPLAY': "Display", + 'NATIVE': "Native", + }, } validations = { diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py index 3d73d52f..5d967220 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py index 460170cd..079b9d4c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ad_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py index 0bdd183a..3ee0bbfa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py index 613921ba..fc3bb9a6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_colors.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py index 740cbc69..1b20cbdf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -61,12 +61,23 @@ class AdaptiveWriteAttributes(ModelNormal): """ allowed_values = { + ('layouts',): { + 'EDITORIAL': "Editorial", + 'MONTAGE': "Montage", + 'INBANNERVIDEO': "InBannerVideo", + }, + ('image_display',): { + 'SHOWFULLIMAGE': "ShowFullImage", + 'ZOOMONIMAGE': "ZoomOnImage", + }, } validations = { ('layouts',): { + 'min_items': 1, }, ('calls_to_action',): { + 'min_items': 1, }, ('image_sets_base64',): { }, diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py index a285818a..8da6aea9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_input.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -81,6 +81,7 @@ def openapi_types(): and the value is attribute type. """ return { + 'agency_id': (str,), # noqa: E501 'account_name': (str,), # noqa: E501 'website_url': (str,), # noqa: E501 'country_iso_code': (str,), # noqa: E501 @@ -94,6 +95,7 @@ def discriminator(): attribute_map = { + 'agency_id': 'agencyId', # noqa: E501 'account_name': 'accountName', # noqa: E501 'website_url': 'websiteUrl', # noqa: E501 'country_iso_code': 'countryIsoCode', # noqa: E501 @@ -108,10 +110,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, account_name, website_url, country_iso_code, currency_iso_code, industry_id, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, agency_id, account_name, website_url, country_iso_code, currency_iso_code, industry_id, *args, **kwargs): # noqa: E501 """AdvertiserCreationInput - a model defined in OpenAPI Args: + agency_id (str): ID of the agency requesting the advertiser creation account_name (str): The Account Name; This will not be in fact the Advertiser name website_url (str): Website url country_iso_code (str): Country ISO code @@ -180,6 +183,7 @@ def _from_openapi_data(cls, account_name, website_url, country_iso_code, currenc self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.agency_id = agency_id self.account_name = account_name self.website_url = website_url self.country_iso_code = country_iso_code @@ -205,10 +209,11 @@ def _from_openapi_data(cls, account_name, website_url, country_iso_code, currenc ]) @convert_js_args_to_python_args - def __init__(self, account_name, website_url, country_iso_code, currency_iso_code, industry_id, *args, **kwargs): # noqa: E501 + def __init__(self, agency_id, account_name, website_url, country_iso_code, currency_iso_code, industry_id, *args, **kwargs): # noqa: E501 """AdvertiserCreationInput - a model defined in OpenAPI Args: + agency_id (str): ID of the agency requesting the advertiser creation account_name (str): The Account Name; This will not be in fact the Advertiser name website_url (str): Website url country_iso_code (str): Country ISO code @@ -275,6 +280,7 @@ def __init__(self, account_name, website_url, country_iso_code, currency_iso_cod self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.agency_id = agency_id self.account_name = account_name self.website_url = website_url self.country_iso_code = country_iso_code diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py index e725a320..4e62d42f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,8 +30,8 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.advertiser_creation_input import AdvertiserCreationInput - globals()['AdvertiserCreationInput'] = AdvertiserCreationInput + from criteo_api_marketingsolutions_preview.model.value_resource_of_advertiser_creation_input import ValueResourceOfAdvertiserCreationInput + globals()['ValueResourceOfAdvertiserCreationInput'] = ValueResourceOfAdvertiserCreationInput class AdvertiserCreationRequest(ModelNormal): @@ -59,20 +59,6 @@ class AdvertiserCreationRequest(ModelNormal): """ allowed_values = { - ('type',): { - 'CAMPAIGN': "campaign", - 'ADSET': "adset", - 'AD': "ad", - 'ADVERTISER': "advertiser", - 'AGENCY': "agency", - 'AGENCYADVERTISERLINK': "agencyAdvertiserLink", - 'AGENCYADVERTISERTRANSFERREQUEST': "AgencyAdvertiserTransferRequest", - 'PUBLISHER': "publisher", - 'ADDRESS': "address", - 'CLIENT': "client", - 'CONTACT': "contact", - 'INDUSTRY': "industry", - }, } validations = { @@ -101,8 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'type': (str,), # noqa: E501 - 'data': (AdvertiserCreationInput,), # noqa: E501 + 'data': (ValueResourceOfAdvertiserCreationInput,), # noqa: E501 } @cached_property @@ -111,7 +96,6 @@ def discriminator(): attribute_map = { - 'type': 'type', # noqa: E501 'data': 'data', # noqa: E501 } @@ -122,12 +106,9 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """AdvertiserCreationRequest - a model defined in OpenAPI - Args: - type (str): A string containing the entity type - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -159,7 +140,7 @@ def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (AdvertiserCreationInput): [optional] # noqa: E501 + data (ValueResourceOfAdvertiserCreationInput): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -191,7 +172,6 @@ def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -212,12 +192,9 @@ def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, type, *args, **kwargs): # noqa: E501 + def __init__(self, *args, **kwargs): # noqa: E501 """AdvertiserCreationRequest - a model defined in OpenAPI - Args: - type (str): A string containing the entity type - Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -249,7 +226,7 @@ def __init__(self, type, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - data (AdvertiserCreationInput): [optional] # noqa: E501 + data (ValueResourceOfAdvertiserCreationInput): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -279,7 +256,6 @@ def __init__(self, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py index e1397226..cf1e21ef 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_creation_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,10 +30,10 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.criteo_api_error_v2 import CriteoApiErrorV2 + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.criteo_api_warning_v2 import CriteoApiWarningV2 from criteo_api_marketingsolutions_preview.model.entity_v2_of_object import EntityV2OfObject - globals()['CriteoApiErrorV2'] = CriteoApiErrorV2 + globals()['CommonProblem'] = CommonProblem globals()['CriteoApiWarningV2'] = CriteoApiWarningV2 globals()['EntityV2OfObject'] = EntityV2OfObject @@ -96,7 +96,7 @@ def openapi_types(): lazy_import() return { 'data': (EntityV2OfObject,), # noqa: E501 - 'errors': ([CriteoApiErrorV2],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 'warnings': ([CriteoApiWarningV2],), # noqa: E501 } @@ -153,7 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (EntityV2OfObject): [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ @@ -241,7 +241,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (EntityV2OfObject): [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py index 3286970f..3df239b1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/advertiser_dataset_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,10 +30,10 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.criteo_api_error_v2 import CriteoApiErrorV2 + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.criteo_api_warning_v2 import CriteoApiWarningV2 from criteo_api_marketingsolutions_preview.model.entity_v2_of_dataset import EntityV2OfDataset - globals()['CriteoApiErrorV2'] = CriteoApiErrorV2 + globals()['CommonProblem'] = CommonProblem globals()['CriteoApiWarningV2'] = CriteoApiWarningV2 globals()['EntityV2OfDataset'] = EntityV2OfDataset @@ -98,7 +98,7 @@ def openapi_types(): lazy_import() return { 'data': ([EntityV2OfDataset],), # noqa: E501 - 'errors': ([CriteoApiErrorV2],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 'warnings': ([CriteoApiWarningV2],), # noqa: E501 } @@ -155,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([EntityV2OfDataset]): The response’s primary data. [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ @@ -243,7 +243,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([EntityV2OfDataset]): The response’s primary data. [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py index 0599c851..e190c189 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/algebra_node_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -58,10 +58,6 @@ class AlgebraNodeV1(ModelNormal): } validations = { - ('_and',): { - }, - ('_or',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py index 6c47c3d6..811076cd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_error_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py index 3385a449..ef9df6f2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_request_of_targeting_entity.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py index 659535a5..885c9c97 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/api_response_of_targeting_entity.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py index 09ef5ad1..1379f9e9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py index 1679b3ad..13a694ff 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py index e4eac843..d898954c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py index 70d8a8da..2fba0415 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/attribute.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py index ac871751..ba4744bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_create_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceBulkCreateInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py index 513e5198..2cd83759 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_delete_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceBulkDeleteInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py index b9aa6c2e..e196c0e0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_bulk_update_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceBulkUpdateInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py index cd3e7af0..fafe6c00 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_size_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py index 3a1aaaab..971d1378 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_compute_sizes_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceComputeSizesInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py index 07ef2b05..8d542b3b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -88,9 +88,9 @@ def openapi_types(): lazy_import() return { 'name': (str,), # noqa: E501 - 'description': (str,), # noqa: E501 'advertiser_id': (str,), # noqa: E501 'algebra': (AlgebraNodeV1,), # noqa: E501 + 'description': (str,), # noqa: E501 } @cached_property @@ -100,9 +100,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'description': 'description', # noqa: E501 'advertiser_id': 'advertiserId', # noqa: E501 'algebra': 'algebra', # noqa: E501 + 'description': 'description', # noqa: E501 } read_only_vars = { @@ -112,9 +112,14 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, name, advertiser_id, algebra, *args, **kwargs): # noqa: E501 """AudienceCreateEntityV1 - a model defined in OpenAPI + Args: + name (str): Name of the audience + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -146,10 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the audience. [optional] # noqa: E501 description (str): Description of the audience. [optional] # noqa: E501 - advertiser_id (str): Advertiser associated to the audience. [optional] # noqa: E501 - algebra (AlgebraNodeV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -181,6 +183,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.advertiser_id = advertiser_id + self.algebra = algebra for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -201,9 +206,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, name, advertiser_id, algebra, *args, **kwargs): # noqa: E501 """AudienceCreateEntityV1 - a model defined in OpenAPI + Args: + name (str): Name of the audience + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -235,10 +245,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the audience. [optional] # noqa: E501 description (str): Description of the audience. [optional] # noqa: E501 - advertiser_id (str): Advertiser associated to the audience. [optional] # noqa: E501 - algebra (AlgebraNodeV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -268,6 +275,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.advertiser_id = advertiser_id + self.algebra = algebra for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py index 3827e262..e491063c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_create_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py index b83a1645..ae5a9606 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_delete_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py index 1b4b6d07..5dcdd4d6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py index 349add9f..0ee270dc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_audience_search_metadata_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -66,12 +66,6 @@ class AudienceEntityV1AudienceSearchMetadataV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py index 2a2c2273..9a34438e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class AudienceEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py index 9341982e..c228acdd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py index c3bfb759..c1560911 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py index d29dfa76..5a8b2474 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -108,9 +108,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, advertiser_id, algebra, *args, **kwargs): # noqa: E501 """AudienceEstimateSizeEntityV1 - a model defined in OpenAPI + Args: + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -142,8 +146,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_id (str): Advertiser associated to the audience. [optional] # noqa: E501 - algebra (AlgebraNodeV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -175,6 +177,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.advertiser_id = advertiser_id + self.algebra = algebra for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -195,9 +199,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, advertiser_id, algebra, *args, **kwargs): # noqa: E501 """AudienceEstimateSizeEntityV1 - a model defined in OpenAPI + Args: + advertiser_id (str): Advertiser associated to the audience + algebra (AlgebraNodeV1): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -229,8 +237,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_id (str): Advertiser associated to the audience. [optional] # noqa: E501 - algebra (AlgebraNodeV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -260,6 +266,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.advertiser_id = advertiser_id + self.algebra = algebra for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py index 7c1438b5..08bafefe 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py index 053c9206..5cf737ec 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_estimate_size_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py index 0086d9d9..887c8edb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class AudienceIdEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py index f48f6db6..08eec636 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_id_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -138,7 +138,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity only with its ID. [optional] # noqa: E501 + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity with only its ID. [optional] # noqa: E501 id (str): Id of the entity. [optional] # noqa: E501 type (str): [optional] # noqa: E501 """ @@ -226,7 +226,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity only with its ID. [optional] # noqa: E501 + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Audience entity with only its ID. [optional] # noqa: E501 id (str): Id of the entity. [optional] # noqa: E501 type (str): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py index b1e2a896..ea0d29fc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_name_description.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py index 3a6a34e6..bed67f51 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -58,14 +58,6 @@ class AudienceSearchEntityV1(ModelNormal): } validations = { - ('audience_ids',): { - }, - ('advertiser_ids',): { - }, - ('audience_segment_ids',): { - }, - ('ad_set_ids',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py index b9194c64..e32706fd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py index e9cb4638..4727fead 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py index 14cc659b..f34add1e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_search_metadata_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py index 719c9e3f..33a2d4f0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_create_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceSegmentBulkCreateInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py index 66f8116b..59089ae3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_delete_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceSegmentBulkDeleteInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py index e941a26a..cf6a4cbf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_bulk_update_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceSegmentBulkUpdateInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py index a3902cdb..8c56bcdf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_size_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py index 022b22d6..5c4891b1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_compute_sizes_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class AudienceSegmentComputeSizesInputV1(ModelNormal): } validations = { - ('data',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py index 2b938a03..2f1e8710 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -33,10 +33,12 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.in_market_create_v1 import InMarketCreateV1 from criteo_api_marketingsolutions_preview.model.location_create_v1 import LocationCreateV1 from criteo_api_marketingsolutions_preview.model.lookalike_create_v1 import LookalikeCreateV1 + from criteo_api_marketingsolutions_preview.model.prospecting_create_v1 import ProspectingCreateV1 from criteo_api_marketingsolutions_preview.model.retargeting_create_v1 import RetargetingCreateV1 globals()['InMarketCreateV1'] = InMarketCreateV1 globals()['LocationCreateV1'] = LocationCreateV1 globals()['LookalikeCreateV1'] = LookalikeCreateV1 + globals()['ProspectingCreateV1'] = ProspectingCreateV1 globals()['RetargetingCreateV1'] = RetargetingCreateV1 @@ -94,10 +96,10 @@ def openapi_types(): lazy_import() return { 'name': (str,), # noqa: E501 - 'description': (str,), # noqa: E501 'advertiser_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 'in_market': (InMarketCreateV1,), # noqa: E501 - 'prospecting': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'prospecting': (ProspectingCreateV1,), # noqa: E501 'contact_list': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'location': (LocationCreateV1,), # noqa: E501 'retargeting': (RetargetingCreateV1,), # noqa: E501 @@ -111,8 +113,8 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'description': 'description', # noqa: E501 'advertiser_id': 'advertiserId', # noqa: E501 + 'description': 'description', # noqa: E501 'in_market': 'inMarket', # noqa: E501 'prospecting': 'prospecting', # noqa: E501 'contact_list': 'contactList', # noqa: E501 @@ -128,9 +130,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, name, advertiser_id, *args, **kwargs): # noqa: E501 """AudienceSegmentCreateEntityV1 - a model defined in OpenAPI + Args: + name (str): Name of the segment + advertiser_id (str): Advertiser associated to the segment + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -162,11 +168,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the segment. [optional] # noqa: E501 description (str): Description of the segment. [optional] # noqa: E501 - advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 in_market (InMarketCreateV1): [optional] # noqa: E501 - prospecting ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target prospecting users to website visitors.. [optional] # noqa: E501 + prospecting (ProspectingCreateV1): [optional] # noqa: E501 contact_list ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target users with your contact lists.. [optional] # noqa: E501 location (LocationCreateV1): [optional] # noqa: E501 retargeting (RetargetingCreateV1): [optional] # noqa: E501 @@ -202,6 +206,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.advertiser_id = advertiser_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -222,9 +228,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, name, advertiser_id, *args, **kwargs): # noqa: E501 """AudienceSegmentCreateEntityV1 - a model defined in OpenAPI + Args: + name (str): Name of the segment + advertiser_id (str): Advertiser associated to the segment + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -256,11 +266,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the segment. [optional] # noqa: E501 description (str): Description of the segment. [optional] # noqa: E501 - advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 in_market (InMarketCreateV1): [optional] # noqa: E501 - prospecting ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target prospecting users to website visitors.. [optional] # noqa: E501 + prospecting (ProspectingCreateV1): [optional] # noqa: E501 contact_list ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target users with your contact lists.. [optional] # noqa: E501 location (LocationCreateV1): [optional] # noqa: E501 retargeting (RetargetingCreateV1): [optional] # noqa: E501 @@ -294,6 +302,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.advertiser_id = advertiser_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py index 42d0a064..220d01b7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_create_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py index d8abfa5a..14a959ab 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_delete_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py index f04b8796..f5c22bd6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -35,12 +35,14 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.in_market_v1 import InMarketV1 from criteo_api_marketingsolutions_preview.model.location_v1 import LocationV1 from criteo_api_marketingsolutions_preview.model.lookalike_v1 import LookalikeV1 + from criteo_api_marketingsolutions_preview.model.prospecting_v1 import ProspectingV1 from criteo_api_marketingsolutions_preview.model.retargeting_v1 import RetargetingV1 globals()['BehavioralV1'] = BehavioralV1 globals()['ContactListV1'] = ContactListV1 globals()['InMarketV1'] = InMarketV1 globals()['LocationV1'] = LocationV1 globals()['LookalikeV1'] = LookalikeV1 + globals()['ProspectingV1'] = ProspectingV1 globals()['RetargetingV1'] = RetargetingV1 @@ -114,7 +116,7 @@ def openapi_types(): 'updated_at': (datetime,), # noqa: E501 'advertiser_id': (str,), # noqa: E501 'in_market': (InMarketV1,), # noqa: E501 - 'prospecting': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'prospecting': (ProspectingV1,), # noqa: E501 'contact_list': (ContactListV1,), # noqa: E501 'location': (LocationV1,), # noqa: E501 'behavioral': (BehavioralV1,), # noqa: E501 @@ -191,7 +193,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 updated_at (datetime): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 in_market (InMarketV1): [optional] # noqa: E501 - prospecting ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target prospecting users to website visitors.. [optional] # noqa: E501 + prospecting (ProspectingV1): [optional] # noqa: E501 contact_list (ContactListV1): [optional] # noqa: E501 location (LocationV1): [optional] # noqa: E501 behavioral (BehavioralV1): [optional] # noqa: E501 @@ -289,7 +291,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 updated_at (datetime): ISO-8601 timestamp in UTC of segment update (read-only). [optional] # noqa: E501 advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 in_market (InMarketV1): [optional] # noqa: E501 - prospecting ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Settings to target prospecting users to website visitors.. [optional] # noqa: E501 + prospecting (ProspectingV1): [optional] # noqa: E501 contact_list (ContactListV1): [optional] # noqa: E501 location (LocationV1): [optional] # noqa: E501 behavioral (BehavioralV1): [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py index 7946ef93..2c231506 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_audience_segment_search_metadata_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -66,12 +66,6 @@ class AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse(ModelNo } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py index cd66f58b..db0dc85b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class AudienceSegmentEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py index a8acde63..8e6fc29a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py index bf8ef06d..4f12eb77 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_estimate_size_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py index 3f22ea74..cc4c6e7a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class AudienceSegmentIdEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py index 0a0db9ad..d94078e4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_id_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py index 19b13da0..96cc1f77 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -68,12 +68,6 @@ class AudienceSegmentSearchEntityV1(ModelNormal): } validations = { - ('audience_segment_ids',): { - }, - ('advertiser_ids',): { - }, - ('audience_segment_types',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py index 294089e5..1ed9ea02 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py index b5a7422a..f6ec2b74 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_input_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py index 34259988..0c7e9886 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_search_metadata_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py index b3dba571..0a11fb85 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py index 6f962662..6c7cb973 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class AudienceSegmentSizeEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py index 83bbaf51..4d1a9915 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py index 79e817ae..31b62402 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -112,9 +112,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, advertiser_id, *args, **kwargs): # noqa: E501 """AudienceSegmentSizeEstimationEntityV1 - a model defined in OpenAPI + Args: + advertiser_id (str): Advertiser associated to the segment + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -146,7 +149,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 in_market (InMarketSizeEstimationV1): [optional] # noqa: E501 location (LocationSizeEstimationV1): [optional] # noqa: E501 """ @@ -180,6 +182,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.advertiser_id = advertiser_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -200,9 +203,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, advertiser_id, *args, **kwargs): # noqa: E501 """AudienceSegmentSizeEstimationEntityV1 - a model defined in OpenAPI + Args: + advertiser_id (str): Advertiser associated to the segment + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -234,7 +240,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - advertiser_id (str): Advertiser associated to the segment. [optional] # noqa: E501 in_market (InMarketSizeEstimationV1): [optional] # noqa: E501 location (LocationSizeEstimationV1): [optional] # noqa: E501 """ @@ -266,6 +271,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.advertiser_id = advertiser_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py index 81807eb6..f68d1096 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py index ed66c177..769716e3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py index 7d3bae9f..4d61b0f9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py index 6ddecc06..ab5a83b6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_size_estimation_v1_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,10 +64,6 @@ class AudienceSegmentSizeEstimationV1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py index a38e6107..39abd8e1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -34,11 +34,13 @@ def lazy_import(): from criteo_api_marketingsolutions_preview.model.location_update_v1 import LocationUpdateV1 from criteo_api_marketingsolutions_preview.model.lookalike_update_v1 import LookalikeUpdateV1 from criteo_api_marketingsolutions_preview.model.nillable_string import NillableString + from criteo_api_marketingsolutions_preview.model.prospecting_update_v1 import ProspectingUpdateV1 from criteo_api_marketingsolutions_preview.model.retargeting_update_v1 import RetargetingUpdateV1 globals()['InMarketUpdateV1'] = InMarketUpdateV1 globals()['LocationUpdateV1'] = LocationUpdateV1 globals()['LookalikeUpdateV1'] = LookalikeUpdateV1 globals()['NillableString'] = NillableString + globals()['ProspectingUpdateV1'] = ProspectingUpdateV1 globals()['RetargetingUpdateV1'] = RetargetingUpdateV1 @@ -101,6 +103,7 @@ def openapi_types(): 'location': (LocationUpdateV1,), # noqa: E501 'retargeting': (RetargetingUpdateV1,), # noqa: E501 'lookalike': (LookalikeUpdateV1,), # noqa: E501 + 'prospecting': (ProspectingUpdateV1,), # noqa: E501 } @cached_property @@ -115,6 +118,7 @@ def discriminator(): 'location': 'location', # noqa: E501 'retargeting': 'retargeting', # noqa: E501 'lookalike': 'lookalike', # noqa: E501 + 'prospecting': 'prospecting', # noqa: E501 } read_only_vars = { @@ -158,12 +162,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): [optional] # noqa: E501 + name (str): Name of the segment. [optional] # noqa: E501 description (NillableString): [optional] # noqa: E501 in_market (InMarketUpdateV1): [optional] # noqa: E501 location (LocationUpdateV1): [optional] # noqa: E501 retargeting (RetargetingUpdateV1): [optional] # noqa: E501 lookalike (LookalikeUpdateV1): [optional] # noqa: E501 + prospecting (ProspectingUpdateV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -249,12 +254,13 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): [optional] # noqa: E501 + name (str): Name of the segment. [optional] # noqa: E501 description (NillableString): [optional] # noqa: E501 in_market (InMarketUpdateV1): [optional] # noqa: E501 location (LocationUpdateV1): [optional] # noqa: E501 retargeting (RetargetingUpdateV1): [optional] # noqa: E501 lookalike (LookalikeUpdateV1): [optional] # noqa: E501 + prospecting (ProspectingUpdateV1): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py index df13d94d..88fc8f23 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_segment_update_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py index 666a032c..bd4b2110 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py index 7305c6a8..66e86142 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class AudienceSizeEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py index 00cd27f0..efbc1286 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py index 05645337..cf24bd8b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py index f6346138..055cac7d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py index c6963c4e..4c151bb1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_size_estimation_v1_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,10 +64,6 @@ class AudienceSizeEstimationV1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py index 75d35603..38474b2c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py index a80c7b1b..59b8c50b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_update_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py index f340355e..740f1342 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/audience_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py index 88031979..2f0d257a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/basic_audience_definition.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py index 49d2d2c4..dd2ecb6a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/batch_accepted_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py index 792354ea..733a9ebb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/behavioral_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py index 394d7ff9..dd56676d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_filters_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py index 0ad5aa12..797a6e83 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_search_request_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py index cb169283..3dc95b53 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_spend_limit_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py index aebc4fa6..e66e75d0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py index ed7592e3..3dc5dbf6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py index f36f1b33..9244e996 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py index 3ed2f3e4..9c99aca2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/campaign_v23_q1_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py index 7e62510c..a4c474a5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py index 3125596c..a3039349 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py index 4fd731ac..9d7e889f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py index 383049db..04aa2786 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_statistics_entity_v1_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,10 +64,6 @@ class ContactListStatisticsEntityV1Response(ModelNormal): } validations = { - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py index b050d6f4..d30d0a53 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contact_list_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py index df23fe79..8d1f3dd4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py index 57cbcd6e..31476e79 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,6 +64,7 @@ class ContactlistAmendmentAttributes(ModelNormal): 'MADID': "madid", 'IDENTITYLINK': "identityLink", 'GUM': "gum", + 'CUSTOMERID': "customerid", }, } @@ -95,7 +96,6 @@ def openapi_types(): 'identifiers': ([str],), # noqa: E501 'identifier_type': (str,), # noqa: E501 'gum_caller_id': (int,), # noqa: E501 - 'internal_identifiers': (bool,), # noqa: E501 } @cached_property @@ -108,7 +108,6 @@ def discriminator(): 'identifiers': 'identifiers', # noqa: E501 'identifier_type': 'identifierType', # noqa: E501 'gum_caller_id': 'gumCallerId', # noqa: E501 - 'internal_identifiers': 'internalIdentifiers', # noqa: E501 } read_only_vars = { @@ -158,7 +157,6 @@ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -252,7 +250,6 @@ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) identifier_type (str): What type of identifiers are used. [optional] # noqa: E501 gum_caller_id (int): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py index 7aad8887..e50cb780 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_amendment_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py index fbddccf8..a3e012b8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py index ce94e26a..a17eea76 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_operation_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): """ return { 'operation': (str,), # noqa: E501 - 'contact_list_id': (str,), # noqa: E501 + 'contact_list_id': (int,), # noqa: E501 'request_date': (datetime,), # noqa: E501 'identifier_type': (str,), # noqa: E501 'nb_valid_identifiers': (int,), # noqa: E501 @@ -149,7 +149,7 @@ def _from_openapi_data(cls, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 @@ -244,7 +244,7 @@ def __init__(self, operation, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - contact_list_id (str): the affected user list id. [optional] # noqa: E501 + contact_list_id (int): the affected user list id. [optional] # noqa: E501 request_date (datetime): When the action was recorded. [optional] # noqa: E501 identifier_type (str): The schema specified for of the identifiers. [optional] # noqa: E501 nb_valid_identifiers (int): How many identifiers were valid for the specified schema. [optional] # noqa: E501 diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py index b090eb28..5ba3ec97 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py index e781ddb5..950fd4d9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -68,6 +68,7 @@ class ContactlistWithAttributesAmendmentAttributes(ModelNormal): 'MADID': "madid", 'IDENTITYLINK': "identityLink", 'GUM': "gum", + 'CUSTOMERID': "customerid", }, } @@ -101,7 +102,6 @@ def openapi_types(): 'identifier_type': (str,), # noqa: E501 'identifiers': ([UserDef],), # noqa: E501 'gum_caller_id': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 - 'internal_identifiers': (bool,), # noqa: E501 } @cached_property @@ -114,12 +114,10 @@ def discriminator(): 'identifier_type': 'identifierType', # noqa: E501 'identifiers': 'identifiers', # noqa: E501 'gum_caller_id': 'gumCallerId', # noqa: E501 - 'internal_identifiers': 'internalIdentifiers', # noqa: E501 } read_only_vars = { 'gum_caller_id', # noqa: E501 - 'internal_identifiers', # noqa: E501 } _composed_schemas = {} @@ -166,7 +164,6 @@ def _from_openapi_data(cls, operation, identifier_type, identifiers, *args, **kw through its discriminator because we passed in _visited_composed_classes = (Animal,) gum_caller_id ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,7 +258,6 @@ def __init__(self, operation, identifier_type, identifiers, *args, **kwargs): # through its discriminator because we passed in _visited_composed_classes = (Animal,) gum_caller_id ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The Gum caller id of the advertiser patching identifiers of type Gum. [optional] # noqa: E501 - internal_identifiers (bool): The flag to indicate if identifiers are external or internal. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py index 426e293f..cc55eb9a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py index bbd217e2..17b0b1f7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py index 4ca9a750..2f41f946 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py index 66327646..0126e6be 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py index 38a4e364..c95f6e1f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py index e4db9de7..22e0699f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py index 5fb428dd..577f0b36 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py index 780f4836..6bde159e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py index fc5ce615..1f090917 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -147,9 +147,21 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, budget, tracking_code, media_type, *args, **kwargs): # noqa: E501 """CreateAdSet - a model defined in OpenAPI + Args: + name (str): Name of the ad set + dataset_id (str): Dataset id of this ad set + campaign_id (str): Campaign id this ad set belongs to + objective (str): Objective of the ad set + schedule (CreateAdSetSchedule): + bidding (CreateAdSetBidding): + targeting (CreateAdSetTargeting): + budget (CreateAdSetBudget): + tracking_code (str): The click tracking code associated to this Ad Set. + media_type (str): Media type for the ad set + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -181,16 +193,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the ad set. [optional] # noqa: E501 - dataset_id (str): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str): Campaign id this ad set belongs to. [optional] # noqa: E501 - objective (str): Objective of the ad set. [optional] # noqa: E501 - schedule (CreateAdSetSchedule): [optional] # noqa: E501 - bidding (CreateAdSetBidding): [optional] # noqa: E501 - targeting (CreateAdSetTargeting): [optional] # noqa: E501 - budget (CreateAdSetBudget): [optional] # noqa: E501 - tracking_code (str): The click tracking code associated to this Ad Set.. [optional] # noqa: E501 - media_type (str): Media type for the ad set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -222,6 +224,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.dataset_id = dataset_id + self.campaign_id = campaign_id + self.objective = objective + self.schedule = schedule + self.bidding = bidding + self.targeting = targeting + self.budget = budget + self.tracking_code = tracking_code + self.media_type = media_type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -242,9 +254,21 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, budget, tracking_code, media_type, *args, **kwargs): # noqa: E501 """CreateAdSet - a model defined in OpenAPI + Args: + name (str): Name of the ad set + dataset_id (str): Dataset id of this ad set + campaign_id (str): Campaign id this ad set belongs to + objective (str): Objective of the ad set + schedule (CreateAdSetSchedule): + bidding (CreateAdSetBidding): + targeting (CreateAdSetTargeting): + budget (CreateAdSetBudget): + tracking_code (str): The click tracking code associated to this Ad Set. + media_type (str): Media type for the ad set + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -276,16 +300,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the ad set. [optional] # noqa: E501 - dataset_id (str): Dataset id of this ad set. [optional] # noqa: E501 - campaign_id (str): Campaign id this ad set belongs to. [optional] # noqa: E501 - objective (str): Objective of the ad set. [optional] # noqa: E501 - schedule (CreateAdSetSchedule): [optional] # noqa: E501 - bidding (CreateAdSetBidding): [optional] # noqa: E501 - targeting (CreateAdSetTargeting): [optional] # noqa: E501 - budget (CreateAdSetBudget): [optional] # noqa: E501 - tracking_code (str): The click tracking code associated to this Ad Set.. [optional] # noqa: E501 - media_type (str): Media type for the ad set. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -315,6 +329,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.dataset_id = dataset_id + self.campaign_id = campaign_id + self.objective = objective + self.schedule = schedule + self.bidding = bidding + self.targeting = targeting + self.budget = budget + self.tracking_code = tracking_code + self.media_type = media_type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding.py index dbba1630..75eb84ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -91,8 +91,8 @@ def openapi_types(): and the value is attribute type. """ return { - 'bid_amount': (float,), # noqa: E501 'cost_controller': (str,), # noqa: E501 + 'bid_amount': (float,), # noqa: E501 } @cached_property @@ -101,8 +101,8 @@ def discriminator(): attribute_map = { - 'bid_amount': 'bidAmount', # noqa: E501 'cost_controller': 'costController', # noqa: E501 + 'bid_amount': 'bidAmount', # noqa: E501 } read_only_vars = { @@ -112,9 +112,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, cost_controller, *args, **kwargs): # noqa: E501 """CreateAdSetBidding - a model defined in OpenAPI + Args: + cost_controller (str): How spend is controlled + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -147,7 +150,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) bid_amount (float): Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 - cost_controller (str): How spend is controlled. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -179,6 +181,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.cost_controller = cost_controller for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,9 +202,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, cost_controller, *args, **kwargs): # noqa: E501 """CreateAdSetBidding - a model defined in OpenAPI + Args: + cost_controller (str): How spend is controlled + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -234,7 +240,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) bid_amount (float): Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded.. [optional] # noqa: E501 - cost_controller (str): How spend is controlled. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -264,6 +269,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.cost_controller = cost_controller for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget.py index 8656d09e..4cf34ce3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -132,9 +132,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, budget_strategy, *args, **kwargs): # noqa: E501 """CreateAdSetBudget - a model defined in OpenAPI + Args: + budget_strategy (str): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -166,7 +169,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str): [optional] # noqa: E501 budget_renewal (str): [optional] # noqa: E501 budget_delivery_smoothing (str): [optional] # noqa: E501 budget_delivery_week (str): [optional] # noqa: E501 @@ -202,6 +204,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.budget_strategy = budget_strategy for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -222,9 +225,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, budget_strategy, *args, **kwargs): # noqa: E501 """CreateAdSetBudget - a model defined in OpenAPI + Args: + budget_strategy (str): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -256,7 +262,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - budget_strategy (str): [optional] # noqa: E501 budget_renewal (str): [optional] # noqa: E501 budget_delivery_smoothing (str): [optional] # noqa: E501 budget_delivery_week (str): [optional] # noqa: E501 @@ -290,6 +295,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.budget_strategy = budget_strategy for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location.py index 4f0a8f35..23215803 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_geo_location.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_request.py index fa061fc9..da0d798d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_resource.py index 2c3d2348..a24b3089 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule.py index b8d12fcb..197cd281 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_schedule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -102,9 +102,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, start_date, *args, **kwargs): # noqa: E501 """CreateAdSetSchedule - a model defined in OpenAPI + Args: + start_date (datetime): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -136,7 +139,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - start_date (datetime): [optional] # noqa: E501 end_date (datetime): [optional] # noqa: E501 """ @@ -169,6 +171,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.start_date = start_date for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,9 +192,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, start_date, *args, **kwargs): # noqa: E501 """CreateAdSetSchedule - a model defined in OpenAPI + Args: + start_date (datetime): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -223,7 +229,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - start_date (datetime): [optional] # noqa: E501 end_date (datetime): [optional] # noqa: E501 """ @@ -254,6 +259,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.start_date = start_date for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting.py index a786449e..a438f661 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_ad_set_targeting.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -91,9 +91,9 @@ def openapi_types(): """ lazy_import() return { + 'frequency_capping': (AdSetFrequencyCapping,), # noqa: E501 'delivery_limitations': (AdSetDeliveryLimitations,), # noqa: E501 'geo_location': (CreateAdSetGeoLocation,), # noqa: E501 - 'frequency_capping': (AdSetFrequencyCapping,), # noqa: E501 } @cached_property @@ -102,9 +102,9 @@ def discriminator(): attribute_map = { + 'frequency_capping': 'frequencyCapping', # noqa: E501 'delivery_limitations': 'deliveryLimitations', # noqa: E501 'geo_location': 'geoLocation', # noqa: E501 - 'frequency_capping': 'frequencyCapping', # noqa: E501 } read_only_vars = { @@ -114,9 +114,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, frequency_capping, *args, **kwargs): # noqa: E501 """CreateAdSetTargeting - a model defined in OpenAPI + Args: + frequency_capping (AdSetFrequencyCapping): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -150,7 +153,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501 geo_location (CreateAdSetGeoLocation): [optional] # noqa: E501 - frequency_capping (AdSetFrequencyCapping): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -182,6 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.frequency_capping = frequency_capping for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -202,9 +205,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, frequency_capping, *args, **kwargs): # noqa: E501 """CreateAdSetTargeting - a model defined in OpenAPI + Args: + frequency_capping (AdSetFrequencyCapping): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -238,7 +244,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) delivery_limitations (AdSetDeliveryLimitations): [optional] # noqa: E501 geo_location (CreateAdSetGeoLocation): [optional] # noqa: E501 - frequency_capping (AdSetFrequencyCapping): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -268,6 +273,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.frequency_capping = frequency_capping for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py index a93456d0..d44a4600 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -117,9 +117,15 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, name, advertiser_id, goal, spend_limit, *args, **kwargs): # noqa: E501 """CreateCampaign - a model defined in OpenAPI + Args: + name (str): Name of the campaign + advertiser_id (str): Advertiser id this campaign belongs to + goal (str): Goal for the marketing campaign + spend_limit (CreateCampaignSpendLimit): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -151,10 +157,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str): Advertiser id this campaign belongs to. [optional] # noqa: E501 - goal (str): Goal for the marketing campaign. [optional] # noqa: E501 - spend_limit (CreateCampaignSpendLimit): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,6 +188,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.advertiser_id = advertiser_id + self.goal = goal + self.spend_limit = spend_limit for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -206,9 +212,15 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, name, advertiser_id, goal, spend_limit, *args, **kwargs): # noqa: E501 """CreateCampaign - a model defined in OpenAPI + Args: + name (str): Name of the campaign + advertiser_id (str): Advertiser id this campaign belongs to + goal (str): Goal for the marketing campaign + spend_limit (CreateCampaignSpendLimit): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -240,10 +252,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): Name of the campaign. [optional] # noqa: E501 - advertiser_id (str): Advertiser id this campaign belongs to. [optional] # noqa: E501 - goal (str): Goal for the marketing campaign. [optional] # noqa: E501 - spend_limit (CreateCampaignSpendLimit): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -273,6 +281,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name + self.advertiser_id = advertiser_id + self.goal = goal + self.spend_limit = spend_limit for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py index 7392e184..92a09214 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py index 0605b3cd..438d61e0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py index ac805958..ebfb0421 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -114,9 +114,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, spend_limit_type, *args, **kwargs): # noqa: E501 """CreateCampaignSpendLimit - a model defined in OpenAPI + Args: + spend_limit_type (str): Whether your spend limit is capped or not + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -148,7 +151,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 spend_limit_amount (float): The amount of the spend limit. null if spendLimitType is uncapped.. [optional] # noqa: E501 """ @@ -182,6 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.spend_limit_type = spend_limit_type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -202,9 +205,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, spend_limit_type, *args, **kwargs): # noqa: E501 """CreateCampaignSpendLimit - a model defined in OpenAPI + Args: + spend_limit_type (str): Whether your spend limit is capped or not + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -236,7 +242,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - spend_limit_type (str): Whether your spend limit is capped or not. [optional] # noqa: E501 spend_limit_renewal (str): The pace of the spend limit renewal. [optional] # noqa: E501 spend_limit_amount (float): The amount of the spend limit. null if spendLimitType is uncapped.. [optional] # noqa: E501 """ @@ -268,6 +273,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.spend_limit_type = spend_limit_type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py index 46f054a6..4f404ac1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -59,11 +59,27 @@ class CreateCoupon(ModelNormal): """ allowed_values = { + ('format',): { + 'FULLFRAME': "FullFrame", + 'LOGOZONE': "LogoZone", + }, } validations = { ('images',): { }, + ('show_every',): { + 'inclusive_maximum': 10, + 'inclusive_minimum': 1, + }, + ('show_duration',): { + 'inclusive_maximum': 5, + 'inclusive_minimum': 1, + }, + ('rotations_number',): { + 'inclusive_maximum': 10, + 'inclusive_minimum': 1, + }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py index 99ab5381..997d969e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py index 71b17044..87d8b991 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_coupon_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py index feab1188..d8f2bd8e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_image_slide.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py index 25397836..86c022e3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/create_product_set_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py index 53a4c319..1f1f7449 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py index 074f516e..eb733d11 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py index 5a360b3f..1aea262e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py index 9b47af52..51352ca1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py index 7590e471..31e79b9d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -65,6 +65,12 @@ class CreativeWrite(ModelNormal): """ allowed_values = { + ('format',): { + 'IMAGE': "Image", + 'HTMLTAG': "HtmlTag", + 'DYNAMIC': "Dynamic", + 'ADAPTIVE': "Adaptive", + }, } validations = { @@ -94,9 +100,9 @@ def openapi_types(): lazy_import() return { 'name': (str,), # noqa: E501 - 'description': (str,), # noqa: E501 'format': (str,), # noqa: E501 'dataset_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 'image_write_attributes': (ImageWriteAttributes,), # noqa: E501 'html_tag_write_attributes': (HtmlTagWriteAttributes,), # noqa: E501 'dynamic_write_attributes': (DynamicWriteAttributes,), # noqa: E501 @@ -110,9 +116,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 - 'description': 'description', # noqa: E501 'format': 'format', # noqa: E501 'dataset_id': 'datasetId', # noqa: E501 + 'description': 'description', # noqa: E501 'image_write_attributes': 'imageWriteAttributes', # noqa: E501 'html_tag_write_attributes': 'htmlTagWriteAttributes', # noqa: E501 'dynamic_write_attributes': 'dynamicWriteAttributes', # noqa: E501 @@ -126,11 +132,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, name, format, dataset_id, *args, **kwargs): # noqa: E501 """CreativeWrite - a model defined in OpenAPI Args: name (str): The name of the creative + format (str): The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" + dataset_id (str): Dataset linked to the Creative Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -164,8 +172,6 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) description (str): The description of the creative. [optional] # noqa: E501 - format (str): The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\". [optional] # noqa: E501 - dataset_id (str): Dataset linked to the Creative. [optional] # noqa: E501 image_write_attributes (ImageWriteAttributes): [optional] # noqa: E501 html_tag_write_attributes (HtmlTagWriteAttributes): [optional] # noqa: E501 dynamic_write_attributes (DynamicWriteAttributes): [optional] # noqa: E501 @@ -202,6 +208,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.name = name + self.format = format + self.dataset_id = dataset_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -222,11 +230,13 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, name, *args, **kwargs): # noqa: E501 + def __init__(self, name, format, dataset_id, *args, **kwargs): # noqa: E501 """CreativeWrite - a model defined in OpenAPI Args: name (str): The name of the creative + format (str): The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" + dataset_id (str): Dataset linked to the Creative Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -260,8 +270,6 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) description (str): The description of the creative. [optional] # noqa: E501 - format (str): The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\". [optional] # noqa: E501 - dataset_id (str): Dataset linked to the Creative. [optional] # noqa: E501 image_write_attributes (ImageWriteAttributes): [optional] # noqa: E501 html_tag_write_attributes (HtmlTagWriteAttributes): [optional] # noqa: E501 dynamic_write_attributes (DynamicWriteAttributes): [optional] # noqa: E501 @@ -296,6 +304,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.name = name + self.format = format + self.dataset_id = dataset_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py index 03719cf1..9dba0b47 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py index fbcf3835..e92e781a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/creative_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py index 7da26885..6ddf47c9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py index 1b891cb0..0b6cb7ab 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py index c1c8cc37..f7d80f8c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/criteo_api_warning_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py index 4d2bbb5d..464dd377 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/custom_attribute.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py index 5511ce5e..99a13c8a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dataset.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py index 993baba8..bdec374f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/deal_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py index 899bd1d5..e235ccbb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_audience_contact_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py index 65b62f92..5e8906cb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py index 36df359f..880b5721 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py index 6b46062b..44a8b45d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/delete_user_profile_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py index 110f3db1..a0d93e8e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py index 21eaac97..fa630ac8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -55,10 +55,15 @@ class DynamicWriteAttributes(ModelNormal): """ allowed_values = { + ('product_image_display',): { + 'SHOWFULLIMAGE': "ShowFullImage", + 'ZOOMONIMAGE': "ZoomOnImage", + }, } validations = { ('calls_to_action',): { + 'min_items': 1, }, } @@ -84,12 +89,12 @@ def openapi_types(): """ return { 'logo_base64_string': (str,), # noqa: E501 - 'creative_background_color': (str,), # noqa: E501 'body_text_color': (str,), # noqa: E501 'prices_color': (str,), # noqa: E501 - 'primary_font': (str,), # noqa: E501 'calls_to_action': ([str],), # noqa: E501 'product_image_display': (str,), # noqa: E501 + 'creative_background_color': (str,), # noqa: E501 + 'primary_font': (str,), # noqa: E501 } @cached_property @@ -99,12 +104,12 @@ def discriminator(): attribute_map = { 'logo_base64_string': 'logoBase64String', # noqa: E501 - 'creative_background_color': 'creativeBackgroundColor', # noqa: E501 'body_text_color': 'bodyTextColor', # noqa: E501 'prices_color': 'pricesColor', # noqa: E501 - 'primary_font': 'primaryFont', # noqa: E501 'calls_to_action': 'callsToAction', # noqa: E501 'product_image_display': 'productImageDisplay', # noqa: E501 + 'creative_background_color': 'creativeBackgroundColor', # noqa: E501 + 'primary_font': 'primaryFont', # noqa: E501 } read_only_vars = { @@ -114,9 +119,16 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, logo_base64_string, body_text_color, prices_color, calls_to_action, product_image_display, *args, **kwargs): # noqa: E501 """DynamicWriteAttributes - a model defined in OpenAPI + Args: + logo_base64_string (str): Logo image as a base-64 encoded string + body_text_color (str): Color of the creative's body text Valid hexadecimal RGB color (e.g. \"AB00FF\") + prices_color (str): Color of the creative's prices Valid hexadecimal RGB color (e.g. \"AB00FF\") + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -148,13 +160,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - logo_base64_string (str): Logo image as a base-64 encoded string. [optional] # noqa: E501 - creative_background_color (str): Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 - body_text_color (str): Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 - prices_color (str): Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + creative_background_color (str): Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\"). [optional] # noqa: E501 primary_font (str): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 - calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”.. [optional] # noqa: E501 - product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,6 +193,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.logo_base64_string = logo_base64_string + self.body_text_color = body_text_color + self.prices_color = prices_color + self.calls_to_action = calls_to_action + self.product_image_display = product_image_display for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -206,9 +218,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, logo_base64_string, body_text_color, prices_color, calls_to_action, product_image_display, *args, **kwargs): # noqa: E501 """DynamicWriteAttributes - a model defined in OpenAPI + Args: + logo_base64_string (str): Logo image as a base-64 encoded string + body_text_color (str): Color of the creative's body text Valid hexadecimal RGB color (e.g. \"AB00FF\") + prices_color (str): Color of the creative's prices Valid hexadecimal RGB color (e.g. \"AB00FF\") + calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. + product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -240,13 +259,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - logo_base64_string (str): Logo image as a base-64 encoded string. [optional] # noqa: E501 - creative_background_color (str): Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 - body_text_color (str): Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 - prices_color (str): Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\"). [optional] # noqa: E501 + creative_background_color (str): Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\"). [optional] # noqa: E501 primary_font (str): Font of the primary font Valid supported font like \"Arial\". [optional] # noqa: E501 - calls_to_action ([str]): A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”.. [optional] # noqa: E501 - product_image_display (str): Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -276,6 +290,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.logo_base64_string = logo_base64_string + self.body_text_color = body_text_color + self.prices_color = prices_color + self.calls_to_action = calls_to_action + self.product_image_display = product_image_display for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py index 18ab4754..6603ecfc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_filter.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py index 5590ec18..5b2c29e8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_of_portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py index 9dbbf628..ab8a2910 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_dataset.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py index d9f57470..533c3655 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_v2_of_object.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py index cce68a0a..036fab86 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/entity_wrapper_of_targeting_entity.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py index 3a7d6e71..bfc71528 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py index e751e7b5..cea69fd1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/error_description.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py index d6fb93df..0ca93e8f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_column.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -105,6 +105,19 @@ class ExportColumn(ModelNormal): 'ADFORMAT': "AdFormat", 'DISPLAYSIZE': "DisplaySize", 'VIDEOPLAYERRATIO': "VideoPlayerRatio", + 'TOP30BRANDSBYDISPLAYS': "Top30BrandsByDisplays", + 'TOP30BRANDSBYCLICKS': "Top30BrandsByClicks", + 'TOP30BRANDSBYSALES': "Top30BrandsBySales", + 'TOP30INTERESTSBYDISPLAYS': "Top30InterestsByDisplays", + 'TOP30INTERESTSBYCLICKS': "Top30InterestsByClicks", + 'TOP30INTERESTSBYSALES': "Top30InterestsBySales", + 'COUNTRY': "Country", + 'REGION': "Region", + 'POSTALCODE': "PostalCode", + 'USERBEHAVIOR': "UserBehavior", + 'ENVIRONMENT': "Environment", + 'ADCHANNEL': "AdChannel", + 'ADSOCIALNETWORK': "AdSocialNetwork", }, } diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py index 183d5774..f4595167 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_meta_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py index 53941853..c52cca4a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py index 7f7f9d9d..c6be8838 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/export_result_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py index e0da26e1..5a2f0f2e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/fail_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py index de971d46..d1fe1051 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py index 9aac4857..2dcb378a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -189,8 +189,8 @@ def _from_openapi_data(cls, start_date, end_date, advertiser_id, dimension, metr timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] # noqa: E501 currency (str): The currency used for the report. ISO 4217 code (three-letter capitals).. [optional] # noqa: E501 ad_set_ids ([str]): The list of adSets ids. If empty, all the adSets will be fetched.. [optional] # noqa: E501 - audience_ids ([str]): The list of Audiences ids. If empty, all the Audiences will be fetched. [optional] # noqa: E501 - segments_ids ([str]): The list of Segments ids. If empty, all the segments will be fetched. [optional] # noqa: E501 + audience_ids ([str]): The list of Audiences ids. If empty, all the Audiences will be fetched.. [optional] # noqa: E501 + segments_ids ([str]): The list of Segments ids. If empty, all the segments will be fetched.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -291,8 +291,8 @@ def __init__(self, start_date, end_date, advertiser_id, dimension, metrics, *arg timezone (str): The timezone used for the report. Timezone Database format (Tz).. [optional] # noqa: E501 currency (str): The currency used for the report. ISO 4217 code (three-letter capitals).. [optional] # noqa: E501 ad_set_ids ([str]): The list of adSets ids. If empty, all the adSets will be fetched.. [optional] # noqa: E501 - audience_ids ([str]): The list of Audiences ids. If empty, all the Audiences will be fetched. [optional] # noqa: E501 - segments_ids ([str]): The list of Segments ids. If empty, all the segments will be fetched. [optional] # noqa: E501 + audience_ids ([str]): The list of Audiences ids. If empty, all the Audiences will be fetched.. [optional] # noqa: E501 + segments_ids ([str]): The list of Segments ids. If empty, all the segments will be fetched.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py index cd08cecd..34bf6fb0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_audience_performance_report_request_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py index a9cefbe5..b43a0df2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py index d9e4b98c..5b7717a3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py index 938ca351..2f301138 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_categories_report_request_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py index 3f0b259c..7ffe96ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py index 0222aa8a..ddc08494 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py index 4f13eebe..e940e212 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_creatives_report_request_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py index df63db2e..c6471307 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py index cd376e94..6984188f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -89,6 +89,13 @@ class GenerateStatisticsReportRequestAttributes(ModelNormal): 'ADFORMAT': "AdFormat", 'DISPLAYSIZE': "DisplaySize", 'VIDEOPLAYERRATIO': "VideoPlayerRatio", + 'COUNTRY': "Country", + 'REGION': "Region", + 'POSTALCODE': "PostalCode", + 'USERBEHAVIOR': "UserBehavior", + 'ENVIRONMENT': "Environment", + 'ADCHANNEL': "AdChannel", + 'ADSOCIALNETWORK': "AdSocialNetwork", }, ('metrics',): { 'CLICKS': "Clicks", @@ -308,6 +315,54 @@ class GenerateStatisticsReportRequestAttributes(ModelNormal): 'INVALIDDISPLAYS': "InvalidDisplays", 'RESULTTYPE': "ResultType", 'COSTPERQUALIFIEDVISIT': "CostPerQualifiedVisit", + 'COSTPERVISITPV1D': "CostPerVisitPV1D", + 'VISITSPV1D': "VisitsPV1D", + 'ASSISTSPC30DCLIENTATTRIBUTION': "AssistsPc30dClientAttribution", + 'ASSISTSALLPC30DCLIENTATTRIBUTION': "AssistsAllPc30dClientAttribution", + 'ASSISTSCLIENTATTRIBUTION': "AssistsClientAttribution", + 'ASSISTSALLCLIENTATTRIBUTION': "AssistsAllClientAttribution", + 'ASSISTSPC30D': "AssistsPc30d", + 'ASSISTSALLPC30D': "AssistsAllPc30d", + 'ASSISTSPC1D': "AssistsPc1d", + 'ASSISTSALLPC1D': "AssistsAllPc1d", + 'ASSISTSPC7D': "AssistsPc7d", + 'ASSISTSALLPC7D': "AssistsAllPc7d", + 'ASSISTSPC7DPV24': "AssistsPc7dPv24", + 'ASSISTSALLPC7DPV24': "AssistsAllPc7dPv24", + 'ASSISTSPC7DPV24H': "AssistsPc7dPv24h", + 'ASSISTSALLPC7DPV24H': "AssistsAllPc7dPv24h", + 'ASSISTSPV24H': "AssistsPv24h", + 'ASSISTSALLPV24H': "AssistsAllPv24h", + 'ASSISTSPC30PV24': "AssistsPc30Pv24", + 'ASSISTSALLPC30PV24': "AssistsAllPc30Pv24", + 'ASSISTSPC30DPV24H': "AssistsPc30dPv24h", + 'ASSISTSALLPC30DPV24H': "AssistsAllPc30dPv24h", + 'ASSISTSPIPC': "AssistsPiPc", + 'ASSISTSPIPV': "AssistsPiPv", + 'ASSISTSPIPCPV': "AssistsPiPcPv", + 'ASSISTSSALESRATIOPC30DCLIENTATTRIBUTION': "AssistsSalesRatioPc30dClientAttribution", + 'ASSISTSSALESRATIOALLPC30DCLIENTATTRIBUTION': "AssistsSalesRatioAllPc30dClientAttribution", + 'ASSISTSSALESRATIOCLIENTATTRIBUTION': "AssistsSalesRatioClientAttribution", + 'ASSISTSSALESRATIOALLCLIENTATTRIBUTION': "AssistsSalesRatioAllClientAttribution", + 'ASSISTSSALESRATIOPC30D': "AssistsSalesRatioPc30d", + 'ASSISTSSALESRATIOALLPC30D': "AssistsSalesRatioAllPc30d", + 'ASSISTSSALESRATIOPC1D': "AssistsSalesRatioPc1d", + 'ASSISTSSALESRATIOALLPC1D': "AssistsSalesRatioAllPc1d", + 'ASSISTSSALESRATIOPC7D': "AssistsSalesRatioPc7d", + 'ASSISTSSALESRATIOALLPC7D': "AssistsSalesRatioAllPc7d", + 'ASSISTSSALESRATIOPC7DPV24': "AssistsSalesRatioPc7dPv24", + 'ASSISTSSALESRATIOALLPC7DPV24': "AssistsSalesRatioAllPc7dPv24", + 'ASSISTSSALESRATIOPC7DPV24H': "AssistsSalesRatioPc7dPv24h", + 'ASSISTSSALESRATIOALLPC7DPV24H': "AssistsSalesRatioAllPc7dPv24h", + 'ASSISTSSALESRATIOPV24H': "AssistsSalesRatioPv24h", + 'ASSISTSSALESRATIOALLPV24H': "AssistsSalesRatioAllPv24h", + 'ASSISTSSALESRATIOPC30PV24': "AssistsSalesRatioPc30Pv24", + 'ASSISTSSALESRATIOALLPC30PV24': "AssistsSalesRatioAllPc30Pv24", + 'ASSISTSSALESRATIOPC30DPV24H': "AssistsSalesRatioPc30dPv24h", + 'ASSISTSSALESRATIOALLPC30DPV24H': "AssistsSalesRatioAllPc30dPv24h", + 'ASSISTSSALESRATIOPIPC': "AssistsSalesRatioPiPc", + 'ASSISTSSALESRATIOPIPV': "AssistsSalesRatioPiPv", + 'ASSISTSSALESRATIOPIPCPV': "AssistsSalesRatioPiPcPv", }, } diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py index 33a2b73d..16b3426b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_statistics_report_request_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py index 1b624a0b..b73d6abc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py index 804215aa..1bd1ca8b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py index a2328d57..a3dd3cf4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/generate_top_products_report_request_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py index 633e6a22..bdaf2d21 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/get_portfolio_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py index 53477102..fe3cdf70 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py index dbf12142..c56c40bf 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -108,9 +108,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, tags, *args, **kwargs): # noqa: E501 """HtmlTagWriteAttributes - a model defined in OpenAPI + Args: + tags ([Tag]): An array containing the html tags + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -142,7 +145,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - tags ([Tag]): An array containing the html tags. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -174,6 +176,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.tags = tags for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -194,9 +197,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, tags, *args, **kwargs): # noqa: E501 """HtmlTagWriteAttributes - a model defined in OpenAPI + Args: + tags ([Tag]): An array containing the html tags + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -228,7 +234,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - tags ([Tag]): An array containing the html tags. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -258,6 +263,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.tags = tags for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py index 8d909acb..20d1e47b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py index 7b917df7..184b8184 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py index f4f7492d..b894b393 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_set_base64.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -59,6 +59,7 @@ class ImageSetBase64(ModelNormal): validations = { ('image_base64_strings',): { + 'min_items': 1, }, } diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py index 4f65008c..09e2d167 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_shape.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py index 4ae1958a..3c9513d6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_slide.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py index e92b0e7a..bece1344 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/image_write_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -59,6 +59,7 @@ class ImageWriteAttributes(ModelNormal): validations = { ('base64_strings',): { + 'min_items': 1, }, } @@ -104,9 +105,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, base64_strings, landing_page_url, *args, **kwargs): # noqa: E501 """ImageWriteAttributes - a model defined in OpenAPI + Args: + base64_strings ([str]): Array of images as a base-64 encoded string + landing_page_url (str): Web redirection of the landing page url + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -138,8 +143,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - base64_strings ([str]): Array of images as a base-64 encoded string. [optional] # noqa: E501 - landing_page_url (str): Web redirection of the landing page url. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -171,6 +174,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.base64_strings = base64_strings + self.landing_page_url = landing_page_url for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -191,9 +196,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, base64_strings, landing_page_url, *args, **kwargs): # noqa: E501 """ImageWriteAttributes - a model defined in OpenAPI + Args: + base64_strings ([str]): Array of images as a base-64 encoded string + landing_page_url (str): Web redirection of the landing page url + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -225,8 +234,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - base64_strings ([str]): Array of images as a base-64 encoded string. [optional] # noqa: E501 - landing_page_url (str): Web redirection of the landing page url. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -256,6 +263,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.base64_strings = base64_strings + self.landing_page_url = landing_page_url for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py index a2e9ce97..257c02e9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py index b8a510fe..b9637b11 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class InMarketAudienceSegmentBrandEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py index 443b4a4d..4c04b73a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_brand_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py index 0afbd34f..4f5b8b40 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py index 3021b5de..5c24ca18 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,12 +64,6 @@ class InMarketAudienceSegmentInterestEntityV1ListResponse(ModelNormal): } validations = { - ('data',): { - }, - ('warnings',): { - }, - ('errors',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py index 2336846d..fdbe10a3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_audience_segment_interest_entity_v1_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py index 50d02059..4e37417e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_create_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -133,9 +133,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, country, *args, **kwargs): # noqa: E501 """InMarketCreateV1 - a model defined in OpenAPI + Args: + country (str): Reach people of a specific country + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -167,12 +170,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - country (str): [optional] # noqa: E501 - buying_power ([str]): [optional] # noqa: E501 - gender (str): [optional] # noqa: E501 - interest_ids ([str]): [optional] # noqa: E501 - brand_ids ([str]): [optional] # noqa: E501 - price_range ([str]): [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -204,6 +206,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.country = country for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -224,9 +227,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, country, *args, **kwargs): # noqa: E501 """InMarketCreateV1 - a model defined in OpenAPI + Args: + country (str): Reach people of a specific country + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -258,12 +264,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - country (str): [optional] # noqa: E501 - buying_power ([str]): [optional] # noqa: E501 - gender (str): [optional] # noqa: E501 - interest_ids ([str]): [optional] # noqa: E501 - brand_ids ([str]): [optional] # noqa: E501 - price_range ([str]): [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 + gender (str): Reach people who’ve shown interest in products made for a specific gender. [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -293,6 +298,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.country = country for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py index c8dfff0e..4f95eaa4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_size_estimation_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -133,9 +133,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, country, *args, **kwargs): # noqa: E501 """InMarketSizeEstimationV1 - a model defined in OpenAPI + Args: + country (str): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -167,7 +170,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - country (str): [optional] # noqa: E501 buying_power ([str]): [optional] # noqa: E501 gender (str): [optional] # noqa: E501 interest_ids ([str]): [optional] # noqa: E501 @@ -204,6 +206,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.country = country for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -224,9 +227,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, country, *args, **kwargs): # noqa: E501 """InMarketSizeEstimationV1 - a model defined in OpenAPI + Args: + country (str): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -258,7 +264,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - country (str): [optional] # noqa: E501 buying_power ([str]): [optional] # noqa: E501 gender (str): [optional] # noqa: E501 interest_ids ([str]): [optional] # noqa: E501 @@ -293,6 +298,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.country = country for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py index 97d04151..27ac3af2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_update_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -169,12 +169,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - country (str): [optional] # noqa: E501 - buying_power ([str]): [optional] # noqa: E501 + country (str): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 gender (NillableGenderV1): [optional] # noqa: E501 - interest_ids ([str]): [optional] # noqa: E501 - brand_ids ([str]): [optional] # noqa: E501 - price_range ([str]): [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -260,12 +260,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - country (str): [optional] # noqa: E501 - buying_power ([str]): [optional] # noqa: E501 + country (str): Reach people of a specific country. [optional] # noqa: E501 + buying_power ([str]): Reach people who frequently purchase high price range items to lower price range items. [optional] # noqa: E501 gender (NillableGenderV1): [optional] # noqa: E501 - interest_ids ([str]): [optional] # noqa: E501 - brand_ids ([str]): [optional] # noqa: E501 - price_range ([str]): [optional] # noqa: E501 + interest_ids ([str]): Reach new people based on their interests. [optional] # noqa: E501 + brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501 + price_range ([str]): Reach people who’ve shown interest in products within a specific price range. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py index fb4e50a5..c8c224cd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/in_market_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py index d55bdb37..a0529c97 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/installment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py index 8242948e..956bb1d5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/json_report_rows.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py index 3a89107d..9b256c3d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/list_available_industries_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,10 +30,10 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.criteo_api_error_v2 import CriteoApiErrorV2 + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.criteo_api_warning_v2 import CriteoApiWarningV2 from criteo_api_marketingsolutions_preview.model.entity_v2_of_object import EntityV2OfObject - globals()['CriteoApiErrorV2'] = CriteoApiErrorV2 + globals()['CommonProblem'] = CommonProblem globals()['CriteoApiWarningV2'] = CriteoApiWarningV2 globals()['EntityV2OfObject'] = EntityV2OfObject @@ -98,7 +98,7 @@ def openapi_types(): lazy_import() return { 'data': ([EntityV2OfObject],), # noqa: E501 - 'errors': ([CriteoApiErrorV2],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 'warnings': ([CriteoApiWarningV2],), # noqa: E501 } @@ -155,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([EntityV2OfObject]): The response�s primary data. [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ @@ -243,7 +243,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data ([EntityV2OfObject]): The response�s primary data. [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py index 6643a888..9c7e4664 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_create_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class LocationCreateV1(ModelNormal): } validations = { - ('points_of_interest',): { - }, } @cached_property @@ -110,9 +108,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 """LocationCreateV1 - a model defined in OpenAPI + Args: + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates + radius_in_km (int): The expected maximum distance in kilometers between a user and a point of interest + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -144,8 +146,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - points_of_interest ([PointOfInterestV1]): [optional] # noqa: E501 - radius_in_km (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,6 +177,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,9 +199,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 """LocationCreateV1 - a model defined in OpenAPI + Args: + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates + radius_in_km (int): The expected maximum distance in kilometers between a user and a point of interest + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -231,8 +237,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - points_of_interest ([PointOfInterestV1]): [optional] # noqa: E501 - radius_in_km (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -262,6 +266,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py index 9cc3c0dd..855a46e5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_size_estimation_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -62,8 +62,6 @@ class LocationSizeEstimationV1(ModelNormal): } validations = { - ('points_of_interest',): { - }, } @cached_property @@ -110,9 +108,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 """LocationSizeEstimationV1 - a model defined in OpenAPI + Args: + points_of_interest ([PointOfInterestV1]): + radius_in_km (int): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -144,8 +146,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - points_of_interest ([PointOfInterestV1]): [optional] # noqa: E501 - radius_in_km (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,6 +177,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,9 +199,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, points_of_interest, radius_in_km, *args, **kwargs): # noqa: E501 """LocationSizeEstimationV1 - a model defined in OpenAPI + Args: + points_of_interest ([PointOfInterestV1]): + radius_in_km (int): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -231,8 +237,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - points_of_interest ([PointOfInterestV1]): [optional] # noqa: E501 - radius_in_km (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -262,6 +266,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.points_of_interest = points_of_interest + self.radius_in_km = radius_in_km for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py index a6df1d72..88f4ccf6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_update_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -65,8 +65,6 @@ class LocationUpdateV1(ModelNormal): } validations = { - ('points_of_interest',): { - }, } @cached_property @@ -149,9 +147,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - points_of_interest ([PointOfInterestV1]): [optional] # noqa: E501 + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 radius_in_km (int): Radius in kilometers. [optional] # noqa: E501 - registry_type (str): [optional] if omitted the server will use the default value of "PointOfInterest" # noqa: E501 + registry_type (str): The kind of Location audience. [optional] if omitted the server will use the default value of "PointOfInterest" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -237,9 +235,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - points_of_interest ([PointOfInterestV1]): [optional] # noqa: E501 + points_of_interest ([PointOfInterestV1]): Reach users which have been historically located in the given coordinates. [optional] # noqa: E501 radius_in_km (int): Radius in kilometers. [optional] # noqa: E501 - registry_type (str): [optional] if omitted the server will use the default value of "PointOfInterest" # noqa: E501 + registry_type (str): The kind of Location audience. [optional] if omitted the server will use the default value of "PointOfInterest" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py index 2832fbc4..a20fa108 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/location_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -66,8 +66,6 @@ class LocationV1(ModelNormal): } validations = { - ('points_of_interest',): { - }, } @cached_property diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py index 41c23fee..94fbe155 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_create_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -102,9 +102,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, seed_segment_id, *args, **kwargs): # noqa: E501 """LookalikeCreateV1 - a model defined in OpenAPI + Args: + seed_segment_id (str): Segment from which the Lookalike segment will be generated + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -136,8 +139,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - seed_segment_id (str): [optional] # noqa: E501 - target_size (int): [optional] # noqa: E501 + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -169,6 +171,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.seed_segment_id = seed_segment_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -189,9 +192,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, seed_segment_id, *args, **kwargs): # noqa: E501 """LookalikeCreateV1 - a model defined in OpenAPI + Args: + seed_segment_id (str): Segment from which the Lookalike segment will be generated + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -223,8 +229,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - seed_segment_id (str): [optional] # noqa: E501 - target_size (int): [optional] # noqa: E501 + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -254,6 +259,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.seed_segment_id = seed_segment_id for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py index fee80674..26eaf4e3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_update_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -134,7 +134,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - target_size (int): [optional] # noqa: E501 + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,7 +220,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - target_size (int): [optional] # noqa: E501 + target_size (int): Desired size of the generated Lookalike segment. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py index caff654b..68bccf09 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/lookalike_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py index d6513a30..bd827301 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/loyalty_points.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py index eb98868f..8c499b82 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py index 11c6e6ea..987d79ea 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py index 1c26558b..071e7fa6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/marketing_solutions_report_status_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py index 0aefa043..1c9350e2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/modify_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py index f2d18106..1c6d58bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py index 5c5d1d97..f850f391 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py index 4ae17601..52c565bd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_ad_set_targeting_rule_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py index 346655e8..c46f1ae6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_date_time.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py index a5ebb5fd..f19c9773 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_decimal.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py index dcf24b3e..57ac8c24 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_gender_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py new file mode 100644 index 00000000..7c4fdf34 --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_int32.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError + + + +class NillableInt32(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'value': 'value', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """NillableInt32 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (int): The value. If missing or null the value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """NillableInt32 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + value (int): The value. If missing or null the value is set to \"null\". [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py index cf65186d..d06a40b2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/nillable_string.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py index ebc3eb48..36f5c94e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py index f9c4f0e1..261e042d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py index e827775b..9e13790f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py index 51149388..31e7bafd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py index acbfbd92..7d488c67 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_node.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py index 209a9afd..f29bb5fb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py index e4ec7f93..cc1538eb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py index cc91023a..413715e1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ok_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ok_response.py index a0ef520a..3fd39de1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ok_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/ok_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py index 18cfda24..01f316d5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -59,6 +59,11 @@ class OnSiteRecoRequest(ModelNormal): """ allowed_values = { + ('identity_type',): { + 'CTOBUNDLE': "CtoBundle", + 'IDFA': "Idfa", + 'GAID': "Gaid", + }, } validations = { @@ -90,6 +95,7 @@ def openapi_types(): 'nb_requested_products': (int,), # noqa: E501 'partner_id': (int,), # noqa: E501 'user_id': (str,), # noqa: E501 + 'identity_type': (str,), # noqa: E501 'user_events': ([UserEvent],), # noqa: E501 'ad_set_id': (int,), # noqa: E501 } @@ -103,6 +109,7 @@ def discriminator(): 'nb_requested_products': 'nbRequestedProducts', # noqa: E501 'partner_id': 'partnerId', # noqa: E501 'user_id': 'userId', # noqa: E501 + 'identity_type': 'identityType', # noqa: E501 'user_events': 'userEvents', # noqa: E501 'ad_set_id': 'adSetId', # noqa: E501 } @@ -153,6 +160,7 @@ def _from_openapi_data(cls, nb_requested_products, partner_id, *args, **kwargs): through its discriminator because we passed in _visited_composed_classes = (Animal,) user_id (str): Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed.. [optional] # noqa: E501 + identity_type (str): Type of the user identifier (cto_bundle, Idfa, Gaid...) Optional if UserId is not set or if its type is cto_bundle. [optional] # noqa: E501 user_events ([UserEvent]): Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed.. [optional] # noqa: E501 ad_set_id (int): Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured.. [optional] # noqa: E501 """ @@ -247,6 +255,7 @@ def __init__(self, nb_requested_products, partner_id, *args, **kwargs): # noqa: through its discriminator because we passed in _visited_composed_classes = (Animal,) user_id (str): Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed.. [optional] # noqa: E501 + identity_type (str): Type of the user identifier (cto_bundle, Idfa, Gaid...) Optional if UserId is not set or if its type is cto_bundle. [optional] # noqa: E501 user_events ([UserEvent]): Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed.. [optional] # noqa: E501 ad_set_id (int): Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured.. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py index 3acf9677..3f47c63f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/on_site_reco_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py index 46218a54..639e0914 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/outcome.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py index 718144b1..c47f3ec3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding.py index 69858e81..f6a16083 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py index d4a7a6b8..c296e064 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py index 06362183..103f7918 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py index d9bec227..68f19960 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py index 7d6ddcdb..bcffa60b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py index 873d680a..15546751 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py index 7ced78bc..91ff3005 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_category_bid_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py index bcf5c983..6dc74a4f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py index 8af0e233..13c6afa6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py index c57c6832..0891aa2a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py index ce818a81..18cdeddb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py index 604feaeb..60a6c887 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_display_multiplier_result_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling.py index e4e3d18a..3bb83ca3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_ad_set_scheduling.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py index d034a480..b2ad2cd8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py index f5a1c40d..cd97f474 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py index 7d462ab6..1572b486 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_spend_limit.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py index ce8367c1..9451f50f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_campaign_write_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py index 4e59a2a1..05c35ded 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py index 9c956ba7..3af52027 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/patch_result_campaign_read_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py index 919f80c0..636ad2c5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py index e94c79f9..93120a67 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py index 7924b18c..9c8040fa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/placements_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py index ecf5f858..4d62445d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/point_of_interest_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py index 7391ac18..2952cf13 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/portfolio_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_error.py index 63c0ebba..2c467159 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py index 08fb78e7..68078478 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_fail_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py index fc521c1b..632fe996 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/preview_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py index 38c088ef..4e86fa8d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/price.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py index 715519be..67e1b5fd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py index cb5be1c5..ef34a1ed 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/problems_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py index 36ed505b..8ec7c5d6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py index 0f66715a..32a7d6a7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py index 88e51caf..5d8bc4dd 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_importer_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py index 922bb4a8..c6b18b0e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_preview.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_preview.py index 0048ff80..75846f54 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_preview.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py index 4e21906c..a431051d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_rule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -64,6 +64,7 @@ class ProductSetRule(ModelNormal): 'GREATERTHAN': "GreaterThan", }, ('field',): { + 'OBSOLETE_EXTRADATA': "OBSOLETE_Extradata", 'CATEGORY1': "Category1", 'CATEGORY2': "Category2", 'CATEGORY3': "Category3", diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py index b9ca3c05..bb1cc82f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py index e5fa6c77..2ae89bbe 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_set_statistics_query.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py index a0ac728a..c4785ada 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py index 5d1f2054..61d50817 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_dimension.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py index e90faa94..4d6231a1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_shipping_weight.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py index a2558c8c..cadd53e6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_tax.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py index 9f5835d5..bfc75030 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_base_measure.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py index 06c3bcf2..500ad85c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/product_unit_pricing_measure.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py index 23baae7c..ccd03b22 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py index b56b61a4..c899783f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/products_custom_batch_request_entry.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py new file mode 100644 index 00000000..f2516e87 --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_create_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError + + + +class ProspectingCreateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('users_type',): { + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'users_type': (str,), # noqa: E501 + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'users_type': 'usersType', # noqa: E501 + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, users_type, *args, **kwargs): # noqa: E501 + """ProspectingCreateV1 - a model defined in OpenAPI + + Args: + users_type (str): Type of users to target + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.users_type = users_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, users_type, *args, **kwargs): # noqa: E501 + """ProspectingCreateV1 - a model defined in OpenAPI + + Args: + users_type (str): Type of users to target + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.users_type = users_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py new file mode 100644 index 00000000..bf8782ea --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_update_v1.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_preview.model.nillable_int32 import NillableInt32 + globals()['NillableInt32'] = NillableInt32 + + +class ProspectingUpdateV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('users_type',): { + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'days_since_last_visit_min': (NillableInt32,), # noqa: E501 + 'days_since_last_visit_max': (NillableInt32,), # noqa: E501 + 'users_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + 'users_type': 'usersType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProspectingUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (NillableInt32): [optional] # noqa: E501 + days_since_last_visit_max (NillableInt32): [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProspectingUpdateV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (NillableInt32): [optional] # noqa: E501 + days_since_last_visit_max (NillableInt32): [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py new file mode 100644 index 00000000..c21e2097 --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/prospecting_v1.py @@ -0,0 +1,276 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError + + + +class ProspectingV1(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('users_type',): { + 'UNKNOWN': "Unknown", + 'PROSPECTS': "Prospects", + 'PROSPECTSORNONBUYERS': "ProspectsOrNonBuyers", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'days_since_last_visit_min': (int,), # noqa: E501 + 'days_since_last_visit_max': (int,), # noqa: E501 + 'users_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'days_since_last_visit_min': 'daysSinceLastVisitMin', # noqa: E501 + 'days_since_last_visit_max': 'daysSinceLastVisitMax', # noqa: E501 + 'users_type': 'usersType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProspectingV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProspectingV1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + days_since_last_visit_min (int): When non buyers are included, include users who visited your website before this number of days. [optional] # noqa: E501 + days_since_last_visit_max (int): When non buyers are included, include users who visited your website after this number of days. [optional] # noqa: E501 + users_type (str): Type of users to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py index f490ee6b..ee6659f9 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding.py index f6e5c522..9f1cb378 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v23_q1.py index acedfc37..c21282cb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_bidding_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py index 1087fe3a..552907d4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py index 05cceb21..efe05014 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_budget_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py index ea7f67c8..1b27a923 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py index 6099f7fc..364c602a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_schedule_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py index 004b733f..b10570c8 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_ad_set_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py index 3441f7f0..f1d4ae28 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set.py index 0e1498e1..4bfee82f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v23_q1.py index 20a908cf..421c76aa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/read_model_read_ad_set_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py index 72581b9b..93fe20f4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/recommended_product.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py index 10b8d0de..d698aedc 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py index 729757ad..d4c88b18 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py index fe494153..7ba8ec2f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_detail_errors.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_entity_message.py index 6f21f8eb..d3ead33e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py index 0b7ad19c..7162f463 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/report_ok_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py index 245f7b5e..889ae1ae 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py index afe6b3fb..a4d4b489 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/requests_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py index 2d278fc3..7adc6df4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_product_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py index 4a8018fc..ee7eb67b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_of_product_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py index 70e991fc..d065cce2 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/resource_outcome_of_product_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py index 3e15485a..e31e75ea 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py index 3788b2fb..3916d27f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py index 6be96d2a..29ed1eba 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/response_read_ad_set_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py index 83e1993d..cfdf07c4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py index c883272f..38f2230c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/responses_read_ad_set_v23_q1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py index 1edff567..2810869c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_create_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -109,9 +109,14 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, visitors_type, days_since_last_visit_min, days_since_last_visit_max, *args, **kwargs): # noqa: E501 """RetargetingCreateV1 - a model defined in OpenAPI + Args: + visitors_type (str): Types of visitors. + days_since_last_visit_min (int): Minimum number of days since last visit to partner. + days_since_last_visit_max (int): Maximum number of days since last visit to partner. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -143,9 +148,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - visitors_type (str): [optional] # noqa: E501 - days_since_last_visit_min (int): [optional] # noqa: E501 - days_since_last_visit_max (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,6 +179,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.visitors_type = visitors_type + self.days_since_last_visit_min = days_since_last_visit_min + self.days_since_last_visit_max = days_since_last_visit_max for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -197,9 +202,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, visitors_type, days_since_last_visit_min, days_since_last_visit_max, *args, **kwargs): # noqa: E501 """RetargetingCreateV1 - a model defined in OpenAPI + Args: + visitors_type (str): Types of visitors. + days_since_last_visit_min (int): Minimum number of days since last visit to partner. + days_since_last_visit_max (int): Maximum number of days since last visit to partner. + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -231,9 +241,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - visitors_type (str): [optional] # noqa: E501 - days_since_last_visit_min (int): [optional] # noqa: E501 - days_since_last_visit_max (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,6 +270,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.visitors_type = visitors_type + self.days_since_last_visit_min = days_since_last_visit_min + self.days_since_last_visit_max = days_since_last_visit_max for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py index 251cd452..65d419ec 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_update_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -143,9 +143,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - visitors_type (str): [optional] # noqa: E501 - days_since_last_visit_min (int): [optional] # noqa: E501 - days_since_last_visit_max (int): [optional] # noqa: E501 + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -231,9 +231,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - visitors_type (str): [optional] # noqa: E501 - days_since_last_visit_min (int): [optional] # noqa: E501 - days_since_last_visit_max (int): [optional] # noqa: E501 + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py index aa028780..d1736cc6 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/retargeting_v1.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -144,9 +144,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - visitors_type (str): [optional] # noqa: E501 - days_since_last_visit_min (int): [optional] # noqa: E501 - days_since_last_visit_max (int): [optional] # noqa: E501 + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,9 +232,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - visitors_type (str): [optional] # noqa: E501 - days_since_last_visit_min (int): [optional] # noqa: E501 - days_since_last_visit_max (int): [optional] # noqa: E501 + visitors_type (str): Types of visitors.. [optional] # noqa: E501 + days_since_last_visit_min (int): Minimum number of days since last visit to partner.. [optional] # noqa: E501 + days_since_last_visit_max (int): Maximum number of days since last visit to partner.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py index 23c38d1b..1a0b09c1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/rules.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py index 64934305..2d751a9d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py index f47b3814..41a7f0a4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py index c0fe5aa6..d65401bb 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_deal_ids_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py index bcaa59a1..320f34a0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py index e74ec08f..49a8c67d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py index 3c4ac7d7..6b35be81 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py index 8aa9e997..64c55162 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py index bec78bcd..5614cfe7 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py index ac21a605..a9f104da 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py index af008ac1..00cf4e05 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/size.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py index 81320bb4..7e298d14 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_ok_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py index bbcf94a0..823d66a0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -84,6 +84,7 @@ def openapi_types(): 'start_date': (datetime,), # noqa: E501 'end_date': (datetime,), # noqa: E501 'total': (int,), # noqa: E501 + 'variant': (int,), # noqa: E501 'displayable': (int,), # noqa: E501 'non_displayable': (int,), # noqa: E501 'added': (int,), # noqa: E501 @@ -107,6 +108,7 @@ def discriminator(): 'start_date': 'startDate', # noqa: E501 'end_date': 'endDate', # noqa: E501 'total': 'total', # noqa: E501 + 'variant': 'variant', # noqa: E501 'displayable': 'displayable', # noqa: E501 'non_displayable': 'nonDisplayable', # noqa: E501 'added': 'added', # noqa: E501 @@ -128,15 +130,16 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, start_date, end_date, total, displayable, non_displayable, added, deleted, updated, blacklisted, out_of_stock, missing_image, missing_url, missing_price, missing_name, missing_description, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, start_date, end_date, total, variant, displayable, non_displayable, added, deleted, updated, blacklisted, out_of_stock, missing_image, missing_url, missing_price, missing_name, missing_description, *args, **kwargs): # noqa: E501 """StatisticsRecord - a model defined in OpenAPI Args: start_date (datetime): Start date of streaming products collection end_date (datetime): End date of streaming products collection total (int): The number of total products at endDate moment - displayable (int): The number of displayable products at endDate moment - non_displayable (int): The number of non displayable products at endDate moment + variant (int): The number of total variant products at endDate moment + displayable (int): The number of total displayable products at endDate moment + non_displayable (int): The number of total non-displayable products at endDate moment added (int): The number of inserted products during the period between startDate and endDate deleted (int): The number of deleted products during the period between startDate and endDate updated (int): The number of updated products during the period between startDate and endDate @@ -213,6 +216,7 @@ def _from_openapi_data(cls, start_date, end_date, total, displayable, non_displa self.start_date = start_date self.end_date = end_date self.total = total + self.variant = variant self.displayable = displayable self.non_displayable = non_displayable self.added = added @@ -245,15 +249,16 @@ def _from_openapi_data(cls, start_date, end_date, total, displayable, non_displa ]) @convert_js_args_to_python_args - def __init__(self, start_date, end_date, total, displayable, non_displayable, added, deleted, updated, blacklisted, out_of_stock, missing_image, missing_url, missing_price, missing_name, missing_description, *args, **kwargs): # noqa: E501 + def __init__(self, start_date, end_date, total, variant, displayable, non_displayable, added, deleted, updated, blacklisted, out_of_stock, missing_image, missing_url, missing_price, missing_name, missing_description, *args, **kwargs): # noqa: E501 """StatisticsRecord - a model defined in OpenAPI Args: start_date (datetime): Start date of streaming products collection end_date (datetime): End date of streaming products collection total (int): The number of total products at endDate moment - displayable (int): The number of displayable products at endDate moment - non_displayable (int): The number of non displayable products at endDate moment + variant (int): The number of total variant products at endDate moment + displayable (int): The number of total displayable products at endDate moment + non_displayable (int): The number of total non-displayable products at endDate moment added (int): The number of inserted products during the period between startDate and endDate deleted (int): The number of deleted products during the period between startDate and endDate updated (int): The number of updated products during the period between startDate and endDate @@ -328,6 +333,7 @@ def __init__(self, start_date, end_date, total, displayable, non_displayable, ad self.start_date = start_date self.end_date = end_date self.total = total + self.variant = variant self.displayable = displayable self.non_displayable = non_displayable self.added = added diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py index 78793670..29318db0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_record_list.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py index ddb73020..9f17d42c 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py index 4684e6e8..3f16ee4b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py index 93d65872..20f994fa 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py index 7d7e4e49..84df20b5 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/supply_vendor_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py index 0cd513f6..2be75f1b 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/tag.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py index 5fa89bf4..347a0199 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py index 68c9eb51..7190e49e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/target_type.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py index 0144b836..a3ad757e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_entity.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -59,6 +59,14 @@ class TargetingEntity(ModelNormal): """ allowed_values = { + ('type',): { + 'DOMAIN': "DOMAIN", + 'BUNDLE': "BUNDLE", + }, + ('mode',): { + 'BLOCKLIST': "BLOCKLIST", + 'ALLOWLIST': "ALLOWLIST", + }, } validations = { @@ -146,8 +154,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - type (str): Can be either domain or bundle. [optional] # noqa: E501 - mode (str): Can be either blocklist or allowlist. [optional] # noqa: E501 + type (str): Can be either DOMAIN or BUNDLE. [optional] # noqa: E501 + mode (str): Can be either BLOCKLIST or ALLOWLIST. [optional] # noqa: E501 data ([EntityFilter]): [optional] # noqa: E501 """ @@ -234,8 +242,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - type (str): Can be either domain or bundle. [optional] # noqa: E501 - mode (str): Can be either blocklist or allowlist. [optional] # noqa: E501 + type (str): Can be either DOMAIN or BUNDLE. [optional] # noqa: E501 + mode (str): Can be either BLOCKLIST or ALLOWLIST. [optional] # noqa: E501 data ([EntityFilter]): [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py index 6256316d..e536c06f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_error_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py index 1691cafc..affef0db 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/targeting_operator.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py index ee54f6bf..d135e13e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py index 4953e70c..d3f31e35 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py index d30312e7..51b836ec 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py index bfa8cdff..0292402f 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_query_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py index 486ab437..ebc3b39a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py index 2acd29fd..79b24b9d 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_data_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py index 91ed4fe6..3b8f6ac3 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_entity_message.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py index 29481e0a..e301a933 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/transparency_report_file.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py index e89651e5..8681e3be 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/unauthorized_response_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,10 +30,10 @@ def lazy_import(): - from criteo_api_marketingsolutions_preview.model.criteo_api_error_v2 import CriteoApiErrorV2 + from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem from criteo_api_marketingsolutions_preview.model.criteo_api_warning_v2 import CriteoApiWarningV2 from criteo_api_marketingsolutions_preview.model.entity_v2_of_object import EntityV2OfObject - globals()['CriteoApiErrorV2'] = CriteoApiErrorV2 + globals()['CommonProblem'] = CommonProblem globals()['CriteoApiWarningV2'] = CriteoApiWarningV2 globals()['EntityV2OfObject'] = EntityV2OfObject @@ -96,7 +96,7 @@ def openapi_types(): lazy_import() return { 'data': (EntityV2OfObject,), # noqa: E501 - 'errors': ([CriteoApiErrorV2],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 'warnings': ([CriteoApiWarningV2],), # noqa: E501 } @@ -153,7 +153,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (EntityV2OfObject): [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ @@ -241,7 +241,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) data (EntityV2OfObject): [optional] # noqa: E501 - errors ([CriteoApiErrorV2]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 + errors ([CommonProblem]): Error list returned by the Criteo API For successful requests it is empty. [optional] # noqa: E501 warnings ([CriteoApiWarningV2]): Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future.. [optional] # noqa: E501 """ diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py index ddd331de..acef4332 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py index 008012d8..3909aa11 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py index 653913c0..ebfae047 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/update_coupon_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py index c9a4e47f..1af2c373 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_def.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py index d0868be2..84e86975 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_event.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py index 596f9e2c..f0d1df18 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py index add4eabb..a21eeeb0 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/user_profile_identifier_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py index 02a3a051..6c87a266 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_input_of_create_product_set_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py new file mode 100644 index 00000000..eab8e557 --- /dev/null +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_advertiser_creation_input.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - MarketingSolutions # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_marketingsolutions_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_marketingsolutions_preview.model.advertiser_creation_input import AdvertiserCreationInput + globals()['AdvertiserCreationInput'] = AdvertiserCreationInput + + +class ValueResourceOfAdvertiserCreationInput(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AdvertiserCreationInput,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueResourceOfAdvertiserCreationInput - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AdvertiserCreationInput): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueResourceOfAdvertiserCreationInput - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AdvertiserCreationInput): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py index aff45464..dd6bfbd4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/value_resource_of_create_product_set_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py index 78b0b555..782a2b8a 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/video_detail.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py index f8625374..54cde246 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_ad_set_id.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set.py index f33b4d72..d38de027 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model/write_model_patch_ad_set.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py index ef84b5f8..05c0a81e 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py index 1c9d895a..cfc7d9e1 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/models/__init__.py @@ -183,7 +183,6 @@ from criteo_api_marketingsolutions_preview.model.creative_write_request import CreativeWriteRequest from criteo_api_marketingsolutions_preview.model.creative_write_resource import CreativeWriteResource from criteo_api_marketingsolutions_preview.model.criteo_api_error import CriteoApiError -from criteo_api_marketingsolutions_preview.model.criteo_api_error_v2 import CriteoApiErrorV2 from criteo_api_marketingsolutions_preview.model.criteo_api_warning import CriteoApiWarning from criteo_api_marketingsolutions_preview.model.criteo_api_warning_v2 import CriteoApiWarningV2 from criteo_api_marketingsolutions_preview.model.custom_attribute import CustomAttribute @@ -262,6 +261,7 @@ from criteo_api_marketingsolutions_preview.model.nillable_date_time import NillableDateTime from criteo_api_marketingsolutions_preview.model.nillable_decimal import NillableDecimal from criteo_api_marketingsolutions_preview.model.nillable_gender_v1 import NillableGenderV1 +from criteo_api_marketingsolutions_preview.model.nillable_int32 import NillableInt32 from criteo_api_marketingsolutions_preview.model.nillable_string import NillableString from criteo_api_marketingsolutions_preview.model.oci_brand_safety_response import OciBrandSafetyResponse from criteo_api_marketingsolutions_preview.model.oci_brand_safety_response_data import OciBrandSafetyResponseData @@ -322,6 +322,9 @@ from criteo_api_marketingsolutions_preview.model.product_unit_pricing_measure import ProductUnitPricingMeasure from criteo_api_marketingsolutions_preview.model.products_custom_batch_request import ProductsCustomBatchRequest from criteo_api_marketingsolutions_preview.model.products_custom_batch_request_entry import ProductsCustomBatchRequestEntry +from criteo_api_marketingsolutions_preview.model.prospecting_create_v1 import ProspectingCreateV1 +from criteo_api_marketingsolutions_preview.model.prospecting_update_v1 import ProspectingUpdateV1 +from criteo_api_marketingsolutions_preview.model.prospecting_v1 import ProspectingV1 from criteo_api_marketingsolutions_preview.model.read_ad_set import ReadAdSet from criteo_api_marketingsolutions_preview.model.read_ad_set_bidding import ReadAdSetBidding from criteo_api_marketingsolutions_preview.model.read_ad_set_bidding_v23_q1 import ReadAdSetBiddingV23Q1 @@ -393,6 +396,7 @@ from criteo_api_marketingsolutions_preview.model.user_profile_attribute_model import UserProfileAttributeModel from criteo_api_marketingsolutions_preview.model.user_profile_identifier_model import UserProfileIdentifierModel from criteo_api_marketingsolutions_preview.model.value_resource_input_of_create_product_set_request import ValueResourceInputOfCreateProductSetRequest +from criteo_api_marketingsolutions_preview.model.value_resource_of_advertiser_creation_input import ValueResourceOfAdvertiserCreationInput from criteo_api_marketingsolutions_preview.model.value_resource_of_create_product_set_request import ValueResourceOfCreateProductSetRequest from criteo_api_marketingsolutions_preview.model.video_detail import VideoDetail from criteo_api_marketingsolutions_preview.model.write_model_ad_set_id import WriteModelAdSetId diff --git a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py index 0ba49e85..6b86bdf4 100644 --- a/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py +++ b/sdks/marketingsolutions_preview/criteo_api_marketingsolutions_preview/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - MarketingSolutions # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/marketingsolutions_preview/docs/AdvertiserApi.md b/sdks/marketingsolutions_preview/docs/AdvertiserApi.md index 23fa619c..022871ee 100644 --- a/sdks/marketingsolutions_preview/docs/AdvertiserApi.md +++ b/sdks/marketingsolutions_preview/docs/AdvertiserApi.md @@ -139,13 +139,16 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = advertiser_api.AdvertiserApi(api_client) advertiser_creation_request = AdvertiserCreationRequest( - type="campaign", - data=AdvertiserCreationInput( - account_name="account_name_example", - website_url="website_url_example", - country_iso_code="country_iso_code_example", - currency_iso_code="currency_iso_code_example", - industry_id="industry_id_example", + data=ValueResourceOfAdvertiserCreationInput( + type="type_example", + attributes=AdvertiserCreationInput( + agency_id="agency_id_example", + account_name="account_name_example", + website_url="website_url_example", + country_iso_code="country_iso_code_example", + currency_iso_code="currency_iso_code_example", + industry_id="industry_id_example", + ), ), ) # AdvertiserCreationRequest | diff --git a/sdks/marketingsolutions_preview/docs/AdvertiserCreationInput.md b/sdks/marketingsolutions_preview/docs/AdvertiserCreationInput.md index a7755923..1d114958 100644 --- a/sdks/marketingsolutions_preview/docs/AdvertiserCreationInput.md +++ b/sdks/marketingsolutions_preview/docs/AdvertiserCreationInput.md @@ -1,10 +1,11 @@ # AdvertiserCreationInput -Infomation for creating an advertiser +Information for creating an advertiser ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**agency_id** | **str** | ID of the agency requesting the advertiser creation | **account_name** | **str** | The Account Name; This will not be in fact the Advertiser name | **website_url** | **str** | Website url | **country_iso_code** | **str** | Country ISO code | diff --git a/sdks/marketingsolutions_preview/docs/AdvertiserCreationRequest.md b/sdks/marketingsolutions_preview/docs/AdvertiserCreationRequest.md index ddd30c7b..91c2d266 100644 --- a/sdks/marketingsolutions_preview/docs/AdvertiserCreationRequest.md +++ b/sdks/marketingsolutions_preview/docs/AdvertiserCreationRequest.md @@ -5,8 +5,7 @@ Advertiser Creation Request ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | A string containing the entity type | -**data** | [**AdvertiserCreationInput**](AdvertiserCreationInput.md) | | [optional] +**data** | [**ValueResourceOfAdvertiserCreationInput**](ValueResourceOfAdvertiserCreationInput.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/AdvertiserCreationResponse.md b/sdks/marketingsolutions_preview/docs/AdvertiserCreationResponse.md index 7c45658b..80334fef 100644 --- a/sdks/marketingsolutions_preview/docs/AdvertiserCreationResponse.md +++ b/sdks/marketingsolutions_preview/docs/AdvertiserCreationResponse.md @@ -6,7 +6,7 @@ Advertiser Creation Response Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**EntityV2OfObject**](EntityV2OfObject.md) | | [optional] -**errors** | [**[CriteoApiErrorV2]**](CriteoApiErrorV2.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] +**errors** | [**[CommonProblem]**](CommonProblem.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] **warnings** | [**[CriteoApiWarningV2]**](CriteoApiWarningV2.md) | Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/AdvertiserDatasetListResponse.md b/sdks/marketingsolutions_preview/docs/AdvertiserDatasetListResponse.md index 0a34eba6..e40d0b44 100644 --- a/sdks/marketingsolutions_preview/docs/AdvertiserDatasetListResponse.md +++ b/sdks/marketingsolutions_preview/docs/AdvertiserDatasetListResponse.md @@ -6,7 +6,7 @@ Get datasets response. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[EntityV2OfDataset]**](EntityV2OfDataset.md) | The response’s primary data | [optional] -**errors** | [**[CriteoApiErrorV2]**](CriteoApiErrorV2.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] +**errors** | [**[CommonProblem]**](CommonProblem.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] **warnings** | [**[CriteoApiWarningV2]**](CriteoApiWarningV2.md) | Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/AudienceApi.md b/sdks/marketingsolutions_preview/docs/AudienceApi.md index f42aead1..c265953d 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceApi.md +++ b/sdks/marketingsolutions_preview/docs/AudienceApi.md @@ -6,7 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**bulk_create_audience_segments**](AudienceApi.md#bulk_create_audience_segments) | **POST** /preview/marketing-solutions/audience-segments/create | [**bulk_create_audiences**](AudienceApi.md#bulk_create_audiences) | **POST** /preview/marketing-solutions/audiences/create | -[**bulk_delete_audience_segment**](AudienceApi.md#bulk_delete_audience_segment) | **POST** /preview/marketing-solutions/audience-segments/delete | +[**bulk_delete_audience_segments**](AudienceApi.md#bulk_delete_audience_segments) | **POST** /preview/marketing-solutions/audience-segments/delete | [**bulk_delete_audiences**](AudienceApi.md#bulk_delete_audiences) | **POST** /preview/marketing-solutions/audiences/delete | [**bulk_update_audience_segments**](AudienceApi.md#bulk_update_audience_segments) | **PATCH** /preview/marketing-solutions/audience-segments | [**bulk_update_audiences**](AudienceApi.md#bulk_update_audiences) | **PATCH** /preview/marketing-solutions/audiences | @@ -16,9 +16,9 @@ Method | HTTP request | Description [**delete_user_profiles**](AudienceApi.md#delete_user_profiles) | **POST** /preview/marketing-solutions/advertisers/{advertiserId}/user-profiles/delete | [**estimate_audience_segment_size**](AudienceApi.md#estimate_audience_segment_size) | **POST** /preview/marketing-solutions/audience-segments/estimate-size | [**estimate_audience_size**](AudienceApi.md#estimate_audience_size) | **POST** /preview/marketing-solutions/audiences/estimate-size | -[**get_contact_list_statistics**](AudienceApi.md#get_contact_list_statistics) | **GET** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | -[**get_in_market_brands**](AudienceApi.md#get_in_market_brands) | **GET** /preview/marketing-solutions/audience-segments/in-market-brands | -[**get_in_market_interests**](AudienceApi.md#get_in_market_interests) | **GET** /preview/marketing-solutions/audience-segments/in-market-interests | +[**get_audience_segment_contact_list_statistics**](AudienceApi.md#get_audience_segment_contact_list_statistics) | **GET** /preview/marketing-solutions/audience-segments/{audience-segment-id}/contact-list | +[**get_audience_segments_in_market_brands**](AudienceApi.md#get_audience_segments_in_market_brands) | **GET** /preview/marketing-solutions/audience-segments/in-market-brands | +[**get_audience_segments_in_market_interests**](AudienceApi.md#get_audience_segments_in_market_interests) | **GET** /preview/marketing-solutions/audience-segments/in-market-interests | [**modify_audience_users_with_attributes**](AudienceApi.md#modify_audience_users_with_attributes) | **PATCH** /preview/audiences/{audience-id}/contactlist-attributes | [**search_audience_segments**](AudienceApi.md#search_audience_segments) | **POST** /preview/marketing-solutions/audience-segments/search | [**search_audiences**](AudienceApi.md#search_audiences) | **POST** /preview/marketing-solutions/audiences/search | @@ -27,7 +27,7 @@ Method | HTTP request | Description # **bulk_create_audience_segments** -> AudienceSegmentEntityV1ListResponse bulk_create_audience_segments() +> AudienceSegmentEntityV1ListResponse bulk_create_audience_segments(audience_segment_bulk_create_input_v1) @@ -96,7 +96,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien "Low", ], ), - prospecting={}, + prospecting=ProspectingCreateV1( + days_since_last_visit_min=1, + days_since_last_visit_max=1, + users_type="Prospects", + ), contact_list={}, location=LocationCreateV1( points_of_interest=[ @@ -120,12 +124,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), ), ], - ) # AudienceSegmentBulkCreateInputV1 | Segment creation parameter (optional) + ) # AudienceSegmentBulkCreateInputV1 | Segment creation parameter # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.bulk_create_audience_segments(audience_segment_bulk_create_input_v1=audience_segment_bulk_create_input_v1) + api_response = api_instance.bulk_create_audience_segments(audience_segment_bulk_create_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->bulk_create_audience_segments: %s\n" % e) @@ -136,7 +139,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_bulk_create_input_v1** | [**AudienceSegmentBulkCreateInputV1**](AudienceSegmentBulkCreateInputV1.md)| Segment creation parameter | [optional] + **audience_segment_bulk_create_input_v1** | [**AudienceSegmentBulkCreateInputV1**](AudienceSegmentBulkCreateInputV1.md)| Segment creation parameter | ### Return type @@ -164,7 +167,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) # **bulk_create_audiences** -> AudienceEntityV1ListResponse bulk_create_audiences() +> AudienceEntityV1ListResponse bulk_create_audiences(audience_bulk_create_input_v1) @@ -230,12 +233,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), ), ], - ) # AudienceBulkCreateInputV1 | (optional) + ) # AudienceBulkCreateInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.bulk_create_audiences(audience_bulk_create_input_v1=audience_bulk_create_input_v1) + api_response = api_instance.bulk_create_audiences(audience_bulk_create_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->bulk_create_audiences: %s\n" % e) @@ -246,7 +248,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_bulk_create_input_v1** | [**AudienceBulkCreateInputV1**](AudienceBulkCreateInputV1.md)| | [optional] + **audience_bulk_create_input_v1** | [**AudienceBulkCreateInputV1**](AudienceBulkCreateInputV1.md)| | ### Return type @@ -273,8 +275,8 @@ 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) -# **bulk_delete_audience_segment** -> AudienceSegmentIdEntityV1ListResponse bulk_delete_audience_segment() +# **bulk_delete_audience_segments** +> AudienceSegmentIdEntityV1ListResponse bulk_delete_audience_segments(audience_segment_bulk_delete_input_v1) @@ -327,15 +329,14 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien type="type_example", ), ], - ) # AudienceSegmentBulkDeleteInputV1 | Segment delete request. (optional) + ) # AudienceSegmentBulkDeleteInputV1 | Segment delete request. # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.bulk_delete_audience_segment(audience_segment_bulk_delete_input_v1=audience_segment_bulk_delete_input_v1) + api_response = api_instance.bulk_delete_audience_segments(audience_segment_bulk_delete_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling AudienceApi->bulk_delete_audience_segment: %s\n" % e) + print("Exception when calling AudienceApi->bulk_delete_audience_segments: %s\n" % e) ``` @@ -343,7 +344,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_bulk_delete_input_v1** | [**AudienceSegmentBulkDeleteInputV1**](AudienceSegmentBulkDeleteInputV1.md)| Segment delete request. | [optional] + **audience_segment_bulk_delete_input_v1** | [**AudienceSegmentBulkDeleteInputV1**](AudienceSegmentBulkDeleteInputV1.md)| Segment delete request. | ### Return type @@ -371,7 +372,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) # **bulk_delete_audiences** -> AudienceIdEntityV1ListResponse bulk_delete_audiences() +> AudienceIdEntityV1ListResponse bulk_delete_audiences(audience_bulk_delete_input_v1) @@ -424,12 +425,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien type="type_example", ), ], - ) # AudienceBulkDeleteInputV1 | (optional) + ) # AudienceBulkDeleteInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.bulk_delete_audiences(audience_bulk_delete_input_v1=audience_bulk_delete_input_v1) + api_response = api_instance.bulk_delete_audiences(audience_bulk_delete_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->bulk_delete_audiences: %s\n" % e) @@ -440,7 +440,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_bulk_delete_input_v1** | [**AudienceBulkDeleteInputV1**](AudienceBulkDeleteInputV1.md)| | [optional] + **audience_bulk_delete_input_v1** | [**AudienceBulkDeleteInputV1**](AudienceBulkDeleteInputV1.md)| | ### Return type @@ -469,7 +469,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) # **bulk_update_audience_segments** -> AudienceSegmentEntityV1ListResponse bulk_update_audience_segments() +> AudienceSegmentEntityV1ListResponse bulk_update_audience_segments(audience_segment_bulk_update_input_v1) @@ -559,17 +559,25 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien lookalike=LookalikeUpdateV1( target_size=1, ), + prospecting=ProspectingUpdateV1( + days_since_last_visit_min=NillableInt32( + value=1, + ), + days_since_last_visit_max=NillableInt32( + value=1, + ), + users_type="Prospects", + ), ), id="id_example", type="type_example", ), ], - ) # AudienceSegmentBulkUpdateInputV1 | Segment Update request (optional) + ) # AudienceSegmentBulkUpdateInputV1 | Segment Update request # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.bulk_update_audience_segments(audience_segment_bulk_update_input_v1=audience_segment_bulk_update_input_v1) + api_response = api_instance.bulk_update_audience_segments(audience_segment_bulk_update_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->bulk_update_audience_segments: %s\n" % e) @@ -580,7 +588,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_bulk_update_input_v1** | [**AudienceSegmentBulkUpdateInputV1**](AudienceSegmentBulkUpdateInputV1.md)| Segment Update request | [optional] + **audience_segment_bulk_update_input_v1** | [**AudienceSegmentBulkUpdateInputV1**](AudienceSegmentBulkUpdateInputV1.md)| Segment Update request | ### Return type @@ -608,7 +616,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) # **bulk_update_audiences** -> AudienceEntityV1ListResponse bulk_update_audiences() +> AudienceEntityV1ListResponse bulk_update_audiences(audience_bulk_update_input_v1) @@ -676,12 +684,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien type="type_example", ), ], - ) # AudienceBulkUpdateInputV1 | (optional) + ) # AudienceBulkUpdateInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.bulk_update_audiences(audience_bulk_update_input_v1=audience_bulk_update_input_v1) + api_response = api_instance.bulk_update_audiences(audience_bulk_update_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->bulk_update_audiences: %s\n" % e) @@ -692,7 +699,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_bulk_update_input_v1** | [**AudienceBulkUpdateInputV1**](AudienceBulkUpdateInputV1.md)| | [optional] + **audience_bulk_update_input_v1** | [**AudienceBulkUpdateInputV1**](AudienceBulkUpdateInputV1.md)| | ### Return type @@ -720,7 +727,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) # **compute_audience_segments_sizes** -> AudienceSegmentSizeEntityV1ListResponse compute_audience_segments_sizes() +> AudienceSegmentSizeEntityV1ListResponse compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1) @@ -773,12 +780,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien type="type_example", ), ], - ) # AudienceSegmentComputeSizesInputV1 | (optional) + ) # AudienceSegmentComputeSizesInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1=audience_segment_compute_sizes_input_v1) + api_response = api_instance.compute_audience_segments_sizes(audience_segment_compute_sizes_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->compute_audience_segments_sizes: %s\n" % e) @@ -789,7 +795,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_compute_sizes_input_v1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | [optional] + **audience_segment_compute_sizes_input_v1** | [**AudienceSegmentComputeSizesInputV1**](AudienceSegmentComputeSizesInputV1.md)| | ### Return type @@ -817,7 +823,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) # **compute_audiences_sizes** -> AudienceSizeEntityV1ListResponse compute_audiences_sizes() +> AudienceSizeEntityV1ListResponse compute_audiences_sizes(audience_compute_sizes_input_v1) @@ -870,12 +876,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien type="type_example", ), ], - ) # AudienceComputeSizesInputV1 | (optional) + ) # AudienceComputeSizesInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.compute_audiences_sizes(audience_compute_sizes_input_v1=audience_compute_sizes_input_v1) + api_response = api_instance.compute_audiences_sizes(audience_compute_sizes_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->compute_audiences_sizes: %s\n" % e) @@ -886,7 +891,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_compute_sizes_input_v1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | [optional] + **audience_compute_sizes_input_v1** | [**AudienceComputeSizesInputV1**](AudienceComputeSizesInputV1.md)| | ### Return type @@ -1103,7 +1108,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) # **estimate_audience_segment_size** -> AudienceSegmentSizeEstimationV1Response estimate_audience_segment_size() +> AudienceSegmentSizeEstimationV1Response estimate_audience_segment_size(audience_segment_estimate_size_input_v1) @@ -1181,12 +1186,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), ), ), - ) # AudienceSegmentEstimateSizeInputV1 | (optional) + ) # AudienceSegmentEstimateSizeInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.estimate_audience_segment_size(audience_segment_estimate_size_input_v1=audience_segment_estimate_size_input_v1) + api_response = api_instance.estimate_audience_segment_size(audience_segment_estimate_size_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->estimate_audience_segment_size: %s\n" % e) @@ -1197,7 +1201,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_segment_estimate_size_input_v1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | [optional] + **audience_segment_estimate_size_input_v1** | [**AudienceSegmentEstimateSizeInputV1**](AudienceSegmentEstimateSizeInputV1.md)| | ### Return type @@ -1225,7 +1229,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) # **estimate_audience_size** -> AudienceSizeEstimationV1Response estimate_audience_size() +> AudienceSizeEstimationV1Response estimate_audience_size(audience_estimate_size_input_v1) @@ -1287,12 +1291,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), ), ), - ) # AudienceEstimateSizeInputV1 | (optional) + ) # AudienceEstimateSizeInputV1 | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.estimate_audience_size(audience_estimate_size_input_v1=audience_estimate_size_input_v1) + api_response = api_instance.estimate_audience_size(audience_estimate_size_input_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->estimate_audience_size: %s\n" % e) @@ -1303,7 +1306,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_estimate_size_input_v1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | [optional] + **audience_estimate_size_input_v1** | [**AudienceEstimateSizeInputV1**](AudienceEstimateSizeInputV1.md)| | ### Return type @@ -1330,8 +1333,8 @@ 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) -# **get_contact_list_statistics** -> ContactListStatisticsEntityV1Response get_contact_list_statistics(audience_segment_id) +# **get_audience_segment_contact_list_statistics** +> ContactListStatisticsEntityV1Response get_audience_segment_contact_list_statistics(audience_segment_id) @@ -1379,10 +1382,10 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # example passing only required values which don't have defaults set try: - api_response = api_instance.get_contact_list_statistics(audience_segment_id) + api_response = api_instance.get_audience_segment_contact_list_statistics(audience_segment_id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling AudienceApi->get_contact_list_statistics: %s\n" % e) + print("Exception when calling AudienceApi->get_audience_segment_contact_list_statistics: %s\n" % e) ``` @@ -1416,8 +1419,8 @@ 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) -# **get_in_market_brands** -> InMarketAudienceSegmentBrandEntityV1ListResponse get_in_market_brands(advertiser_id, country) +# **get_audience_segments_in_market_brands** +> InMarketAudienceSegmentBrandEntityV1ListResponse get_audience_segments_in_market_brands(advertiser_id, country) @@ -1466,10 +1469,10 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # example passing only required values which don't have defaults set try: - api_response = api_instance.get_in_market_brands(advertiser_id, country) + api_response = api_instance.get_audience_segments_in_market_brands(advertiser_id, country) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling AudienceApi->get_in_market_brands: %s\n" % e) + print("Exception when calling AudienceApi->get_audience_segments_in_market_brands: %s\n" % e) ``` @@ -1504,8 +1507,8 @@ 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) -# **get_in_market_interests** -> InMarketAudienceSegmentInterestEntityV1ListResponse get_in_market_interests(advertiser_id, country) +# **get_audience_segments_in_market_interests** +> InMarketAudienceSegmentInterestEntityV1ListResponse get_audience_segments_in_market_interests(advertiser_id, country) @@ -1554,10 +1557,10 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # example passing only required values which don't have defaults set try: - api_response = api_instance.get_in_market_interests(advertiser_id, country) + api_response = api_instance.get_audience_segments_in_market_interests(advertiser_id, country) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling AudienceApi->get_in_market_interests: %s\n" % e) + print("Exception when calling AudienceApi->get_audience_segments_in_market_interests: %s\n" % e) ``` @@ -1638,7 +1641,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - audience_id = 1 # int | The id of the audience to amend + audience_id = "audience-id_example" # str | The id of the audience to amend contactlist_with_attributes_amendment_request = ContactlistWithAttributesAmendmentRequest( data=ContactlistWithAttributesAmendment( type="ContactlistWithUserAttributesAmendment", @@ -1673,7 +1676,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audience_id** | **int**| The id of the audience to amend | + **audience_id** | **str**| The id of the audience to amend | **contactlist_with_attributes_amendment_request** | [**ContactlistWithAttributesAmendmentRequest**](ContactlistWithAttributesAmendmentRequest.md)| | ### Return type @@ -1700,7 +1703,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) # **search_audience_segments** -> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse search_audience_segments() +> AudienceSegmentEntityV1AudienceSegmentSearchMetadataV1ListResponse search_audience_segments(audience_segment_search_input_v1) @@ -1745,8 +1748,6 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - limit = 1 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) - offset = 1 # int | The (zero-based) offset into the collection. The default is 0. (optional) audience_segment_search_input_v1 = AudienceSegmentSearchInputV1( data=AudienceSegmentSearchEntityV1Resource( type="type_example", @@ -1762,12 +1763,21 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ], ), ), - ) # AudienceSegmentSearchInputV1 | Segment search filters. (optional) + ) # AudienceSegmentSearchInputV1 | Segment search filters. + limit = 50 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) if omitted the server will use the default value of 50 + offset = 0 # int | The (zero-based) offset into the collection. The default is 0. (optional) if omitted the server will use the default value of 0 + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.search_audience_segments(audience_segment_search_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_preview.ApiException as e: + print("Exception when calling AudienceApi->search_audience_segments: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.search_audience_segments(limit=limit, offset=offset, audience_segment_search_input_v1=audience_segment_search_input_v1) + api_response = api_instance.search_audience_segments(audience_segment_search_input_v1, limit=limit, offset=offset) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->search_audience_segments: %s\n" % e) @@ -1778,9 +1788,9 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] - **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] - **audience_segment_search_input_v1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | [optional] + **audience_segment_search_input_v1** | [**AudienceSegmentSearchInputV1**](AudienceSegmentSearchInputV1.md)| Segment search filters. | + **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] if omitted the server will use the default value of 50 + **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] if omitted the server will use the default value of 0 ### Return type @@ -1808,7 +1818,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) # **search_audiences** -> AudienceEntityV1AudienceSearchMetadataV1ListResponse search_audiences() +> AudienceEntityV1AudienceSearchMetadataV1ListResponse search_audiences(audience_search_input_v1) @@ -1853,8 +1863,6 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - limit = 1 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) - offset = 1 # int | The (zero-based) offset into the collection. The default is 0. (optional) audience_search_input_v1 = AudienceSearchInputV1( data=AudienceSearchEntityV1Resource( type="type_example", @@ -1873,12 +1881,21 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ], ), ), - ) # AudienceSearchInputV1 | Audience search filters. (optional) + ) # AudienceSearchInputV1 | Audience search filters. + limit = 50 # int | The number of elements to be returned. The default is 50 and the maximum is 100. (optional) if omitted the server will use the default value of 50 + offset = 0 # int | The (zero-based) offset into the collection. The default is 0. (optional) if omitted the server will use the default value of 0 + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.search_audiences(audience_search_input_v1) + pprint(api_response) + except criteo_api_marketingsolutions_preview.ApiException as e: + print("Exception when calling AudienceApi->search_audiences: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.search_audiences(limit=limit, offset=offset, audience_search_input_v1=audience_search_input_v1) + api_response = api_instance.search_audiences(audience_search_input_v1, limit=limit, offset=offset) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling AudienceApi->search_audiences: %s\n" % e) @@ -1889,9 +1906,9 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] - **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] - **audience_search_input_v1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | [optional] + **audience_search_input_v1** | [**AudienceSearchInputV1**](AudienceSearchInputV1.md)| Audience search filters. | + **limit** | **int**| The number of elements to be returned. The default is 50 and the maximum is 100. | [optional] if omitted the server will use the default value of 50 + **offset** | **int**| The (zero-based) offset into the collection. The default is 0. | [optional] if omitted the server will use the default value of 0 ### Return type @@ -2091,7 +2108,6 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien "identifiers_example", ], gum_caller_id=1, - internal_identifiers=True, ), ), ) # ContactlistAmendmentRequest | diff --git a/sdks/marketingsolutions_preview/docs/AudienceCreateEntityV1.md b/sdks/marketingsolutions_preview/docs/AudienceCreateEntityV1.md index 5213d8d4..95bcada0 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceCreateEntityV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceCreateEntityV1.md @@ -5,10 +5,10 @@ Audience of people of interest for a marketer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the audience | [optional] +**name** | **str** | Name of the audience | +**advertiser_id** | **str** | Advertiser associated to the audience | +**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | **description** | **str** | Description of the audience | [optional] -**advertiser_id** | **str** | Advertiser associated to the audience | [optional] -**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/AudienceEstimateSizeEntityV1.md b/sdks/marketingsolutions_preview/docs/AudienceEstimateSizeEntityV1.md index e00b81a8..282016b3 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceEstimateSizeEntityV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceEstimateSizeEntityV1.md @@ -5,8 +5,8 @@ Audience of people of interest for a marketer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**advertiser_id** | **str** | Advertiser associated to the audience | [optional] -**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | [optional] +**advertiser_id** | **str** | Advertiser associated to the audience | +**algebra** | [**AlgebraNodeV1**](AlgebraNodeV1.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/AudienceIdEntityV1Resource.md b/sdks/marketingsolutions_preview/docs/AudienceIdEntityV1Resource.md index 1ee86f53..beef0bf6 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceIdEntityV1Resource.md +++ b/sdks/marketingsolutions_preview/docs/AudienceIdEntityV1Resource.md @@ -5,7 +5,7 @@ A class that represents a domain entity exposed by an API ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Audience entity only with its ID | [optional] +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Audience entity with only its ID | [optional] **id** | **str** | Id of the entity | [optional] **type** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/AudienceSegmentCreateEntityV1.md b/sdks/marketingsolutions_preview/docs/AudienceSegmentCreateEntityV1.md index 1c23e701..39e394e7 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceSegmentCreateEntityV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceSegmentCreateEntityV1.md @@ -5,11 +5,11 @@ Set of rules that defines specific people to target. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the segment | [optional] +**name** | **str** | Name of the segment | +**advertiser_id** | **str** | Advertiser associated to the segment | **description** | **str** | Description of the segment | [optional] -**advertiser_id** | **str** | Advertiser associated to the segment | [optional] **in_market** | [**InMarketCreateV1**](InMarketCreateV1.md) | | [optional] -**prospecting** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Settings to target prospecting users to website visitors. | [optional] +**prospecting** | [**ProspectingCreateV1**](ProspectingCreateV1.md) | | [optional] **contact_list** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Settings to target users with your contact lists. | [optional] **location** | [**LocationCreateV1**](LocationCreateV1.md) | | [optional] **retargeting** | [**RetargetingCreateV1**](RetargetingCreateV1.md) | | [optional] diff --git a/sdks/marketingsolutions_preview/docs/AudienceSegmentEntityV1.md b/sdks/marketingsolutions_preview/docs/AudienceSegmentEntityV1.md index 452d6405..5ee57be7 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceSegmentEntityV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceSegmentEntityV1.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **updated_at** | **datetime** | ISO-8601 timestamp in UTC of segment update (read-only) | [optional] **advertiser_id** | **str** | Advertiser associated to the segment | [optional] **in_market** | [**InMarketV1**](InMarketV1.md) | | [optional] -**prospecting** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Settings to target prospecting users to website visitors. | [optional] +**prospecting** | [**ProspectingV1**](ProspectingV1.md) | | [optional] **contact_list** | [**ContactListV1**](ContactListV1.md) | | [optional] **location** | [**LocationV1**](LocationV1.md) | | [optional] **behavioral** | [**BehavioralV1**](BehavioralV1.md) | | [optional] diff --git a/sdks/marketingsolutions_preview/docs/AudienceSegmentEstimateSizeInputV1.md b/sdks/marketingsolutions_preview/docs/AudienceSegmentEstimateSizeInputV1.md index bf0fe0af..8ed365ca 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceSegmentEstimateSizeInputV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceSegmentEstimateSizeInputV1.md @@ -1,6 +1,6 @@ # AudienceSegmentEstimateSizeInputV1 -Input to estimate the size of an audience segment. +Input to estimate the size of an audience segment.. ## Properties Name | Type | Description | Notes diff --git a/sdks/marketingsolutions_preview/docs/AudienceSegmentSizeEstimationEntityV1.md b/sdks/marketingsolutions_preview/docs/AudienceSegmentSizeEstimationEntityV1.md index 60493303..ee1208fd 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceSegmentSizeEstimationEntityV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceSegmentSizeEstimationEntityV1.md @@ -5,7 +5,7 @@ Set of rules that defines specific people to target. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**advertiser_id** | **str** | Advertiser associated to the segment | [optional] +**advertiser_id** | **str** | Advertiser associated to the segment | **in_market** | [**InMarketSizeEstimationV1**](InMarketSizeEstimationV1.md) | | [optional] **location** | [**LocationSizeEstimationV1**](LocationSizeEstimationV1.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/AudienceSegmentUpdateEntityV1.md b/sdks/marketingsolutions_preview/docs/AudienceSegmentUpdateEntityV1.md index b8d3d75e..442d817b 100644 --- a/sdks/marketingsolutions_preview/docs/AudienceSegmentUpdateEntityV1.md +++ b/sdks/marketingsolutions_preview/docs/AudienceSegmentUpdateEntityV1.md @@ -5,12 +5,13 @@ Set of rules that defines specific people to target. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | [optional] +**name** | **str** | Name of the segment | [optional] **description** | [**NillableString**](NillableString.md) | | [optional] **in_market** | [**InMarketUpdateV1**](InMarketUpdateV1.md) | | [optional] **location** | [**LocationUpdateV1**](LocationUpdateV1.md) | | [optional] **retargeting** | [**RetargetingUpdateV1**](RetargetingUpdateV1.md) | | [optional] **lookalike** | [**LookalikeUpdateV1**](LookalikeUpdateV1.md) | | [optional] +**prospecting** | [**ProspectingUpdateV1**](ProspectingUpdateV1.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CampaignApi.md b/sdks/marketingsolutions_preview/docs/CampaignApi.md index a55c8bdd..753636b9 100644 --- a/sdks/marketingsolutions_preview/docs/CampaignApi.md +++ b/sdks/marketingsolutions_preview/docs/CampaignApi.md @@ -51,7 +51,7 @@ Method | HTTP request | Description # **create_ad_set** -> ResponseReadAdSet create_ad_set() +> ResponseReadAdSet create_ad_set(create_ad_set_request) @@ -160,12 +160,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), type="AdSet", ), - ) # CreateAdSetRequest | the ad sets to create (optional) + ) # CreateAdSetRequest | the ad sets to create # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.create_ad_set(create_ad_set_request=create_ad_set_request) + api_response = api_instance.create_ad_set(create_ad_set_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling CampaignApi->create_ad_set: %s\n" % e) @@ -176,7 +175,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_ad_set_request** | [**CreateAdSetRequest**](CreateAdSetRequest.md)| the ad sets to create | [optional] + **create_ad_set_request** | [**CreateAdSetRequest**](CreateAdSetRequest.md)| the ad sets to create | ### Return type @@ -203,7 +202,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_campaign** -> CampaignV23Q1Response create_campaign() +> CampaignV23Q1Response create_campaign(create_campaign_request) @@ -262,12 +261,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien ), type="Campaign", ), - ) # CreateCampaignRequest | the campaigns to create (optional) + ) # CreateCampaignRequest | the campaigns to create # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.create_campaign(create_campaign_request=create_campaign_request) + api_response = api_instance.create_campaign(create_campaign_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling CampaignApi->create_campaign: %s\n" % e) @@ -278,7 +276,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_campaign_request** | [**CreateCampaignRequest**](CreateCampaignRequest.md)| the campaigns to create | [optional] + **create_campaign_request** | [**CreateCampaignRequest**](CreateCampaignRequest.md)| the campaigns to create | ### Return type @@ -356,8 +354,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -470,8 +468,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -584,8 +582,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -698,8 +696,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -2768,8 +2766,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -2881,8 +2879,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -2992,8 +2990,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -3106,8 +3104,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -3220,8 +3218,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -3334,8 +3332,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -3448,8 +3446,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -3562,8 +3560,8 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien data=EntityWrapperOfTargetingEntity( type="type_example", attributes=TargetingEntity( - type="type_example", - mode="mode_example", + type="DOMAIN", + mode="BLOCKLIST", data=[ EntityFilter( value="value_example", @@ -4244,7 +4242,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_ad_set_audience** -> AdSetAudienceLinkEntityV1Response update_ad_set_audience(ad_set_id) +> AdSetAudienceLinkEntityV1Response update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1) @@ -4298,19 +4296,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien id="id_example", type="type_example", ), - ) # AdSetAudienceLinkInputEntityV1 | Ad set-Audience update request. (optional) + ) # AdSetAudienceLinkInputEntityV1 | Ad set-Audience update request. # example passing only required values which don't have defaults set try: - api_response = api_instance.update_ad_set_audience(ad_set_id) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CampaignApi->update_ad_set_audience: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1=ad_set_audience_link_input_entity_v1) + api_response = api_instance.update_ad_set_audience(ad_set_id, ad_set_audience_link_input_entity_v1) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling CampaignApi->update_ad_set_audience: %s\n" % e) @@ -4322,7 +4312,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ad_set_id** | **str**| The ad set ID. | - **ad_set_audience_link_input_entity_v1** | [**AdSetAudienceLinkInputEntityV1**](AdSetAudienceLinkInputEntityV1.md)| Ad set-Audience update request. | [optional] + **ad_set_audience_link_input_entity_v1** | [**AdSetAudienceLinkInputEntityV1**](AdSetAudienceLinkInputEntityV1.md)| Ad set-Audience update request. | ### Return type diff --git a/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md b/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md index 4567fd90..dab37703 100644 --- a/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md +++ b/sdks/marketingsolutions_preview/docs/ContactlistAmendmentAttributes.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **identifiers** | **[str]** | The users tos add or remove, each in the schema specified | **identifier_type** | **str** | What type of identifiers are used | [optional] **gum_caller_id** | **int** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] -**internal_identifiers** | **bool** | The flag to indicate if identifiers are external or internal | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/ContactlistOperationAttributes.md b/sdks/marketingsolutions_preview/docs/ContactlistOperationAttributes.md index fdd380b4..db50c0c9 100644 --- a/sdks/marketingsolutions_preview/docs/ContactlistOperationAttributes.md +++ b/sdks/marketingsolutions_preview/docs/ContactlistOperationAttributes.md @@ -6,7 +6,7 @@ the contactlist operation attributes Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operation** | **str** | The action recorded | -**contact_list_id** | **str** | the affected user list id | [optional] +**contact_list_id** | **int** | the affected user list id | [optional] **request_date** | **datetime** | When the action was recorded | [optional] **identifier_type** | **str** | The schema specified for of the identifiers | [optional] **nb_valid_identifiers** | **int** | How many identifiers were valid for the specified schema | [optional] diff --git a/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md b/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md index 3b2c641d..b73d3aa8 100644 --- a/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md +++ b/sdks/marketingsolutions_preview/docs/ContactlistWithAttributesAmendmentAttributes.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **identifier_type** | **str** | What type of identifiers are used | **identifiers** | [**[UserDef]**](UserDef.md) | The users to add or remove, each in the schema specified, defined with attributes | **gum_caller_id** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | The Gum caller id of the advertiser patching identifiers of type Gum | [optional] [readonly] -**internal_identifiers** | **bool** | The flag to indicate if identifiers are external or internal | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CreateAdSet.md b/sdks/marketingsolutions_preview/docs/CreateAdSet.md index 2647eee9..ada33fdb 100644 --- a/sdks/marketingsolutions_preview/docs/CreateAdSet.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSet.md @@ -5,16 +5,16 @@ ad set create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the ad set | [optional] -**dataset_id** | **str** | Dataset id of this ad set | [optional] -**campaign_id** | **str** | Campaign id this ad set belongs to | [optional] -**objective** | **str** | Objective of the ad set | [optional] -**schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | [optional] -**bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | [optional] -**targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | [optional] -**budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | [optional] -**tracking_code** | **str** | The click tracking code associated to this Ad Set. | [optional] -**media_type** | **str** | Media type for the ad set | [optional] +**name** | **str** | Name of the ad set | +**dataset_id** | **str** | Dataset id of this ad set | +**campaign_id** | **str** | Campaign id this ad set belongs to | +**objective** | **str** | Objective of the ad set | +**schedule** | [**CreateAdSetSchedule**](CreateAdSetSchedule.md) | | +**bidding** | [**CreateAdSetBidding**](CreateAdSetBidding.md) | | +**targeting** | [**CreateAdSetTargeting**](CreateAdSetTargeting.md) | | +**budget** | [**CreateAdSetBudget**](CreateAdSetBudget.md) | | +**tracking_code** | **str** | The click tracking code associated to this Ad Set. | +**media_type** | **str** | Media type for the ad set | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CreateAdSetBidding.md b/sdks/marketingsolutions_preview/docs/CreateAdSetBidding.md index 2b69fb22..d6060ec7 100644 --- a/sdks/marketingsolutions_preview/docs/CreateAdSetBidding.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetBidding.md @@ -5,8 +5,8 @@ ad set bidding create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cost_controller** | **str** | How spend is controlled | **bid_amount** | **float** | Decimal value target relating to the `bidStrategy` specified. May be `null` for strategies that do not require a target value. At most 4 decimals are supported. Additional decimals are rounded. | [optional] -**cost_controller** | **str** | How spend is controlled | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CreateAdSetBudget.md b/sdks/marketingsolutions_preview/docs/CreateAdSetBudget.md index daf7b5a2..374ec617 100644 --- a/sdks/marketingsolutions_preview/docs/CreateAdSetBudget.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetBudget.md @@ -5,7 +5,7 @@ ad set budget create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**budget_strategy** | **str** | | [optional] +**budget_strategy** | **str** | | **budget_renewal** | **str** | | [optional] **budget_delivery_smoothing** | **str** | | [optional] **budget_delivery_week** | **str** | | [optional] diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetSchedule.md b/sdks/marketingsolutions_preview/docs/CreateAdSetSchedule.md index 19ba6bec..4d3634f7 100644 --- a/sdks/marketingsolutions_preview/docs/CreateAdSetSchedule.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetSchedule.md @@ -5,7 +5,7 @@ ad set schedule create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_date** | **datetime** | | [optional] +**start_date** | **datetime** | | **end_date** | **datetime** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/CreateAdSetTargeting.md b/sdks/marketingsolutions_preview/docs/CreateAdSetTargeting.md index c15c1677..835a9743 100644 --- a/sdks/marketingsolutions_preview/docs/CreateAdSetTargeting.md +++ b/sdks/marketingsolutions_preview/docs/CreateAdSetTargeting.md @@ -5,9 +5,9 @@ Targeting configuration of the ad set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**frequency_capping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | **delivery_limitations** | [**AdSetDeliveryLimitations**](AdSetDeliveryLimitations.md) | | [optional] **geo_location** | [**CreateAdSetGeoLocation**](CreateAdSetGeoLocation.md) | | [optional] -**frequency_capping** | [**AdSetFrequencyCapping**](AdSetFrequencyCapping.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CreateCampaign.md b/sdks/marketingsolutions_preview/docs/CreateCampaign.md index e8ebbb1d..b42dd734 100644 --- a/sdks/marketingsolutions_preview/docs/CreateCampaign.md +++ b/sdks/marketingsolutions_preview/docs/CreateCampaign.md @@ -5,10 +5,10 @@ Campaign create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the campaign | [optional] -**advertiser_id** | **str** | Advertiser id this campaign belongs to | [optional] -**goal** | **str** | Goal for the marketing campaign | [optional] -**spend_limit** | [**CreateCampaignSpendLimit**](CreateCampaignSpendLimit.md) | | [optional] +**name** | **str** | Name of the campaign | +**advertiser_id** | **str** | Advertiser id this campaign belongs to | +**goal** | **str** | Goal for the marketing campaign | +**spend_limit** | [**CreateCampaignSpendLimit**](CreateCampaignSpendLimit.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/CreateCampaignSpendLimit.md b/sdks/marketingsolutions_preview/docs/CreateCampaignSpendLimit.md index f0538856..2473665a 100644 --- a/sdks/marketingsolutions_preview/docs/CreateCampaignSpendLimit.md +++ b/sdks/marketingsolutions_preview/docs/CreateCampaignSpendLimit.md @@ -5,7 +5,7 @@ campaign spend limit create model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**spend_limit_type** | **str** | Whether your spend limit is capped or not | [optional] +**spend_limit_type** | **str** | Whether your spend limit is capped or not | **spend_limit_renewal** | **str** | The pace of the spend limit renewal | [optional] **spend_limit_amount** | **float** | The amount of the spend limit. null if spendLimitType is uncapped. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/CreativeApi.md b/sdks/marketingsolutions_preview/docs/CreativeApi.md index 0b12084b..6032a2cc 100644 --- a/sdks/marketingsolutions_preview/docs/CreativeApi.md +++ b/sdks/marketingsolutions_preview/docs/CreativeApi.md @@ -4,27 +4,27 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_ad**](CreativeApi.md#create_ad) | **POST** /preview/advertisers/{advertiser-id}/ads | -[**create_coupon**](CreativeApi.md#create_coupon) | **POST** /preview/advertisers/{advertiser-id}/coupons | -[**create_creative**](CreativeApi.md#create_creative) | **POST** /preview/advertisers/{advertiser-id}/creatives | +[**create_advertiser_ad**](CreativeApi.md#create_advertiser_ad) | **POST** /preview/advertisers/{advertiser-id}/ads | +[**create_advertiser_coupon**](CreativeApi.md#create_advertiser_coupon) | **POST** /preview/advertisers/{advertiser-id}/coupons | +[**create_advertiser_creative**](CreativeApi.md#create_advertiser_creative) | **POST** /preview/advertisers/{advertiser-id}/creatives | [**delete_ad**](CreativeApi.md#delete_ad) | **DELETE** /preview/ads/{id} | -[**delete_coupon**](CreativeApi.md#delete_coupon) | **DELETE** /preview/advertisers/{advertiser-id}/coupons/{id} | +[**delete_advertiser_coupon**](CreativeApi.md#delete_advertiser_coupon) | **DELETE** /preview/advertisers/{advertiser-id}/coupons/{id} | [**delete_creative**](CreativeApi.md#delete_creative) | **DELETE** /preview/creatives/{id} | -[**edit_coupon**](CreativeApi.md#edit_coupon) | **PUT** /preview/advertisers/{advertiser-id}/coupons/{id} | +[**edit_advertiser_coupon**](CreativeApi.md#edit_advertiser_coupon) | **PUT** /preview/advertisers/{advertiser-id}/coupons/{id} | [**edit_creative**](CreativeApi.md#edit_creative) | **PUT** /preview/creatives/{id} | +[**generate_creative_preview**](CreativeApi.md#generate_creative_preview) | **POST** /preview/creatives/{id}/preview | [**get_ad**](CreativeApi.md#get_ad) | **GET** /preview/ads/{id} | -[**get_ads**](CreativeApi.md#get_ads) | **GET** /preview/advertisers/{advertiser-id}/ads | -[**get_coupon**](CreativeApi.md#get_coupon) | **GET** /preview/advertisers/{advertiser-id}/coupons/{id} | -[**get_coupon_preview**](CreativeApi.md#get_coupon_preview) | **GET** /preview/advertisers/{advertiser-id}/coupons/{id}/preview | -[**get_coupon_supported_sizes**](CreativeApi.md#get_coupon_supported_sizes) | **GET** /preview/advertisers/{advertiser-id}/coupons-supported-sizes | -[**get_coupons**](CreativeApi.md#get_coupons) | **GET** /preview/advertisers/{advertiser-id}/coupons | +[**get_advertiser_ads**](CreativeApi.md#get_advertiser_ads) | **GET** /preview/advertisers/{advertiser-id}/ads | +[**get_advertiser_coupon**](CreativeApi.md#get_advertiser_coupon) | **GET** /preview/advertisers/{advertiser-id}/coupons/{id} | +[**get_advertiser_coupon_preview**](CreativeApi.md#get_advertiser_coupon_preview) | **GET** /preview/advertisers/{advertiser-id}/coupons/{id}/preview | +[**get_advertiser_coupon_supported_sizes**](CreativeApi.md#get_advertiser_coupon_supported_sizes) | **GET** /preview/advertisers/{advertiser-id}/coupons-supported-sizes | +[**get_advertiser_coupons**](CreativeApi.md#get_advertiser_coupons) | **GET** /preview/advertisers/{advertiser-id}/coupons | +[**get_advertiser_creatives**](CreativeApi.md#get_advertiser_creatives) | **GET** /preview/advertisers/{advertiser-id}/creatives | [**get_creative**](CreativeApi.md#get_creative) | **GET** /preview/creatives/{id} | -[**get_creative_preview_post**](CreativeApi.md#get_creative_preview_post) | **POST** /preview/creatives/{id}/preview | -[**get_creatives**](CreativeApi.md#get_creatives) | **GET** /preview/advertisers/{advertiser-id}/creatives | -# **create_ad** -> AdResponse create_ad(advertiser_id) +# **create_advertiser_ad** +> AdResponse create_advertiser_ad(advertiser_id, ad_write_request) @@ -77,29 +77,21 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien description="description_example", creative_id="creative_id_example", ad_set_id="ad_set_id_example", - inventory_type="inventory_type_example", + inventory_type="Display", start_date="start_date_example", end_date="end_date_example", ), id="id_example", type="type_example", ), - ) # AdWriteRequest | (optional) + ) # AdWriteRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.create_ad(advertiser_id) + api_response = api_instance.create_advertiser_ad(advertiser_id, ad_write_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->create_ad: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.create_ad(advertiser_id, ad_write_request=ad_write_request) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->create_ad: %s\n" % e) + print("Exception when calling CreativeApi->create_advertiser_ad: %s\n" % e) ``` @@ -108,7 +100,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **ad_write_request** | [**AdWriteRequest**](AdWriteRequest.md)| | [optional] + **ad_write_request** | [**AdWriteRequest**](AdWriteRequest.md)| | ### Return type @@ -135,8 +127,8 @@ 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_coupon** -> CouponResponse create_coupon(advertiser_id) +# **create_advertiser_coupon** +> CouponResponse create_advertiser_coupon(advertiser_id, create_coupon_request) @@ -191,7 +183,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien landing_page_url="landing_page_url_example", start_date="start_date_example", end_date="end_date_example", - format="format_example", + format="FullFrame", images=[ CreateImageSlide( width=1, @@ -208,22 +200,14 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien id="id_example", type="type_example", ), - ) # CreateCouponRequest | (optional) + ) # CreateCouponRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.create_coupon(advertiser_id) + api_response = api_instance.create_advertiser_coupon(advertiser_id, create_coupon_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->create_coupon: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.create_coupon(advertiser_id, create_coupon_request=create_coupon_request) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->create_coupon: %s\n" % e) + print("Exception when calling CreativeApi->create_advertiser_coupon: %s\n" % e) ``` @@ -232,7 +216,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **create_coupon_request** | [**CreateCouponRequest**](CreateCouponRequest.md)| | [optional] + **create_coupon_request** | [**CreateCouponRequest**](CreateCouponRequest.md)| | ### Return type @@ -258,8 +242,8 @@ 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_creative** -> CreativeResponse create_creative(advertiser_id) +# **create_advertiser_creative** +> CreativeResponse create_advertiser_creative(advertiser_id, creative_write_request) @@ -310,7 +294,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien attributes=CreativeWrite( name="name_example", description="description_example", - format="format_example", + format="Image", dataset_id="dataset_id_example", image_write_attributes=ImageWriteAttributes( base64_strings=[ @@ -338,11 +322,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien calls_to_action=[ "calls_to_action_example", ], - product_image_display="product_image_display_example", + product_image_display="ShowFullImage", ), adaptive_write_attributes=AdaptiveWriteAttributes( layouts=[ - "layouts_example", + "Editorial", ], logo_base64_string="logo_base64_string_example", headline_text="headline_text_example", @@ -368,7 +352,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien headline_text="headline_text_example", ), ], - image_display="image_display_example", + image_display="ShowFullImage", video_base64_strings=[ "video_base64_strings_example", ], @@ -378,22 +362,14 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien id="id_example", type="type_example", ), - ) # CreativeWriteRequest | (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.create_creative(advertiser_id) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->create_creative: %s\n" % e) + ) # CreativeWriteRequest | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.create_creative(advertiser_id, creative_write_request=creative_write_request) + api_response = api_instance.create_advertiser_creative(advertiser_id, creative_write_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->create_creative: %s\n" % e) + print("Exception when calling CreativeApi->create_advertiser_creative: %s\n" % e) ``` @@ -402,7 +378,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **creative_write_request** | [**CreativeWriteRequest**](CreativeWriteRequest.md)| | [optional] + **creative_write_request** | [**CreativeWriteRequest**](CreativeWriteRequest.md)| | ### Return type @@ -514,8 +490,8 @@ 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) -# **delete_coupon** -> delete_coupon(advertiser_id, id) +# **delete_advertiser_coupon** +> delete_advertiser_coupon(advertiser_id, id) @@ -563,9 +539,9 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # example passing only required values which don't have defaults set try: - api_instance.delete_coupon(advertiser_id, id) + api_instance.delete_advertiser_coupon(advertiser_id, id) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->delete_coupon: %s\n" % e) + print("Exception when calling CreativeApi->delete_advertiser_coupon: %s\n" % e) ``` @@ -685,8 +661,8 @@ 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) -# **edit_coupon** -> CouponResponse edit_coupon(advertiser_id, id) +# **edit_advertiser_coupon** +> CouponResponse edit_advertiser_coupon(advertiser_id, id, update_coupon_request) @@ -742,22 +718,14 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien id="id_example", type="type_example", ), - ) # UpdateCouponRequest | (optional) + ) # UpdateCouponRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.edit_coupon(advertiser_id, id) + api_response = api_instance.edit_advertiser_coupon(advertiser_id, id, update_coupon_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->edit_coupon: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.edit_coupon(advertiser_id, id, update_coupon_request=update_coupon_request) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->edit_coupon: %s\n" % e) + print("Exception when calling CreativeApi->edit_advertiser_coupon: %s\n" % e) ``` @@ -767,7 +735,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | **id** | **str**| The Coupon identifier to edit. | - **update_coupon_request** | [**UpdateCouponRequest**](UpdateCouponRequest.md)| | [optional] + **update_coupon_request** | [**UpdateCouponRequest**](UpdateCouponRequest.md)| | ### Return type @@ -789,12 +757,11 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | The edited Coupon is returned. | - | **400** | The request contained invalid parameters. | - | -**403** | The request was not properly authorized. | - | [[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) # **edit_creative** -> CreativeResponse edit_creative(id) +> CreativeResponse edit_creative(id, creative_write_request) @@ -845,7 +812,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien attributes=CreativeWrite( name="name_example", description="description_example", - format="format_example", + format="Image", dataset_id="dataset_id_example", image_write_attributes=ImageWriteAttributes( base64_strings=[ @@ -873,11 +840,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien calls_to_action=[ "calls_to_action_example", ], - product_image_display="product_image_display_example", + product_image_display="ShowFullImage", ), adaptive_write_attributes=AdaptiveWriteAttributes( layouts=[ - "layouts_example", + "Editorial", ], logo_base64_string="logo_base64_string_example", headline_text="headline_text_example", @@ -903,7 +870,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien headline_text="headline_text_example", ), ], - image_display="image_display_example", + image_display="ShowFullImage", video_base64_strings=[ "video_base64_strings_example", ], @@ -913,19 +880,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien id="id_example", type="type_example", ), - ) # CreativeWriteRequest | (optional) + ) # CreativeWriteRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.edit_creative(id) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->edit_creative: %s\n" % e) - - # example passing only required values which don't have defaults set - # and optional values - try: - api_response = api_instance.edit_creative(id, creative_write_request=creative_write_request) + api_response = api_instance.edit_creative(id, creative_write_request) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: print("Exception when calling CreativeApi->edit_creative: %s\n" % e) @@ -937,7 +896,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| The creative identifier to edit. | - **creative_write_request** | [**CreativeWriteRequest**](CreativeWriteRequest.md)| | [optional] + **creative_write_request** | [**CreativeWriteRequest**](CreativeWriteRequest.md)| | ### Return type @@ -964,12 +923,12 @@ 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) -# **get_ad** -> AdResponse get_ad(id) +# **generate_creative_preview** +> str generate_creative_preview(id) -Get an Ad with its id +Generate a preview of a specific Creative ### Example @@ -980,7 +939,6 @@ Get an Ad with its id import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.ad_response import AdResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1009,14 +967,24 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) - id = 1 # int | The ad identifier to retrieve. + id = "id_example" # str | The Creative identifier to preview. + width = 1 # int | The width of the Creative to preview. (optional) + height = 1 # int | The height of the Creative to preview. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.get_ad(id) + api_response = api_instance.generate_creative_preview(id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_ad: %s\n" % e) + print("Exception when calling CreativeApi->generate_creative_preview: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.generate_creative_preview(id, width=width, height=height) + pprint(api_response) + except criteo_api_marketingsolutions_preview.ApiException as e: + print("Exception when calling CreativeApi->generate_creative_preview: %s\n" % e) ``` @@ -1024,11 +992,13 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| The ad identifier to retrieve. | + **id** | **str**| The Creative identifier to preview. | + **width** | **int**| The width of the Creative to preview. | [optional] + **height** | **int**| The height of the Creative to preview. | [optional] ### Return type -[**AdResponse**](AdResponse.md) +**str** ### Authorization @@ -1037,26 +1007,25 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: text/plain, application/json, text/json + - **Accept**: text/html, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The found ad is returned. | - | +**200** | The preview HTML of a specific Creative is returned. | - | **400** | The request contained invalid parameters. | - | -**401** | The request was not properly authorized. | - | -**500** | A non-request based error occurred on the server. | - | +**403** | The request was not properly authorized. | - | [[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) -# **get_ads** -> AdListResponse get_ads(advertiser_id) +# **get_ad** +> AdResponse get_ad(id) -Get the list of self-services Ads for a given advertiser +Get an Ad from its id ### Example @@ -1067,7 +1036,7 @@ Get the list of self-services Ads for a given advertiser import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.ad_list_response import AdListResponse +from criteo_api_marketingsolutions_preview.model.ad_response import AdResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1096,24 +1065,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) - advertiser_id = "advertiser-id_example" # str | The advertiser identifier. - limit = 1 # int | The number of ads to be returned. The default is 50. (optional) - offset = 1 # int | The (zero-based) offset into the collection of ads. The default is 0. (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_ads(advertiser_id) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_ads: %s\n" % e) + id = 1 # int | The ad identifier to retrieve. # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_ads(advertiser_id, limit=limit, offset=offset) + api_response = api_instance.get_ad(id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_ads: %s\n" % e) + print("Exception when calling CreativeApi->get_ad: %s\n" % e) ``` @@ -1121,13 +1080,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **advertiser_id** | **str**| The advertiser identifier. | - **limit** | **int**| The number of ads to be returned. The default is 50. | [optional] - **offset** | **int**| The (zero-based) offset into the collection of ads. The default is 0. | [optional] + **id** | **int**| The ad identifier to retrieve. | ### Return type -[**AdListResponse**](AdListResponse.md) +[**AdResponse**](AdResponse.md) ### Authorization @@ -1143,19 +1100,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of self-services Ads is returned. | - | +**200** | The found ad is returned. | - | **400** | The request contained invalid parameters. | - | **401** | The request was not properly authorized. | - | **500** | A non-request based error occurred on the server. | - | [[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) -# **get_coupon** -> CouponResponse get_coupon(advertiser_id, id) +# **get_advertiser_ads** +> AdListResponse get_advertiser_ads(advertiser_id) -Get a Coupon with its id +Get the list of self-services Ads for a given advertiser ### Example @@ -1166,7 +1123,7 @@ Get a Coupon with its id import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.coupon_response import CouponResponse +from criteo_api_marketingsolutions_preview.model.ad_list_response import AdListResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1196,14 +1153,23 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) advertiser_id = "advertiser-id_example" # str | The advertiser identifier. - id = "id_example" # str | The Coupon identifier to retrieve. + limit = 1 # int | The number of ads to be returned. The default is 50. (optional) + offset = 1 # int | The (zero-based) offset into the collection of ads. The default is 0. (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_advertiser_ads(advertiser_id) + pprint(api_response) + except criteo_api_marketingsolutions_preview.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_ads: %s\n" % e) # example passing only required values which don't have defaults set + # and optional values try: - api_response = api_instance.get_coupon(advertiser_id, id) + api_response = api_instance.get_advertiser_ads(advertiser_id, limit=limit, offset=offset) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupon: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_ads: %s\n" % e) ``` @@ -1212,11 +1178,12 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **id** | **str**| The Coupon identifier to retrieve. | + **limit** | **int**| The number of ads to be returned. The default is 50. | [optional] + **offset** | **int**| The (zero-based) offset into the collection of ads. The default is 0. | [optional] ### Return type -[**CouponResponse**](CouponResponse.md) +[**AdListResponse**](AdListResponse.md) ### Authorization @@ -1232,18 +1199,19 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The found Coupon is returned. | - | +**200** | The list of self-services Ads is returned. | - | **400** | The request contained invalid parameters. | - | -**403** | The request was not properly authorized. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | [[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) -# **get_coupon_preview** -> str get_coupon_preview(advertiser_id, id) +# **get_advertiser_coupon** +> CouponResponse get_advertiser_coupon(advertiser_id, id) -Get the preview of a specific Coupon +Get a Coupon from its id ### Example @@ -1254,6 +1222,7 @@ Get the preview of a specific Coupon import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api +from criteo_api_marketingsolutions_preview.model.coupon_response import CouponResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1283,24 +1252,14 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) advertiser_id = "advertiser-id_example" # str | The advertiser identifier. - id = "id_example" # str | The Coupon identifier to preview. - width = 1 # int | The width of the coupon to preview. (optional) - height = 1 # int | The height of the coupon to preview. (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_coupon_preview(advertiser_id, id) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupon_preview: %s\n" % e) + id = "id_example" # str | The Coupon identifier to retrieve. # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_coupon_preview(advertiser_id, id, width=width, height=height) + api_response = api_instance.get_advertiser_coupon(advertiser_id, id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupon_preview: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_coupon: %s\n" % e) ``` @@ -1309,13 +1268,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **id** | **str**| The Coupon identifier to preview. | - **width** | **int**| The width of the coupon to preview. | [optional] - **height** | **int**| The height of the coupon to preview. | [optional] + **id** | **str**| The Coupon identifier to retrieve. | ### Return type -**str** +[**CouponResponse**](CouponResponse.md) ### Authorization @@ -1324,25 +1281,25 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: text/html, application/json, text/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The preview HTML of a specific Coupon is returned. | - | +**200** | The found Coupon is returned. | - | **400** | The request contained invalid parameters. | - | **403** | The request was not properly authorized. | - | [[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) -# **get_coupon_supported_sizes** -> CouponSupportedSizesResponse get_coupon_supported_sizes(advertiser_id) +# **get_advertiser_coupon_preview** +> str get_advertiser_coupon_preview(advertiser_id, id) -Get the list of Coupon supported sizes +Get the preview of a specific Coupon ### Example @@ -1353,7 +1310,6 @@ Get the list of Coupon supported sizes import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.coupon_supported_sizes_response import CouponSupportedSizesResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1383,22 +1339,24 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) advertiser_id = "advertiser-id_example" # str | The advertiser identifier. - ad_set_id = "ad-set-id_example" # str | The ad set id on which you want to check the Coupon supported sizes. (optional) + id = "id_example" # str | The Coupon identifier to preview. + width = 1 # int | The width of the coupon to preview. (optional) + height = 1 # int | The height of the coupon to preview. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.get_coupon_supported_sizes(advertiser_id) + api_response = api_instance.get_advertiser_coupon_preview(advertiser_id, id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupon_supported_sizes: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_coupon_preview: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_coupon_supported_sizes(advertiser_id, ad_set_id=ad_set_id) + api_response = api_instance.get_advertiser_coupon_preview(advertiser_id, id, width=width, height=height) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupon_supported_sizes: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_coupon_preview: %s\n" % e) ``` @@ -1407,11 +1365,13 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **ad_set_id** | **str**| The ad set id on which you want to check the Coupon supported sizes. | [optional] + **id** | **str**| The Coupon identifier to preview. | + **width** | **int**| The width of the coupon to preview. | [optional] + **height** | **int**| The height of the coupon to preview. | [optional] ### Return type -[**CouponSupportedSizesResponse**](CouponSupportedSizesResponse.md) +**str** ### Authorization @@ -1420,25 +1380,25 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: text/plain, application/json, text/json + - **Accept**: text/html, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of Coupon supported sizes is returned. | - | +**200** | The preview HTML of a specific Coupon is returned. | - | **400** | The request contained invalid parameters. | - | **403** | The request was not properly authorized. | - | [[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) -# **get_coupons** -> CouponListResponse get_coupons(advertiser_id) +# **get_advertiser_coupon_supported_sizes** +> CouponSupportedSizesResponse get_advertiser_coupon_supported_sizes(advertiser_id) -Get the list of self-services Coupons for a given advertiser +Get the list of Coupon supported sizes ### Example @@ -1449,7 +1409,7 @@ Get the list of self-services Coupons for a given advertiser import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.coupon_list_response import CouponListResponse +from criteo_api_marketingsolutions_preview.model.coupon_supported_sizes_response import CouponSupportedSizesResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1479,23 +1439,22 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) advertiser_id = "advertiser-id_example" # str | The advertiser identifier. - limit = 1 # int | The number of coupons to be returned. The default is 50. (optional) - offset = 1 # int | The (zero-based) offset into the collection of coupons. The default is 0. (optional) + ad_set_id = "ad-set-id_example" # str | The ad set id on which you want to check the Coupon supported sizes. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.get_coupons(advertiser_id) + api_response = api_instance.get_advertiser_coupon_supported_sizes(advertiser_id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupons: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_coupon_supported_sizes: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_coupons(advertiser_id, limit=limit, offset=offset) + api_response = api_instance.get_advertiser_coupon_supported_sizes(advertiser_id, ad_set_id=ad_set_id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_coupons: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_coupon_supported_sizes: %s\n" % e) ``` @@ -1504,12 +1463,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **advertiser_id** | **str**| The advertiser identifier. | - **limit** | **int**| The number of coupons to be returned. The default is 50. | [optional] - **offset** | **int**| The (zero-based) offset into the collection of coupons. The default is 0. | [optional] + **ad_set_id** | **str**| The ad set id on which you want to check the Coupon supported sizes. | [optional] ### Return type -[**CouponListResponse**](CouponListResponse.md) +[**CouponSupportedSizesResponse**](CouponSupportedSizesResponse.md) ### Authorization @@ -1525,18 +1483,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of self-services Coupons is returned. | - | +**200** | The list of Coupon supported sizes is returned. | - | **400** | The request contained invalid parameters. | - | **403** | The request was not properly authorized. | - | [[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) -# **get_creative** -> CreativeResponse get_creative(id) +# **get_advertiser_coupons** +> CouponListResponse get_advertiser_coupons(advertiser_id) -Get a Creative with its id +Get the list of self-services Coupons for a given advertiser ### Example @@ -1547,7 +1505,7 @@ Get a Creative with its id import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.creative_response import CreativeResponse +from criteo_api_marketingsolutions_preview.model.coupon_list_response import CouponListResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1576,14 +1534,24 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) - id = "id_example" # str | The creative identifier to retrieve. + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + limit = 1 # int | The number of coupons to be returned. The default is 50. (optional) + offset = 1 # int | The (zero-based) offset into the collection of coupons. The default is 0. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.get_creative(id) + api_response = api_instance.get_advertiser_coupons(advertiser_id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_creative: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_coupons: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_advertiser_coupons(advertiser_id, limit=limit, offset=offset) + pprint(api_response) + except criteo_api_marketingsolutions_preview.ApiException as e: + print("Exception when calling CreativeApi->get_advertiser_coupons: %s\n" % e) ``` @@ -1591,11 +1559,13 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| The creative identifier to retrieve. | + **advertiser_id** | **str**| The advertiser identifier. | + **limit** | **int**| The number of coupons to be returned. The default is 50. | [optional] + **offset** | **int**| The (zero-based) offset into the collection of coupons. The default is 0. | [optional] ### Return type -[**CreativeResponse**](CreativeResponse.md) +[**CouponListResponse**](CouponListResponse.md) ### Authorization @@ -1611,19 +1581,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The found creative is returned. | - | +**200** | The list of self-services Coupons is returned. | - | **400** | The request contained invalid parameters. | - | -**401** | The request was not properly authorized. | - | -**500** | A non-request based error occurred on the server. | - | +**403** | The request was not properly authorized. | - | [[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) -# **get_creative_preview_post** -> str get_creative_preview_post(id) +# **get_advertiser_creatives** +> CreativeListResponse get_advertiser_creatives(advertiser_id) -Get the preview of a specific Creative +Get the list of self-services Creatives for a given advertiser ### Example @@ -1634,6 +1603,7 @@ Get the preview of a specific Creative import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api +from criteo_api_marketingsolutions_preview.model.creative_list_response import CreativeListResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1662,24 +1632,24 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) - id = "id_example" # str | The Creative identifier to preview. - width = 1 # int | The width of the Creative to preview. (optional) - height = 1 # int | The height of the Creative to preview. (optional) + advertiser_id = "advertiser-id_example" # str | The advertiser identifier. + limit = 1 # int | The number of creatives to be returned. The default is 50. (optional) + offset = 1 # int | The (zero-based) offset into the collection of creatives. The default is 0. (optional) # example passing only required values which don't have defaults set try: - api_response = api_instance.get_creative_preview_post(id) + api_response = api_instance.get_advertiser_creatives(advertiser_id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_creative_preview_post: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_creatives: %s\n" % e) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.get_creative_preview_post(id, width=width, height=height) + api_response = api_instance.get_advertiser_creatives(advertiser_id, limit=limit, offset=offset) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_creative_preview_post: %s\n" % e) + print("Exception when calling CreativeApi->get_advertiser_creatives: %s\n" % e) ``` @@ -1687,13 +1657,13 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **str**| The Creative identifier to preview. | - **width** | **int**| The width of the Creative to preview. | [optional] - **height** | **int**| The height of the Creative to preview. | [optional] + **advertiser_id** | **str**| The advertiser identifier. | + **limit** | **int**| The number of creatives to be returned. The default is 50. | [optional] + **offset** | **int**| The (zero-based) offset into the collection of creatives. The default is 0. | [optional] ### Return type -**str** +[**CreativeListResponse**](CreativeListResponse.md) ### Authorization @@ -1702,25 +1672,26 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: text/html, application/json, text/json + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The preview HTML of a specific Creative is returned. | - | +**200** | The list of self-services Creatives is returned. | - | **400** | The request contained invalid parameters. | - | -**403** | The request was not properly authorized. | - | +**401** | The request was not properly authorized. | - | +**500** | A non-request based error occurred on the server. | - | [[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) -# **get_creatives** -> CreativeListResponse get_creatives(advertiser_id) +# **get_creative** +> CreativeResponse get_creative(id) -Get the list of self-services Creatives for a given advertiser +Get a Creative from its id ### Example @@ -1731,7 +1702,7 @@ Get the list of self-services Creatives for a given advertiser import time import criteo_api_marketingsolutions_preview from criteo_api_marketingsolutions_preview.api import creative_api -from criteo_api_marketingsolutions_preview.model.creative_list_response import CreativeListResponse +from criteo_api_marketingsolutions_preview.model.creative_response import CreativeResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -1760,24 +1731,14 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = creative_api.CreativeApi(api_client) - advertiser_id = "advertiser-id_example" # str | The advertiser identifier. - limit = 1 # int | The number of creatives to be returned. The default is 50. (optional) - offset = 1 # int | The (zero-based) offset into the collection of creatives. The default is 0. (optional) - - # example passing only required values which don't have defaults set - try: - api_response = api_instance.get_creatives(advertiser_id) - pprint(api_response) - except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_creatives: %s\n" % e) + id = "id_example" # str | The creative identifier to retrieve. # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_creatives(advertiser_id, limit=limit, offset=offset) + api_response = api_instance.get_creative(id) pprint(api_response) except criteo_api_marketingsolutions_preview.ApiException as e: - print("Exception when calling CreativeApi->get_creatives: %s\n" % e) + print("Exception when calling CreativeApi->get_creative: %s\n" % e) ``` @@ -1785,13 +1746,11 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **advertiser_id** | **str**| The advertiser identifier. | - **limit** | **int**| The number of creatives to be returned. The default is 50. | [optional] - **offset** | **int**| The (zero-based) offset into the collection of creatives. The default is 0. | [optional] + **id** | **str**| The creative identifier to retrieve. | ### Return type -[**CreativeListResponse**](CreativeListResponse.md) +[**CreativeResponse**](CreativeResponse.md) ### Authorization @@ -1807,7 +1766,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The list of self-services Creatives is returned. | - | +**200** | The found creative is returned. | - | **400** | The request contained invalid parameters. | - | **401** | The request was not properly authorized. | - | **500** | A non-request based error occurred on the server. | - | diff --git a/sdks/marketingsolutions_preview/docs/CreativeWrite.md b/sdks/marketingsolutions_preview/docs/CreativeWrite.md index b45bd7d5..66d31085 100644 --- a/sdks/marketingsolutions_preview/docs/CreativeWrite.md +++ b/sdks/marketingsolutions_preview/docs/CreativeWrite.md @@ -6,9 +6,9 @@ Entity to create or update a creative Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name of the creative | +**format** | **str** | The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" | +**dataset_id** | **str** | Dataset linked to the Creative | **description** | **str** | The description of the creative | [optional] -**format** | **str** | The format of the creative You can use \"Image\", \" HtmlTag\", \"Dynamic\" or \"Adaptive\" | [optional] -**dataset_id** | **str** | Dataset linked to the Creative | [optional] **image_write_attributes** | [**ImageWriteAttributes**](ImageWriteAttributes.md) | | [optional] **html_tag_write_attributes** | [**HtmlTagWriteAttributes**](HtmlTagWriteAttributes.md) | | [optional] **dynamic_write_attributes** | [**DynamicWriteAttributes**](DynamicWriteAttributes.md) | | [optional] diff --git a/sdks/marketingsolutions_preview/docs/DynamicWriteAttributes.md b/sdks/marketingsolutions_preview/docs/DynamicWriteAttributes.md index f544ffb6..a30dfbc1 100644 --- a/sdks/marketingsolutions_preview/docs/DynamicWriteAttributes.md +++ b/sdks/marketingsolutions_preview/docs/DynamicWriteAttributes.md @@ -5,13 +5,13 @@ The attributes specific to create or update a Dynamic creative ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**logo_base64_string** | **str** | Logo image as a base-64 encoded string | [optional] -**creative_background_color** | **str** | Color of the creative's background Valid hexadecimal color (e.g. \"AB00FF\") | [optional] -**body_text_color** | **str** | Color of the creative's body text Valid hexadecimal color (e.g. \"AB00FF\") | [optional] -**prices_color** | **str** | Color of the creative's prices Valid hexadecimal color (e.g. \"AB00FF\") | [optional] +**logo_base64_string** | **str** | Logo image as a base-64 encoded string | +**body_text_color** | **str** | Color of the creative's body text Valid hexadecimal RGB color (e.g. \"AB00FF\") | +**prices_color** | **str** | Color of the creative's prices Valid hexadecimal RGB color (e.g. \"AB00FF\") | +**calls_to_action** | **[str]** | A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. | +**product_image_display** | **str** | Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. | +**creative_background_color** | **str** | Color of the creative's background Valid hexadecimal RGB color (e.g. \"AB00FF\") | [optional] **primary_font** | **str** | Font of the primary font Valid supported font like \"Arial\" | [optional] -**calls_to_action** | **[str]** | A Call-to-Action (CTA) is an action-driven instruction to your audience intended to provoke an immediate response, such as “Buy now” or “Go!”. | [optional] -**product_image_display** | **str** | Value can be \"ShowFullImage\" or \"ZoomOnImage\". Choose whether your product catalog images should fit inside the allocated space (\"ShowFullImage\") or whether they should fill that space (\"ZoomOnImage\"). If you choose ZoomOnImage, there may be some image cropping. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md index 7d2f05fb..eed9d49a 100644 --- a/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md +++ b/sdks/marketingsolutions_preview/docs/GenerateAudiencePerformanceReportRequestAttributes.md @@ -13,8 +13,8 @@ Name | Type | Description | Notes **timezone** | **str** | The timezone used for the report. Timezone Database format (Tz). | [optional] **currency** | **str** | The currency used for the report. ISO 4217 code (three-letter capitals). | [optional] **ad_set_ids** | **[str]** | The list of adSets ids. If empty, all the adSets will be fetched. | [optional] -**audience_ids** | **[str]** | The list of Audiences ids. If empty, all the Audiences will be fetched | [optional] -**segments_ids** | **[str]** | The list of Segments ids. If empty, all the segments will be fetched | [optional] +**audience_ids** | **[str]** | The list of Audiences ids. If empty, all the Audiences will be fetched. | [optional] +**segments_ids** | **[str]** | The list of Segments ids. If empty, all the segments will be fetched. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/HtmlTagWriteAttributes.md b/sdks/marketingsolutions_preview/docs/HtmlTagWriteAttributes.md index 3209d1d7..10662ff4 100644 --- a/sdks/marketingsolutions_preview/docs/HtmlTagWriteAttributes.md +++ b/sdks/marketingsolutions_preview/docs/HtmlTagWriteAttributes.md @@ -5,7 +5,7 @@ The attributes specific to create or update a HtmlTag creative ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tags** | [**[Tag]**](Tag.md) | An array containing the html tags | [optional] +**tags** | [**[Tag]**](Tag.md) | An array containing the html tags | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/ImageWriteAttributes.md b/sdks/marketingsolutions_preview/docs/ImageWriteAttributes.md index 984c675c..9d73bfe1 100644 --- a/sdks/marketingsolutions_preview/docs/ImageWriteAttributes.md +++ b/sdks/marketingsolutions_preview/docs/ImageWriteAttributes.md @@ -5,8 +5,8 @@ The attributes specific to create or update an Image creative ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**base64_strings** | **[str]** | Array of images as a base-64 encoded string | [optional] -**landing_page_url** | **str** | Web redirection of the landing page url | [optional] +**base64_strings** | **[str]** | Array of images as a base-64 encoded string | +**landing_page_url** | **str** | Web redirection of the landing page url | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/InMarketCreateV1.md b/sdks/marketingsolutions_preview/docs/InMarketCreateV1.md index d8451b9e..a8c76946 100644 --- a/sdks/marketingsolutions_preview/docs/InMarketCreateV1.md +++ b/sdks/marketingsolutions_preview/docs/InMarketCreateV1.md @@ -5,12 +5,12 @@ Settings to target users based on high shopping intents and demographics. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**country** | **str** | | [optional] -**buying_power** | **[str]** | | [optional] -**gender** | **str** | | [optional] -**interest_ids** | **[str]** | | [optional] -**brand_ids** | **[str]** | | [optional] -**price_range** | **[str]** | | [optional] +**country** | **str** | Reach people of a specific country | +**buying_power** | **[str]** | Reach people who frequently purchase high price range items to lower price range items | [optional] +**gender** | **str** | Reach people who’ve shown interest in products made for a specific gender | [optional] +**interest_ids** | **[str]** | Reach new people based on their interests | [optional] +**brand_ids** | **[str]** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str]** | Reach people who’ve shown interest in products within a specific price range | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/InMarketSizeEstimationV1.md b/sdks/marketingsolutions_preview/docs/InMarketSizeEstimationV1.md index b5c388cd..a7f02e91 100644 --- a/sdks/marketingsolutions_preview/docs/InMarketSizeEstimationV1.md +++ b/sdks/marketingsolutions_preview/docs/InMarketSizeEstimationV1.md @@ -5,7 +5,7 @@ Settings to target users based on high shopping intents and demographics. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**country** | **str** | | [optional] +**country** | **str** | | **buying_power** | **[str]** | | [optional] **gender** | **str** | | [optional] **interest_ids** | **[str]** | | [optional] diff --git a/sdks/marketingsolutions_preview/docs/InMarketUpdateV1.md b/sdks/marketingsolutions_preview/docs/InMarketUpdateV1.md index 12c69aa4..36dbb1e4 100644 --- a/sdks/marketingsolutions_preview/docs/InMarketUpdateV1.md +++ b/sdks/marketingsolutions_preview/docs/InMarketUpdateV1.md @@ -5,12 +5,12 @@ Settings to target users based on high shopping intents and demographics. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**country** | **str** | | [optional] -**buying_power** | **[str]** | | [optional] +**country** | **str** | Reach people of a specific country | [optional] +**buying_power** | **[str]** | Reach people who frequently purchase high price range items to lower price range items | [optional] **gender** | [**NillableGenderV1**](NillableGenderV1.md) | | [optional] -**interest_ids** | **[str]** | | [optional] -**brand_ids** | **[str]** | | [optional] -**price_range** | **[str]** | | [optional] +**interest_ids** | **[str]** | Reach new people based on their interests | [optional] +**brand_ids** | **[str]** | Choose the brands your segment might be interested in | [optional] +**price_range** | **[str]** | Reach people who’ve shown interest in products within a specific price range | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/ListAvailableIndustriesResponse.md b/sdks/marketingsolutions_preview/docs/ListAvailableIndustriesResponse.md index 5e171235..4452225d 100644 --- a/sdks/marketingsolutions_preview/docs/ListAvailableIndustriesResponse.md +++ b/sdks/marketingsolutions_preview/docs/ListAvailableIndustriesResponse.md @@ -6,7 +6,7 @@ List Available Industries Response Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[EntityV2OfObject]**](EntityV2OfObject.md) | The response�s primary data | [optional] -**errors** | [**[CriteoApiErrorV2]**](CriteoApiErrorV2.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] +**errors** | [**[CommonProblem]**](CommonProblem.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] **warnings** | [**[CriteoApiWarningV2]**](CriteoApiWarningV2.md) | Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/LocationCreateV1.md b/sdks/marketingsolutions_preview/docs/LocationCreateV1.md index 3a36edba..eb6d9ac9 100644 --- a/sdks/marketingsolutions_preview/docs/LocationCreateV1.md +++ b/sdks/marketingsolutions_preview/docs/LocationCreateV1.md @@ -5,8 +5,8 @@ Settings to target users based on their location. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | | [optional] -**radius_in_km** | **int** | | [optional] +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | +**radius_in_km** | **int** | The expected maximum distance in kilometers between a user and a point of interest | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/LocationSizeEstimationV1.md b/sdks/marketingsolutions_preview/docs/LocationSizeEstimationV1.md index 9a5ded24..c9fe8594 100644 --- a/sdks/marketingsolutions_preview/docs/LocationSizeEstimationV1.md +++ b/sdks/marketingsolutions_preview/docs/LocationSizeEstimationV1.md @@ -5,8 +5,8 @@ Settings to define your audience based on their location. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | | [optional] -**radius_in_km** | **int** | | [optional] +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | | +**radius_in_km** | **int** | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/LocationUpdateV1.md b/sdks/marketingsolutions_preview/docs/LocationUpdateV1.md index c823c474..e87406dd 100644 --- a/sdks/marketingsolutions_preview/docs/LocationUpdateV1.md +++ b/sdks/marketingsolutions_preview/docs/LocationUpdateV1.md @@ -5,9 +5,9 @@ Settings to target users based on their location. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | | [optional] +**points_of_interest** | [**[PointOfInterestV1]**](PointOfInterestV1.md) | Reach users which have been historically located in the given coordinates | [optional] **radius_in_km** | **int** | Radius in kilometers | [optional] -**registry_type** | **str** | | [optional] if omitted the server will use the default value of "PointOfInterest" +**registry_type** | **str** | The kind of Location audience | [optional] if omitted the server will use the default value of "PointOfInterest" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/LookalikeCreateV1.md b/sdks/marketingsolutions_preview/docs/LookalikeCreateV1.md index d97ca4af..4cf226a3 100644 --- a/sdks/marketingsolutions_preview/docs/LookalikeCreateV1.md +++ b/sdks/marketingsolutions_preview/docs/LookalikeCreateV1.md @@ -5,8 +5,8 @@ Settings to target users close to a given seed segment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**seed_segment_id** | **str** | | [optional] -**target_size** | **int** | | [optional] +**seed_segment_id** | **str** | Segment from which the Lookalike segment will be generated | +**target_size** | **int** | Desired size of the generated Lookalike segment | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/LookalikeUpdateV1.md b/sdks/marketingsolutions_preview/docs/LookalikeUpdateV1.md index e081a93d..2c7320ee 100644 --- a/sdks/marketingsolutions_preview/docs/LookalikeUpdateV1.md +++ b/sdks/marketingsolutions_preview/docs/LookalikeUpdateV1.md @@ -5,7 +5,7 @@ Settings to target users that behave like a given seed segment ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**target_size** | **int** | | [optional] +**target_size** | **int** | Desired size of the generated Lookalike segment | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/NillableInt32.md b/sdks/marketingsolutions_preview/docs/NillableInt32.md new file mode 100644 index 00000000..0c58a7be --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/NillableInt32.md @@ -0,0 +1,13 @@ +# NillableInt32 + +Placeholder object for value for which \"null\" is a valid business value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **int** | The value. If missing or null the value is set to \"null\" | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md b/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md index ae18b070..2844ed2b 100644 --- a/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md +++ b/sdks/marketingsolutions_preview/docs/OnSiteRecoRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **nb_requested_products** | **int** | Amount of products to recommend. | **partner_id** | **int** | Id of the partner. | **user_id** | **str** | Used to retrieve user events from Criteo trackers. Optional if UserEvents are passed. | [optional] +**identity_type** | **str** | Type of the user identifier (cto_bundle, Idfa, Gaid...) Optional if UserId is not set or if its type is cto_bundle | [optional] **user_events** | [**[UserEvent]**](UserEvent.md) | Used to perform a recommendation without relying on events stored for a UserId. Optional if UserId is passed. | [optional] **ad_set_id** | **int** | Id of the AdSet. This field is optional and is resolved automatically for adsets previously configured. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md b/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md index ed179ec6..bf7623a3 100644 --- a/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md +++ b/sdks/marketingsolutions_preview/docs/OnSiteRecommendationApi.md @@ -56,6 +56,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien on_site_reco_request = OnSiteRecoRequest( nb_requested_products=1, user_id="user_id_example", + identity_type="CtoBundle", user_events=[ UserEvent( product_external_id="product_external_id_example", diff --git a/sdks/marketingsolutions_preview/docs/ProspectingCreateV1.md b/sdks/marketingsolutions_preview/docs/ProspectingCreateV1.md new file mode 100644 index 00000000..91a027b5 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ProspectingCreateV1.md @@ -0,0 +1,15 @@ +# ProspectingCreateV1 + +Settings to target prospecting users to website visitors. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users_type** | **str** | Type of users to target | +**days_since_last_visit_min** | **int** | When non buyers are included, include users who visited your website before this number of days | [optional] +**days_since_last_visit_max** | **int** | When non buyers are included, include users who visited your website after this number of days | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/ProspectingUpdateV1.md b/sdks/marketingsolutions_preview/docs/ProspectingUpdateV1.md new file mode 100644 index 00000000..f41bec91 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ProspectingUpdateV1.md @@ -0,0 +1,15 @@ +# ProspectingUpdateV1 + +Settings to target prospecting users to website visitors. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**days_since_last_visit_min** | [**NillableInt32**](NillableInt32.md) | | [optional] +**days_since_last_visit_max** | [**NillableInt32**](NillableInt32.md) | | [optional] +**users_type** | **str** | Type of users to target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/ProspectingV1.md b/sdks/marketingsolutions_preview/docs/ProspectingV1.md new file mode 100644 index 00000000..13347234 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ProspectingV1.md @@ -0,0 +1,15 @@ +# ProspectingV1 + +Settings to target prospecting users to website visitors. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**days_since_last_visit_min** | **int** | When non buyers are included, include users who visited your website before this number of days | [optional] +**days_since_last_visit_max** | **int** | When non buyers are included, include users who visited your website after this number of days | [optional] +**users_type** | **str** | Type of users to target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/RecoApi.md b/sdks/marketingsolutions_preview/docs/RecoApi.md index 8af74423..5bfc91c4 100644 --- a/sdks/marketingsolutions_preview/docs/RecoApi.md +++ b/sdks/marketingsolutions_preview/docs/RecoApi.md @@ -68,7 +68,7 @@ with criteo_api_marketingsolutions_preview.ApiClient(configuration) as api_clien rules=[ ProductSetRule( operator="IsIn", - field="Category1", + field="OBSOLETE_Extradata", values=[ "values_example", ], diff --git a/sdks/marketingsolutions_preview/docs/RetargetingCreateV1.md b/sdks/marketingsolutions_preview/docs/RetargetingCreateV1.md index ff77b24a..ea88876c 100644 --- a/sdks/marketingsolutions_preview/docs/RetargetingCreateV1.md +++ b/sdks/marketingsolutions_preview/docs/RetargetingCreateV1.md @@ -5,9 +5,9 @@ Settings to target users based on its type and days since last visit. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**visitors_type** | **str** | | [optional] -**days_since_last_visit_min** | **int** | | [optional] -**days_since_last_visit_max** | **int** | | [optional] +**visitors_type** | **str** | Types of visitors. | +**days_since_last_visit_min** | **int** | Minimum number of days since last visit to partner. | +**days_since_last_visit_max** | **int** | Maximum number of days since last visit to partner. | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/RetargetingUpdateV1.md b/sdks/marketingsolutions_preview/docs/RetargetingUpdateV1.md index 7ad11259..21dfa42e 100644 --- a/sdks/marketingsolutions_preview/docs/RetargetingUpdateV1.md +++ b/sdks/marketingsolutions_preview/docs/RetargetingUpdateV1.md @@ -5,9 +5,9 @@ Settings to target users based on its type and days since last visit. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**visitors_type** | **str** | | [optional] -**days_since_last_visit_min** | **int** | | [optional] -**days_since_last_visit_max** | **int** | | [optional] +**visitors_type** | **str** | Types of visitors. | [optional] +**days_since_last_visit_min** | **int** | Minimum number of days since last visit to partner. | [optional] +**days_since_last_visit_max** | **int** | Maximum number of days since last visit to partner. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/RetargetingV1.md b/sdks/marketingsolutions_preview/docs/RetargetingV1.md index 4724304f..3f27aa94 100644 --- a/sdks/marketingsolutions_preview/docs/RetargetingV1.md +++ b/sdks/marketingsolutions_preview/docs/RetargetingV1.md @@ -5,9 +5,9 @@ Settings to target users based on its type and days since last visit. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**visitors_type** | **str** | | [optional] -**days_since_last_visit_min** | **int** | | [optional] -**days_since_last_visit_max** | **int** | | [optional] +**visitors_type** | **str** | Types of visitors. | [optional] +**days_since_last_visit_min** | **int** | Minimum number of days since last visit to partner. | [optional] +**days_since_last_visit_max** | **int** | Maximum number of days since last visit to partner. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/docs/StatisticsRecord.md b/sdks/marketingsolutions_preview/docs/StatisticsRecord.md index 7bdc9b00..971e43cd 100644 --- a/sdks/marketingsolutions_preview/docs/StatisticsRecord.md +++ b/sdks/marketingsolutions_preview/docs/StatisticsRecord.md @@ -8,8 +8,9 @@ Name | Type | Description | Notes **start_date** | **datetime** | Start date of streaming products collection | **end_date** | **datetime** | End date of streaming products collection | **total** | **int** | The number of total products at endDate moment | -**displayable** | **int** | The number of displayable products at endDate moment | -**non_displayable** | **int** | The number of non displayable products at endDate moment | +**variant** | **int** | The number of total variant products at endDate moment | +**displayable** | **int** | The number of total displayable products at endDate moment | +**non_displayable** | **int** | The number of total non-displayable products at endDate moment | **added** | **int** | The number of inserted products during the period between startDate and endDate | **deleted** | **int** | The number of deleted products during the period between startDate and endDate | **updated** | **int** | The number of updated products during the period between startDate and endDate | diff --git a/sdks/marketingsolutions_preview/docs/TargetingEntity.md b/sdks/marketingsolutions_preview/docs/TargetingEntity.md index 18c3eccb..c128d86c 100644 --- a/sdks/marketingsolutions_preview/docs/TargetingEntity.md +++ b/sdks/marketingsolutions_preview/docs/TargetingEntity.md @@ -5,8 +5,8 @@ Represents either an allowlisting or a blocklisting rule ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **str** | Can be either domain or bundle | [optional] -**mode** | **str** | Can be either blocklist or allowlist | [optional] +**type** | **str** | Can be either DOMAIN or BUNDLE | [optional] +**mode** | **str** | Can be either BLOCKLIST or ALLOWLIST | [optional] **data** | [**[EntityFilter]**](EntityFilter.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/UnauthorizedResponseV2.md b/sdks/marketingsolutions_preview/docs/UnauthorizedResponseV2.md index dbd28b1d..3e578a2b 100644 --- a/sdks/marketingsolutions_preview/docs/UnauthorizedResponseV2.md +++ b/sdks/marketingsolutions_preview/docs/UnauthorizedResponseV2.md @@ -6,7 +6,7 @@ Unauthorized Response Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**EntityV2OfObject**](EntityV2OfObject.md) | | [optional] -**errors** | [**[CriteoApiErrorV2]**](CriteoApiErrorV2.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] +**errors** | [**[CommonProblem]**](CommonProblem.md) | Error list returned by the Criteo API For successful requests it is empty | [optional] **warnings** | [**[CriteoApiWarningV2]**](CriteoApiWarningV2.md) | Warnings list returned by the Criteo API In some situations the operations are successful but it may be useful to issue warnings to the API consumer. For example the endpoint, entity or field is deprecated. Warnings are like compiler warnings, they indicate that problems may occur in the future. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/marketingsolutions_preview/docs/ValueResourceOfAdvertiserCreationInput.md b/sdks/marketingsolutions_preview/docs/ValueResourceOfAdvertiserCreationInput.md new file mode 100644 index 00000000..7f3f2b67 --- /dev/null +++ b/sdks/marketingsolutions_preview/docs/ValueResourceOfAdvertiserCreationInput.md @@ -0,0 +1,14 @@ +# ValueResourceOfAdvertiserCreationInput + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AdvertiserCreationInput**](AdvertiserCreationInput.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/marketingsolutions_preview/setup.py b/sdks/marketingsolutions_preview/setup.py index fd68a103..f47bcd96 100644 --- a/sdks/marketingsolutions_preview/setup.py +++ b/sdks/marketingsolutions_preview/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-marketingsolutions-sdk" -VERSION = "0.0.230601" +VERSION = "0.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-marketingsolutions-sdk==0.0.230601 +pip install criteo-api-marketingsolutions-sdk==0.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==0.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2022-07/README.md b/sdks/retailmedia_2022-07/README.md index 78422b96..296b5889 100644 --- a/sdks/retailmedia_2022-07/README.md +++ b/sdks/retailmedia_2022-07/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2022.07.0.230601 +- Package version: 2022.07.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2022.07.0.230601 +pip install criteo-api-retailmedia-sdk==2022.07.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.07.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.07.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/__init__.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/__init__.py index 69c232d0..12f76cfc 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/__init__.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech """ -__version__ = "2022.07.0.230601" +__version__ = "2022.07.0.230726" # import ApiClient from criteo_api_retailmedia_v2022_07.api_client import ApiClient diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py index 62a6d29b..7f5f0962 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -39,7 +39,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_report_output_endpoint = _Endpoint( settings={ - 'response_type': (int,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -298,7 +298,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - int + str If the method is called asynchronously, returns the request thread. """ @@ -429,7 +429,7 @@ def request_campaign_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status @@ -512,7 +512,7 @@ def request_line_item_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/audience_api.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/audience_api.py index af3e0c9f..ca5516a4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/audience_api.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -72,7 +72,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_request': (CreateRetailMediaAudienceRequest,), }, @@ -181,7 +181,7 @@ def create_audience( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_request (CreateRetailMediaAudienceRequest): Keyword Args: diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/campaign_api.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/campaign_api.py index 44bb1bbb..521911ac 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/campaign_api.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py index 65a8efcf..4e369ba6 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client.py index 0ab53488..a94fc913 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2022.07.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2022.07.0.230726/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py index 351d6e55..b81ebafc 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2022-07\n"\ - "SDK Package Version: 2022.07.0.230601".\ + "SDK Package Version: 2022.07.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py index b147b427..c383e444 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py index 35654380..302644b3 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py index 820060d9..27c47d96 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py index 2acc6434..d90bd88c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/add_to_basket_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py index 8f155111..355c53f1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py index ba23374e..4c032dde 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py index 05101e97..aa1b160a 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py index a99745bc..b33625d9 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py index 365a773b..b5b2e393 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py index 5d16d218..fecc8098 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/asset_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py index ded48e72..ed99ba52 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_create_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py index afe8751f..6b2307a1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py index a3a07697..f7bf0598 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py index 00248dff..2864c508 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/auction_line_item_update_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py index 508cfd86..c1dfd7a2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py index 4a27cbf2..7e8f5c1d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py index f50d6a7b..97205449 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/audience_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/bad_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/bad_request.py index 86fea732..b4169dfa 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/bad_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/bad_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py index b3987316..4843bb69 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py index 95408de9..f47887f1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py index 99b2c94b..dddbbfa9 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/balance_campaign202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py index 99891433..8ae90c80 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py index 2807d5f6..fa56bfa4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/category202204_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_option.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_option.py index 2c9e215c..edcef67c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_option.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_option.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py index 877e8f9c..d7ef4705 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_value.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_value.py index 6ff461c5..bfb85614 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_value.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/choice_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/color_variable_value.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/color_variable_value.py index 3b99995f..d29b3a32 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/color_variable_value.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/color_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py index aecdf66c..29c096a6 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py index 9c1b6a70..e92a8043 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py index 7a82a65a..d75a3c48 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py index 71226942..17a6376f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py index f4d2ccc2..144fa8f3 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/common_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py index 2eb7e8d0..7c82aeaa 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py index ac08d87e..e5832fdc 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -98,10 +98,10 @@ def openapi_types(): return { 'user_type': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 } @cached_property @@ -131,7 +131,7 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -165,8 +165,8 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -228,7 +228,7 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -262,8 +262,8 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py index 8ea9ea6c..f9725aef 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_body.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py index cc4f7518..54b52fe5 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py index 733867ac..8ee0bfe9 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/create_retail_media_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py index 41820ecb..7cec4c22 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py index 930d9cd1..9a7cb00d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202110_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py index bb3e0dfa..272a84c7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py index e7d72bad..59118176 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative202207_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py index 3cac6d09..1c0988a0 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_create_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py index 51b0cd20..62532e51 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/creative_update_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/customer_list_details.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/customer_list_details.py index 909ecc3e..a2faed9a 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/customer_list_details.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/customer_list_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_request.py index 55be09b4..7d4beacf 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_status.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_status.py index 477865b1..797a257d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_status.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/envelope_report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py index b02276d7..afb6f29c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py index f752df85..ee057b05 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py index 2f7de74e..3928581c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py index 262fa320..a476b788 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py index 1b0788ae..cfa55df4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py index eb92d895..6b92dccb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py index ecbe4883..ea050afa 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py index 4e175d2c..d5933b13 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py index fb3249d1..34c60b6b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_balance202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_balance202110.py index a40e070f..55d9c3c0 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_balance202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_brand.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_brand.py index 992e3740..969f50f3 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_brand.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py index 8bfe1050..9accf1e1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py index 78ef9843..a3c42161 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_campaign_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py index b1d5ed75..822ae6e1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_status.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_status.py index 96598506..0094b81c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_status.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py index 3a916332..d7b602a2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py index 6f1983af..e534e4af 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_editable_campaign_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py index 7627b1bb..de485fb1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py index 4ac1827d..00c80882 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_capping202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py index 915064b7..a269e1b2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py index f1f3d1a2..475d13fb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_line_item_page_category202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_post_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_post_campaign.py index 9c28fa1f..7dd5fb5e 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_post_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_post_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py index d1a19a49..e59ac74c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py index f5c17e55..00bef1c2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py index 527c3aae..a7b7aa49 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py index b3b29dc1..0d8ef09c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py index e230c06e..40019e4d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_put_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py index 5818c179..16392c70 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py index 0c0c6795..804abbea 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_retailer_pages202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py index 0e689341..b8cc2943 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_target202110.py index b0ef0504..8cb2b521 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/external_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py index 6756a244..3cd35e45 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py index db3562bf..c560f3e4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/files_variables_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py index 9f451b43..01f78df5 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/get_page_of_audiences_by_account_id_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py index 148bb2c6..8776635d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/hyperlink_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py index a041a81d..7e7d67ae 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py index 2732d67a..8d2817a5 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/input_resource_of_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py index 79ea5814..2d1c49eb 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py index 4736ff5c..aba26ba4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py index c670fb67..360cafa3 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py index 51e08e98..979b956c 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py index a1ffffa2..c37df838 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py index 00dd3719..5ebd9326 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py index 9aae8709..edf67513 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py index 4c12ea97..a057db86 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py index 28e75e1b..80160d5a 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py index 173e0310..e033cc58 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py index ef234dd2..99e9155b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py index 2e0ac600..0d5fed47 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_page_response_of_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py index 7aec17c7..bd8444ab 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_request_of_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py index a91602be..36095436 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py index bbfc3b15..02299b78 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/json_api_single_response_of_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py index 7535c5a4..7afdb23d 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py index 12b830fd..b206853f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/keyword_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/map_string.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/map_string.py index 85125442..0020effd 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/map_string.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/map_string.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/page_metadata.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/page_metadata.py index 04138471..f91da6d2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/page_metadata.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/page_metadata.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py index 5a5d2cb5..c6974fef 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py index 66a4828b..094161d7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py index d345880d..f39284b2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_create_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py index 6768d41f..e9a3229f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/preferred_line_item_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/problem_details.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/problem_details.py index 391657bc..fc3d38bf 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/problem_details.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py index 83ee7ea8..b5f3a1e4 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py index 9125b253..fea548d2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/promoted_product202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request.py index b9f6ef6f..33184f50 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request_attributes.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request_attributes.py index f1270056..eb0850b6 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request_attributes.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech @@ -114,6 +114,7 @@ def openapi_types(): 'format': (str,), # noqa: E501 'id': (str,), # noqa: E501 'ids': ([str],), # noqa: E501 + 'revenue_type': (str,), # noqa: E501 'time_zone': (str,), # noqa: E501 'view_attribution_window': (str,), # noqa: E501 } @@ -131,6 +132,7 @@ def discriminator(): 'format': 'format', # noqa: E501 'id': 'id', # noqa: E501 'ids': 'ids', # noqa: E501 + 'revenue_type': 'revenueType', # noqa: E501 'time_zone': 'timeZone', # noqa: E501 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 } @@ -185,6 +187,7 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ @@ -284,6 +287,7 @@ def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status.py index 2022d123..f87d23be 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status_attributes.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status_attributes.py index b67c94fa..80da6f0b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status_attributes.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/report_status_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py index 3fc70d49..670cf285 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py index a86c1cff..92ce5181 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py index 6b0bdc52..84dd5485 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py index 2eed2c8d..220637fd 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_balance_campaign202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py index 273582ab..633431b7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py index 7a23a380..7631428b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py index 9c4f840e..f531f017 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py index ee3e3524..ed00c13f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_creative202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py index cf42d4c4..b080aa40 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py index 9570f039..ed021c83 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py index 2b90b58b..dd344d5f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_template.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_template.py index 9207b635..51b2d367 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_template.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/resource_of_template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py index 9101867b..61d69ef1 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py index 15f6fbc9..9987d840 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py index 941832ad..e8dbab39 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/section.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py index a0207776..f2d9fcce 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py index 71f973a5..29981057 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py index 5e5b13b8..e1526a3f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/store_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py index 6859c03b..feeccdac 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py index a161841f..07c89faa 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py index 24be47fa..aaa02c25 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py index 67b3738f..a5e8f560 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py index 8ff7b09c..aaa470ce 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/template_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_specification.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_specification.py index c918507b..96fcdcf6 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_specification.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py index 722b4f02..ae8e752b 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/text_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/user_behavior_details.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/user_behavior_details.py index 646485bd..a6983a05 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/user_behavior_details.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/user_behavior_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py index d1f45f52..611de590 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py index 46ee4601..3531bac2 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py index c57585fe..1fed2f68 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py index 098b91ca..850d6f70 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py index 57608364..68298376 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py index 5754f619..c05aa033 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py index 255c35f6..06f2159f 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model/value_type_resource_of_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py index 413f7471..38cb6f63 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/rest.py b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/rest.py index f321629e..67eb7ae7 100644 --- a/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/rest.py +++ b/sdks/retailmedia_2022-07/criteo_api_retailmedia_v2022_07/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-07 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-07/docs/AnalyticsApi.md b/sdks/retailmedia_2022-07/docs/AnalyticsApi.md index 826ae513..6aaf66b3 100644 --- a/sdks/retailmedia_2022-07/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2022-07/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_report_output** -> int get_report_output(report_id) +> str get_report_output(report_id) @@ -54,7 +54,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Return type -**int** +**str** ### Authorization @@ -141,7 +141,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -241,13 +241,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -262,7 +263,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type @@ -347,13 +348,14 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -368,7 +370,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type diff --git a/sdks/retailmedia_2022-07/docs/AudienceApi.md b/sdks/retailmedia_2022-07/docs/AudienceApi.md index 6d7950ed..61cf70bb 100644 --- a/sdks/retailmedia_2022-07/docs/AudienceApi.md +++ b/sdks/retailmedia_2022-07/docs/AudienceApi.md @@ -54,7 +54,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_request = CreateRetailMediaAudienceRequest( data=CreateRetailMediaAudienceBody( type="RetailMediaAudience", @@ -62,12 +62,12 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: user_type="viewer", lookback_window="P7D", brand_ids=[ - "brand_ids_example", + 1, ], category_ids=[ - "category_ids_example", + 1, ], - retailer_id="68004146450571264", + retailer_id=6841, name="Test audience", ), ), @@ -86,7 +86,7 @@ with criteo_api_retailmedia_v2022_07.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_request** | [**CreateRetailMediaAudienceRequest**](CreateRetailMediaAudienceRequest.md)| | ### Return type diff --git a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceAttributes.md index cc255e6a..26d16ce9 100644 --- a/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_2022-07/docs/CreateRetailMediaAudienceAttributes.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_type** | **str** | Type of the user | **lookback_window** | **str** | Length of lookback window | -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | -**brand_ids** | **[str]** | The brands to target | [optional] -**category_ids** | **[str]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md b/sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md index b2e02b85..0c6a7628 100644 --- a/sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md +++ b/sdks/retailmedia_2022-07/docs/ReportRequestAttributes.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **format** | **str** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" **id** | **str** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] **ids** | **[str]** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] +**revenue_type** | **str** | | [optional] **time_zone** | **str** | | [optional] **view_attribution_window** | **str** | Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2022-07/setup.py b/sdks/retailmedia_2022-07/setup.py index 4f88df45..785a042d 100644 --- a/sdks/retailmedia_2022-07/setup.py +++ b/sdks/retailmedia_2022-07/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2022.07.0.230601" +VERSION = "2022.07.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2022.07.0.230601 +pip install criteo-api-retailmedia-sdk==2022.07.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.07.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.07.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2022-10/README.md b/sdks/retailmedia_2022-10/README.md index 1054106d..26f697cb 100644 --- a/sdks/retailmedia_2022-10/README.md +++ b/sdks/retailmedia_2022-10/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2022.10.0.230601 +- Package version: 2022.10.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2022.10.0.230601 +pip install criteo-api-retailmedia-sdk==2022.10.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.10.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.10.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py index 12fff2f0..1ba9bd39 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech """ -__version__ = "2022.10.0.230601" +__version__ = "2022.10.0.230726" # import ApiClient from criteo_api_retailmedia_v2022_10.api_client import ApiClient diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py index cd6fec4e..cb8c61ee 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -39,7 +39,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_report_output_endpoint = _Endpoint( settings={ - 'response_type': (int,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -298,7 +298,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - int + str If the method is called asynchronously, returns the request thread. """ @@ -429,7 +429,7 @@ def request_campaign_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status @@ -512,7 +512,7 @@ def request_line_item_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/audience_api.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/audience_api.py index 100f0146..d411af1a 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/audience_api.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -72,7 +72,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_request': (CreateRetailMediaAudienceRequest,), }, @@ -181,7 +181,7 @@ def create_audience( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_request (CreateRetailMediaAudienceRequest): Keyword Args: diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py index be4f28f1..5a987222 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/gateway_api.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/gateway_api.py index 5501e522..14686b8c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/gateway_api.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py index 09bcebd6..70a0d280 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2022.10.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2022.10.0.230726/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/configuration.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/configuration.py index d57c41f8..de32436d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/configuration.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2022-10\n"\ - "SDK Package Version: 2022.10.0.230601".\ + "SDK Package Version: 2022.10.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py index e14821d8..5256fffa 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py index f63f5622..563b920e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py index 062b4214..115e51c8 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py index 92e44da8..7ea60653 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/add_to_basket_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model.py index 4fc799c8..ed1db80d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py index 2932b89d..3c0c5752 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py index 714e1ae7..16b231fb 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py index e9b08127..0c4e3eb8 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py index 0e3a8007..8f5ddd5d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py index 90492ef9..a1a6ff08 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/asset_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py index 2d21c2d0..6b76f134 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_create_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py index fc77cd4e..b812d7ab 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py index 8b093cd3..bf05f5b8 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py index c23e5edb..28b1f64a 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/auction_line_item_update_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py index 6fde252b..e04443be 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py index 06714366..06391ded 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py index f479ed32..bfebc7b6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/audience_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/bad_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/bad_request.py index f2c5f6b7..9594fcdb 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/bad_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/bad_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py index c2fb6207..b1d0b060 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py index ee5892eb..202f94ca 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py index 9b24fcdf..9bc51694 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/balance_campaign202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py index e76d659e..4e413a8b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py index b5149d6a..09a2164f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/category202204_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py index 8ec73ce7..9915ac7f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_option.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py index c6f4d222..9d4f5f1f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py index 7a8afb29..49b4c469 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/choice_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py index c8609311..2fe1fec9 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/color_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_error.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_error.py index 8c4458e6..1863d378 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_error.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py index 7718e268..1a69509f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_response.py index 2717d96c..9c6e4f32 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_problem.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_problem.py index 214142cc..4e4572a5 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_problem.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_warning.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_warning.py index 3b6df57a..91f51c29 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_warning.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/common_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py index 0b75e1a6..f50c2a18 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py index 0b6b2d70..36f621ed 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -98,10 +98,10 @@ def openapi_types(): return { 'user_type': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 } @cached_property @@ -131,7 +131,7 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -165,8 +165,8 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -228,7 +228,7 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -262,8 +262,8 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py index 3f75444d..403aa7c7 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_body.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py index 38f1efe3..224366e5 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py index 06d64c61..10510b76 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/create_retail_media_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py index 976ce95e..e3bc1f2c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py index 72a7cb64..1eb62e67 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202110_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py index ed83cb3b..581d17ce 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207_response.py index 5d5cd78c..36207bd2 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative202207_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py index ad767ea7..8fe19046 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_create_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py index 8be4f349..41cb521e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/creative_update_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py index 68125e17..671be1ed 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/customer_list_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_request.py index e4775b78..f8aba33c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_status.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_status.py index f2ec4f61..d575cf10 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_status.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/envelope_report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py index 41309cdb..4fb374f0 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_account.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_account.py index 4c83a888..206b6802 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_account.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py index ad01b73e..d7e8d7b0 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py index b4b4145b..6873be4e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py index c93bc05d..4cf5b4e9 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py index 65ccb193..6a9ff9dc 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py index c0c7f42d..d1c19500 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py index be12adb0..7400524c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py index 10568a72..614830bb 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py index 4dd49c87..8a51c407 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py index eaf83b36..a956a8d1 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign.py index a6699b5e..d9ec7787 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py index d7db0d9f..a61a117d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_campaign_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_request.py index 52a366c8..2a0beca4 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py index c59ecbba..4df9b168 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_common_line_item.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_common_line_item.py index a30295bf..ad1b78ee 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_common_line_item.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py index 14249131..890c0a91 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_editable_campaign_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py index 6b503997..d7fbe36a 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py index af9f86ad..8f9d9ead 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_capping202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py index f922387c..3c33775f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py index 5739c7e2..70f87a8d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_line_item_page_category202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_post_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_post_campaign.py index 25f71244..e65c8087 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_post_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_post_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py index ce1cf394..c64367cc 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py index bf0b0104..4a0f6605 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py index ba9cf44a..b4f321e0 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py index 57102f15..6e92f99b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_put_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_put_campaign.py index d7926bfa..bc8994eb 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_put_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_put_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer.py index 394b996e..cba64265 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py index 6db92bd8..d71311cc 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_retailer_pages202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py index 5b27ac96..c4b94e13 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py index ad109b16..34d2ac01 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/external_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variable_value.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variable_value.py index cdd61b01..7dd5ad3b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variable_value.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variables_specification.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variables_specification.py index 2628491d..8a4ccc8d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variables_specification.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/files_variables_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py index cdba4845..fe387745 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/get_page_of_audiences_by_account_id_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py index 5ade1607..1074ce6f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/hyperlink_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py index 36d199f1..7cb94f17 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py index e2616c78..b8a4ce69 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/input_resource_of_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py index c2716cf9..2ad11d39 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_external_id_of_editable_campaign_attributes_and_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_account_and_account.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_account_and_account.py index ecf10fe7..1f0c95b7 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_account_and_account.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py index 792b518a..a6495a77 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py index c97bfeff..956fea49 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_campaign_and_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py index b8f3bc18..fa56394a 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py index 80234ed0..f37c9cf6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py index d7484250..e5d57bd4 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_campaign_attributes_and_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py index d3657f71..cbda40dd 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py index 18d54657..8c3c26af 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py index 0c6eae28..161fc36c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py index 954db14d..a0aa0ae0 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py index c0f28a35..db31ebb6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_page_response_of_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py index e7174b28..fdb8f155 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_request_of_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py index 5b736555..1edc4d95 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_campaign.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py index 3ea8db42..afb8f4ed 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/json_api_single_response_of_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py index 22ee29c6..03413b59 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py index edb0dcf1..95282ddd 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/keyword_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/map_string.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/map_string.py index cf6a4667..2592c69a 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/map_string.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/map_string.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py index a7a7d158..af5367c9 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/page_metadata.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py index 5ba67a50..71edbf18 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py index 30d58f27..cbd479f2 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py index 24ede8b4..fae6e444 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_create_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py index 1d517e5e..2bc1960c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/preferred_line_item_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py index a0b41c52..fe282455 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py index f64833d7..b48a49cc 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py index 2392e03f..3bdf02d1 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/promoted_product202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request.py index aeac94a4..5d38519c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request_attributes.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request_attributes.py index 3520e1c4..d2218b01 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request_attributes.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech @@ -114,6 +114,7 @@ def openapi_types(): 'format': (str,), # noqa: E501 'id': (str,), # noqa: E501 'ids': ([str],), # noqa: E501 + 'revenue_type': (str,), # noqa: E501 'time_zone': (str,), # noqa: E501 'view_attribution_window': (str,), # noqa: E501 } @@ -131,6 +132,7 @@ def discriminator(): 'format': 'format', # noqa: E501 'id': 'id', # noqa: E501 'ids': 'ids', # noqa: E501 + 'revenue_type': 'revenueType', # noqa: E501 'time_zone': 'timeZone', # noqa: E501 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 } @@ -185,6 +187,7 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ @@ -284,6 +287,7 @@ def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status.py index d1b283b8..cf857814 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status_attributes.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status_attributes.py index 58c953a4..683d1c3e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status_attributes.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/report_status_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py index 76686bcd..2726de4d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py index c8fe2a65..a0d12c94 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py index e631b2ee..0322f17b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py index 41fa572e..86ea8bc5 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_balance_campaign202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py index 408a371e..e075ad2f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py index e36540c0..b250185c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py index f685c97d..5133723d 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py index 0daaa629..f4439327 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_creative202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py index 7d71375e..f6eb2613 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py index dbce3dca..93030193 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py index 40f669e2..e2ddd9f1 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py index 26df4227..ca21f33c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/resource_of_template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience.py index 9b519d40..19311460 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py index 8c1d16ba..5e1c1339 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py index a72a9edb..a4864356 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/section.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py index d751bdc7..0d510fd6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_request.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_request.py index 667d5b16..13ef4def 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_request.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_response.py index 9cc18ef3..deb8b441 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/store_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py index 52a5fc5d..a32cd14c 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py index b2a9c5c1..4141bb68 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_response.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_response.py index 6015cbeb..c5afdcca 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_response.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable.py index 6399a338..c1f2e93b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable_value.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable_value.py index c9228bd7..2b61aed5 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable_value.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/template_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py index 673e93ab..3c6855ef 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_value.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_value.py index 8cf6a399..d345ab8f 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_value.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/text_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py index 06f9ee9b..9984535e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/user_behavior_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py index 1b3856c4..8cafa27e 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py index c468c55c..8dc5f32b 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py index 121f47dc..3bf24397 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py index c72257c8..7a0c69d4 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py index bba3da9e..a92a6e04 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py index 16b7f3cc..94122fe6 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py index c3323744..82c039bd 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model/value_type_resource_of_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py index c6eb1271..94d11dee 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py index eb0e9320..330d5bb9 100644 --- a/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py +++ b/sdks/retailmedia_2022-10/criteo_api_retailmedia_v2022_10/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2022-10 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2022-10/docs/AnalyticsApi.md b/sdks/retailmedia_2022-10/docs/AnalyticsApi.md index 7e1efbb4..09962684 100644 --- a/sdks/retailmedia_2022-10/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2022-10/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_report_output** -> int get_report_output(report_id) +> str get_report_output(report_id) @@ -54,7 +54,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Return type -**int** +**str** ### Authorization @@ -141,7 +141,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -241,13 +241,14 @@ with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -262,7 +263,7 @@ with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type @@ -347,13 +348,14 @@ with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -368,7 +370,7 @@ with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type diff --git a/sdks/retailmedia_2022-10/docs/AudienceApi.md b/sdks/retailmedia_2022-10/docs/AudienceApi.md index 0451e753..3263f576 100644 --- a/sdks/retailmedia_2022-10/docs/AudienceApi.md +++ b/sdks/retailmedia_2022-10/docs/AudienceApi.md @@ -54,7 +54,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_request = CreateRetailMediaAudienceRequest( data=CreateRetailMediaAudienceBody( type="RetailMediaAudience", @@ -62,12 +62,12 @@ with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: user_type="viewer", lookback_window="P7D", brand_ids=[ - "brand_ids_example", + 1, ], category_ids=[ - "category_ids_example", + 1, ], - retailer_id="68004146450571264", + retailer_id=6841, name="Test audience", ), ), @@ -86,7 +86,7 @@ with criteo_api_retailmedia_v2022_10.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_request** | [**CreateRetailMediaAudienceRequest**](CreateRetailMediaAudienceRequest.md)| | ### Return type diff --git a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md index cc255e6a..26d16ce9 100644 --- a/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_2022-10/docs/CreateRetailMediaAudienceAttributes.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_type** | **str** | Type of the user | **lookback_window** | **str** | Length of lookback window | -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | -**brand_ids** | **[str]** | The brands to target | [optional] -**category_ids** | **[str]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md b/sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md index b2e02b85..0c6a7628 100644 --- a/sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md +++ b/sdks/retailmedia_2022-10/docs/ReportRequestAttributes.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **format** | **str** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" **id** | **str** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] **ids** | **[str]** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] +**revenue_type** | **str** | | [optional] **time_zone** | **str** | | [optional] **view_attribution_window** | **str** | Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2022-10/setup.py b/sdks/retailmedia_2022-10/setup.py index 5818320e..72bae417 100644 --- a/sdks/retailmedia_2022-10/setup.py +++ b/sdks/retailmedia_2022-10/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2022.10.0.230601" +VERSION = "2022.10.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2022.10.0.230601 +pip install criteo-api-retailmedia-sdk==2022.10.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.10.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2022.10.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-01/README.md b/sdks/retailmedia_2023-01/README.md index 23022c64..bdf02e08 100644 --- a/sdks/retailmedia_2023-01/README.md +++ b/sdks/retailmedia_2023-01/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.01.0.230601 +- Package version: 2023.01.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.01.0.230601 +pip install criteo-api-retailmedia-sdk==2023.01.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py index 1391e923..b4b2223e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech """ -__version__ = "2023.01.0.230601" +__version__ = "2023.01.0.230726" # import ApiClient from criteo_api_retailmedia_v2023_01.api_client import ApiClient diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/analytics_api.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/analytics_api.py index 42c2ef14..82c7e05a 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/analytics_api.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -39,7 +39,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_report_output_endpoint = _Endpoint( settings={ - 'response_type': (int,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -298,7 +298,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - int + str If the method is called asynchronously, returns the request thread. """ @@ -429,7 +429,7 @@ def request_campaign_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status @@ -512,7 +512,7 @@ def request_line_item_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/audience_api.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/audience_api.py index 6123671e..3b7fe96e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/audience_api.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_request': (CreateRetailMediaAudienceRequest,), }, @@ -135,7 +135,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_v2_request': (CreateRetailMediaAudienceV2Request,), }, @@ -263,7 +263,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'limit_to_id': ([int],), 'page_size': @@ -312,7 +312,7 @@ def create_audience( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_request (CreateRetailMediaAudienceRequest): Keyword Args: @@ -399,7 +399,7 @@ def create_retail_media_audience_v2( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_v2_request (CreateRetailMediaAudienceV2Request): Keyword Args: @@ -571,7 +571,7 @@ def get_retail_media_audience_v2_list_by_account_id( >>> result = thread.get() Args: - account_id (str): External account ID which owns audience. + account_id (int): External account ID which owns audience. Keyword Args: limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py index bd2c1c4a..62ca7270 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/gateway_api.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/gateway_api.py index 8104d65f..31f2c37d 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/gateway_api.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py index 05d29a06..9ce98ea6 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.01.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2023.01.0.230726/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py index 9054da2c..cad8ba98 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-01\n"\ - "SDK Package Version: 2023.01.0.230601".\ + "SDK Package Version: 2023.01.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/exceptions.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/exceptions.py index e5d8fb07..4fe7842b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/exceptions.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_ids_update_model202110_request.py index 68c3b409..0d8f8fa1 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_request.py index c71b9319..42997ec3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_response.py index a6f484ec..b0457a38 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/add_to_basket_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model.py index 35a99241..e1849854 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_resource.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_resource.py index 46a628e9..6984248a 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_resource.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_response.py index d69c1062..a8a51b3c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset.py index 3159557e..6c3f9dde 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_resource.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_resource.py index c5eaf5a5..c53f3d8f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_resource.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_response.py index 5fa8be76..3e98e44c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/asset_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_create_model_request.py index 6a5b2f32..eb482572 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_create_model_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_create_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_paged_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_paged_list_response.py index e4c06e6f..6747b452 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_paged_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_response.py index ae9985b9..1369ece7 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_update_model_request.py index 3d200b3a..55b04188 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_update_model_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/auction_line_item_update_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_ids_update_model202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_ids_update_model202110_request.py index 4f155d02..c6e4e6f0 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_request.py index 5785bd97..caf3ee03 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_response.py index 99037c3a..8cf7ce93 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/audience_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/bad_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/bad_request.py index aca59032..32c7fd77 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/bad_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/bad_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance202110_paged_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance202110_paged_list_response.py index 016af8c9..911c730c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance202110_paged_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_list_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_list_request.py index 49975f2f..da93e600 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_list_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_paged_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_paged_list_response.py index 3ace7cee..5fb730d9 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_paged_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/balance_campaign202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_attributes_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_attributes_v202301.py index f52909f1..d9d2c86c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_attributes_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_attributes_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_v202301.py index eaaec222..acdfaae7 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204.py index 462a5771..458a590d 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204_list_response.py index 72174104..7a9209aa 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/category202204_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_option.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_option.py index 1e5f1750..d6e15ffa 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_option.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_option.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_specification.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_specification.py index 226c18f6..0ca7483b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_specification.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_value.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_value.py index 9cafc0e7..3f295eff 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_value.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/choice_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/color_variable_value.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/color_variable_value.py index 227f7704..100e88fc 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/color_variable_value.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/color_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_error.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_error.py index 35779141..e5bd740f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_error.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_paged_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_paged_list_response.py index 9c0d9b79..179752ec 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_paged_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_response.py index 05cdbc8d..5cb1390b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_problem.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_problem.py index c0aee637..189d8583 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_problem.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_status_code_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_status_code_response.py index cb36dba2..0062bd8e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_status_code_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_status_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_warning.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_warning.py index 5f4aabe9..1607c071 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_warning.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/common_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience.py index b298b38a..868176a9 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_attributes.py index 57754ce9..1e6c42ac 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -98,10 +98,10 @@ def openapi_types(): return { 'user_type': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 } @cached_property @@ -131,7 +131,7 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -165,8 +165,8 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -228,7 +228,7 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -262,8 +262,8 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_body.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_body.py index 5141f91a..f930c0ca 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_body.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_body.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_request.py index e55c064d..ec411153 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_response.py index fd941684..e755510c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2.py index 13497bfa..3c0dbd4c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_attributes.py index dd442244..5d54e9c4 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'name': (str,), # noqa: E501 } @@ -114,7 +114,7 @@ def _from_openapi_data(cls, retailer_id, user_behavior_details, name, *args, **k """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience user_behavior_details (UserBehaviorDetailsV2): name (str): Name of the audience. @@ -207,7 +207,7 @@ def __init__(self, retailer_id, user_behavior_details, name, *args, **kwargs): """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience user_behavior_details (UserBehaviorDetailsV2): name (str): Name of the audience. diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_data.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_data.py index 4cf3c4cd..7c06a038 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_data.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_request.py index dc0d4f2b..c6cebe22 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_retail_media_audience_v2_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_user_behavior_segment_v2.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_user_behavior_segment_v2.py index 503debc9..ed547b7c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_user_behavior_segment_v2.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/create_user_behavior_segment_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -99,8 +99,8 @@ def openapi_types(): return { 'user_action': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 'min_price': (float,), # noqa: E501 'max_price': (float,), # noqa: E501 } @@ -166,8 +166,8 @@ def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # n Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - category_ids ([str]): The categories to target. [optional] # noqa: E501 - brand_ids ([str]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 min_price (float): The min price of targeted skus.. [optional] # noqa: E501 max_price (float): The max price of targeted skus.. [optional] # noqa: E501 """ @@ -261,8 +261,8 @@ def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - category_ids ([str]): The categories to target. [optional] # noqa: E501 - brand_ids ([str]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 min_price (float): The min price of targeted skus.. [optional] # noqa: E501 max_price (float): The max price of targeted skus.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110.py index 59858f50..82fd872e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110_list_response.py index ea08a4e7..e31eb8b7 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202110_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207.py index e922b745..f205df53 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207_response.py index aae82798..4b0bcb4f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative202207_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py index 5ee45039..ca627b50 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_create_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py index 4e9a1f7d..8d1391b0 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/creative_update_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/customer_list_details.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/customer_list_details.py index cf72ada8..ad4e7992 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/customer_list_details.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/customer_list_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py index f988d445..2bca25e1 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/editable_campaign_attributes_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_request.py index 8560c70d..62c2cd40 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_status.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_status.py index abef64fd..c983aabb 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_status.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/envelope_report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py index 0a87cb1f..ec546401 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_account.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_account.py index 1a9f849a..34504ccf 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_account.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_ids_update_model202110.py index 11dfa0a9..e8e376b1 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_target202110.py index 9e2efd51..9b3fede2 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item.py index b40b9c30..8ccdd9be 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_create_model.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_create_model.py index 9bd8c4d9..ad726fc3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_update_model.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_update_model.py index 73d88efe..434dbf71 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_update_model.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_ids_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_ids_update_model202110.py index 1edce0ee..d5757f91 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_target202110.py index f67e00cc..8e9cd0dc 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_balance202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_balance202110.py index 7c3df008..eb2207d2 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_balance202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_brand.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_brand.py index a2fb313c..ddcd20dd 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_brand.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_request.py index ac43872a..5cb9c4e0 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_status.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_status.py index d82dc980..4a5c9d7f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_status.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_common_line_item.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_common_line_item.py index 40090a63..7a06e8f9 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_common_line_item.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_keyword_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_keyword_target202110.py index bab908b9..d70b6a3e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_keyword_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_capping202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_capping202110.py index 6eb4cb51..d74c57a1 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_capping202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_capping202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page202110.py index cd5f89d5..6b989bd9 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page_category202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page_category202110.py index 76c15a96..85692774 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page_category202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_line_item_page_category202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item202110.py index 44601334..327600dd 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_create_model202110.py index 1c8b3712..2b19ce2f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_update_model202110.py index 65e72184..c1b21c6c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_promoted_product202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_promoted_product202110.py index ffdd6119..70b569bd 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_promoted_product202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer.py index fd273919..dfa960c1 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer_pages202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer_pages202110.py index 84ea398c..f6b23b54 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer_pages202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_retailer_pages202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_ids_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_ids_update_model202110.py index 58f7d15d..fa3c0606 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_ids_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_target202110.py index 9bfd4997..6f183a1c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/external_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variable_value.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variable_value.py index 13c30bea..f1726530 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variable_value.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variables_specification.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variables_specification.py index fa099566..c247c048 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variables_specification.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/files_variables_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/get_page_of_audiences_by_account_id_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/get_page_of_audiences_by_account_id_response.py index 4afb5876..a9b71818 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/get_page_of_audiences_by_account_id_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/hyperlink_variable_value.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/hyperlink_variable_value.py index 9b9ac04f..747d96bb 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/hyperlink_variable_value.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/hyperlink_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_auction_line_item_create_model.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_auction_line_item_create_model.py index 421797b1..175a9e30 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_preferred_line_item_create_model202110.py index 9fce5159..b5706004 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/input_resource_of_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py index 2b82f700..6124523d 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_account_and_account.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_account_and_account.py index e6befb03..9c4e1b91 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_account_and_account.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_brand_and_brand.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_brand_and_brand.py index 8d6e12d8..867d1615 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py index 2eef2389..09f04752 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py index 34988b19..3b87881f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py index bd4501c2..7b8d939c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py index 5efaa2a8..1a3479c5 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py index d5619a7d..5d7d4f83 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py index 2ffd09ab..135ff562 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_account.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_account.py index 15dbf253..771cf65d 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_account.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_brand.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_brand.py index c334b05c..a2ec96cd 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_brand.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_campaign_v202301.py index 9f4ff938..3f5562f3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_retailer.py index fc6c350b..552100f2 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_retailer.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_page_response_of_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_request_of_catalog_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_request_of_catalog_request.py index 40c6eb7f..f8fff47a 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_request_of_catalog_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_request_of_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_campaign_v202301.py index 951d4fdf..a8524d9f 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_catalog_status.py index 8fe8f168..a1e0b28a 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_catalog_status.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_line_item_bid_multipliers.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_line_item_bid_multipliers.py index 26cbb3fc..fd0d2812 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/json_api_single_response_of_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_request.py index db10c063..bc105757 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_response.py index 7040fcce..462b43b0 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/keyword_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers.py index 022eb2db..8ca022bf 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_request.py index 4cedaabe..d1651e80 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_response.py index ed9f4797..ac9034d6 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/line_item_bid_multipliers_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/map_string.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/map_string.py index 6adcb00a..90bcca6e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/map_string.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/map_string.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/page_metadata.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/page_metadata.py index 49504b43..95b7bf72 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/page_metadata.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/page_metadata.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/post_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/post_campaign_v202301.py index 62ea4dd6..41af0a4d 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/post_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/post_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_paged_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_paged_list_response.py index 04590a70..3dde4d01 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_paged_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_response.py index 735c1e3e..b032b9f4 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_create_model202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_create_model202110_request.py index dbe1a41a..4f1843f3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_create_model202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_create_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_update_model202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_update_model202110_request.py index 27d0f90a..3001895b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_update_model202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/preferred_line_item_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/problem_details.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/problem_details.py index 4e477575..95298c32 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/problem_details.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_list_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_list_request.py index 2b251ae6..d57e3231 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_paged_list_response.py index 6bc999de..8f5c56a7 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_paged_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/promoted_product202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/put_campaign_v202301.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/put_campaign_v202301.py index 5bc41601..3112a851 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/put_campaign_v202301.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/put_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py index 36910f46..59f1f9f0 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request_attributes.py index 04b0f9e7..de7561e7 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request_attributes.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -114,6 +114,7 @@ def openapi_types(): 'format': (str,), # noqa: E501 'id': (str,), # noqa: E501 'ids': ([str],), # noqa: E501 + 'revenue_type': (str,), # noqa: E501 'time_zone': (str,), # noqa: E501 'view_attribution_window': (str,), # noqa: E501 } @@ -131,6 +132,7 @@ def discriminator(): 'format': 'format', # noqa: E501 'id': 'id', # noqa: E501 'ids': 'ids', # noqa: E501 + 'revenue_type': 'revenueType', # noqa: E501 'time_zone': 'timeZone', # noqa: E501 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 } @@ -185,6 +187,7 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ @@ -284,6 +287,7 @@ def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py index 49423594..26a48805 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status_attributes.py index e61f0ed5..84500b70 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status_attributes.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/report_status_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item.py index b7c7ba57..6d08d749 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item_update_model.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item_update_model.py index e6c52dcf..05fef597 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item_update_model.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance202110.py index 0b636eca..f6930c9e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance_campaign202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance_campaign202110.py index 8b0baf15..a047df61 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance_campaign202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_balance_campaign202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_category202204.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_category202204.py index 6f047208..31abd981 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_category202204.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_common_line_item.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_common_line_item.py index eb9cde89..e0f8718a 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_common_line_item.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202110.py index 1a5ad79e..fbcf3f14 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202207.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202207.py index 70eaed68..b1942726 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202207.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_creative202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_line_item_bid_multipliers.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_line_item_bid_multipliers.py index 16c481c2..520d62cd 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item202110.py index a2344f2f..75747b77 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item_update_model202110.py index 2d3b5fcc..b6788563 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_promoted_product202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_promoted_product202110.py index 9c7180f5..694dfd8e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_promoted_product202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_template.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_template.py index 996d06bc..fa2dad3a 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_template.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/resource_of_template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience.py index 2f7bd573..98160342 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_attributes.py index dd314de2..0b68ce2b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2.py index 6804d156..d34900d1 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_attributes.py index 900f0907..32f5d900 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'customer_list_details': (CustomerListDetails,), # noqa: E501 @@ -118,7 +118,7 @@ def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 """RetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -211,7 +211,7 @@ def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 """RetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py index a49c86b1..3d066180 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_response.py index 2393a583..6f9f33b9 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/retail_media_audience_v2_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/section.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/section.py index d3d1ba61..59254963 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/section.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/section.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_ids_update_model202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_ids_update_model202110_request.py index 278027a5..502551c8 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_request.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_request.py index 7765e4b7..8d4e243b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_request.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_response.py index 38991b6c..504274c3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/store_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template.py index 84403d92..fd792529 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_list_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_list_response.py index 5f04b6f3..5a136a66 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_list_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_response.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_response.py index 2e280bb1..982f166c 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_response.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable.py index e61f3915..607c25fe 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable_value.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable_value.py index 9785f695..3d0bef4e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable_value.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/template_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_specification.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_specification.py index 0d426149..87d1bfa3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_specification.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_value.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_value.py index 0cfdaacc..75bdd2b3 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_value.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/text_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details.py index 6219fde5..6eace735 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details_v2.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details_v2.py index fbbc860b..9e1ff603 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details_v2.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/user_behavior_details_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_ids_update_model202110.py index 1deb9d5e..b5e1f631 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_target202110.py index 12c7637d..7bc86b94 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_ids_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_ids_update_model202110.py index 8fcf6b87..5454f70b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_target202110.py index 4d602ecc..b44a5c7d 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_keyword_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_keyword_target202110.py index 5c6110a3..61a5b28b 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_keyword_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_ids_update_model202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_ids_update_model202110.py index f9d6ee15..4dbedf20 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_ids_update_model202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_target202110.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_target202110.py index 9cca42f4..ed1bfaab 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_target202110.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model/value_type_resource_of_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model_utils.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model_utils.py index 7b3754b8..f4949ed5 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model_utils.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/rest.py b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/rest.py index 62fe260b..086bd95e 100644 --- a/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/rest.py +++ b/sdks/retailmedia_2023-01/criteo_api_retailmedia_v2023_01/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-01 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-01/docs/AnalyticsApi.md b/sdks/retailmedia_2023-01/docs/AnalyticsApi.md index 26ba6243..032e55f5 100644 --- a/sdks/retailmedia_2023-01/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-01/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_report_output** -> int get_report_output(report_id) +> str get_report_output(report_id) @@ -54,7 +54,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Return type -**int** +**str** ### Authorization @@ -141,7 +141,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -241,13 +241,14 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -262,7 +263,7 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type @@ -347,13 +348,14 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -368,7 +370,7 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type diff --git a/sdks/retailmedia_2023-01/docs/AudienceApi.md b/sdks/retailmedia_2023-01/docs/AudienceApi.md index 8b9623a8..c969eae5 100644 --- a/sdks/retailmedia_2023-01/docs/AudienceApi.md +++ b/sdks/retailmedia_2023-01/docs/AudienceApi.md @@ -56,7 +56,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_request = CreateRetailMediaAudienceRequest( data=CreateRetailMediaAudienceBody( type="RetailMediaAudience", @@ -64,12 +64,12 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: user_type="viewer", lookback_window="P7D", brand_ids=[ - "brand_ids_example", + 1, ], category_ids=[ - "category_ids_example", + 1, ], - retailer_id="68004146450571264", + retailer_id=6841, name="Test audience", ), ), @@ -88,7 +88,7 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_request** | [**CreateRetailMediaAudienceRequest**](CreateRetailMediaAudienceRequest.md)| | ### Return type @@ -165,31 +165,31 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_v2_request = CreateRetailMediaAudienceV2Request( data=CreateRetailMediaAudienceV2Data( type="RetailMediaAudience", attributes=CreateRetailMediaAudienceV2Attributes( - retailer_id="68004146450571264", + retailer_id=6041, user_behavior_details=UserBehaviorDetailsV2( inclusive_segment=CreateUserBehaviorSegmentV2( user_action="buy", lookback_window="P7D", category_ids=[ - "category_ids_example", + 1, ], brand_ids=[ - "brand_ids_example", + 1, ], ), exclusive_segment=CreateUserBehaviorSegmentV2( user_action="buy", lookback_window="P7D", category_ids=[ - "category_ids_example", + 1, ], brand_ids=[ - "brand_ids_example", + 1, ], ), ), @@ -211,7 +211,7 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_v2_request** | [**CreateRetailMediaAudienceV2Request**](CreateRetailMediaAudienceV2Request.md)| | ### Return type @@ -391,7 +391,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | External account ID which owns audience. + account_id = 68004146450571264 # int | External account ID which owns audience. limit_to_id = [ 1, ] # [int] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) @@ -419,7 +419,7 @@ with criteo_api_retailmedia_v2023_01.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| External account ID which owns audience. | + **account_id** | **int**| External account ID which owns audience. | **limit_to_id** | **[int]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page | [optional] **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed | [optional] diff --git a/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceAttributes.md index cc255e6a..26d16ce9 100644 --- a/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceAttributes.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_type** | **str** | Type of the user | **lookback_window** | **str** | Length of lookback window | -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | -**brand_ids** | **[str]** | The brands to target | [optional] -**category_ids** | **[str]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceV2Attributes.md index fc54b858..5069a7bd 100644 --- a/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceV2Attributes.md +++ b/sdks/retailmedia_2023-01/docs/CreateRetailMediaAudienceV2Attributes.md @@ -5,7 +5,7 @@ Parameters needed to create an audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | **name** | **str** | Name of the audience. | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2023-01/docs/CreateUserBehaviorSegmentV2.md b/sdks/retailmedia_2023-01/docs/CreateUserBehaviorSegmentV2.md index c9cf462c..19dd22af 100644 --- a/sdks/retailmedia_2023-01/docs/CreateUserBehaviorSegmentV2.md +++ b/sdks/retailmedia_2023-01/docs/CreateUserBehaviorSegmentV2.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_action** | **str** | Type of shopper activity used to generate the audience. | **lookback_window** | **str** | Length of lookback window | -**category_ids** | **[str]** | The categories to target | [optional] -**brand_ids** | **[str]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] **min_price** | **float** | The min price of targeted skus. | [optional] [readonly] **max_price** | **float** | The max price of targeted skus. | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md b/sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md index b2e02b85..0c6a7628 100644 --- a/sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md +++ b/sdks/retailmedia_2023-01/docs/ReportRequestAttributes.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **format** | **str** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" **id** | **str** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] **ids** | **[str]** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] +**revenue_type** | **str** | | [optional] **time_zone** | **str** | | [optional] **view_attribution_window** | **str** | Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2023-01/docs/RetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-01/docs/RetailMediaAudienceV2Attributes.md index aeff7153..38c93ec6 100644 --- a/sdks/retailmedia_2023-01/docs/RetailMediaAudienceV2Attributes.md +++ b/sdks/retailmedia_2023-01/docs/RetailMediaAudienceV2Attributes.md @@ -5,7 +5,7 @@ Properties of the returned Audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | **user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | [optional] **customer_list_details** | [**CustomerListDetails**](CustomerListDetails.md) | | [optional] diff --git a/sdks/retailmedia_2023-01/setup.py b/sdks/retailmedia_2023-01/setup.py index a83b599a..76eb87b3 100644 --- a/sdks/retailmedia_2023-01/setup.py +++ b/sdks/retailmedia_2023-01/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.01.0.230601" +VERSION = "2023.01.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.01.0.230601 +pip install criteo-api-retailmedia-sdk==2023.01.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.01.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-04/README.md b/sdks/retailmedia_2023-04/README.md index db631d75..dad6fa6e 100644 --- a/sdks/retailmedia_2023-04/README.md +++ b/sdks/retailmedia_2023-04/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 2023.04.0.230601 +- Package version: 2023.04.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==2023.04.0.230601 +pip install criteo-api-retailmedia-sdk==2023.04.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py index 6b774fbe..14b855d3 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech """ -__version__ = "2023.04.0.230601" +__version__ = "2023.04.0.230726" # import ApiClient from criteo_api_retailmedia_v2023_04.api_client import ApiClient diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/analytics_api.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/analytics_api.py index 11dbb4a4..3af333f4 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/analytics_api.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -39,7 +39,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.get_report_output_endpoint = _Endpoint( settings={ - 'response_type': (int,), + 'response_type': (str,), 'auth': [ 'oauth', 'oauth' @@ -298,7 +298,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - int + str If the method is called asynchronously, returns the request thread. """ @@ -429,7 +429,7 @@ def request_campaign_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status @@ -512,7 +512,7 @@ def request_line_item_report( >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + envelope_report_request (EnvelopeReportRequest): Envelope of the request Keyword Args: _return_http_data_only (bool): response data without head status diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/audience_api.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/audience_api.py index 3e0f3545..1fad0d30 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/audience_api.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_request': (CreateRetailMediaAudienceRequest,), }, @@ -135,7 +135,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_v2_request': (CreateRetailMediaAudienceV2Request,), }, @@ -263,7 +263,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'limit_to_id': ([int],), 'page_size': @@ -312,7 +312,7 @@ def create_audience( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_request (CreateRetailMediaAudienceRequest): Keyword Args: @@ -399,7 +399,7 @@ def create_retail_media_audience_v2( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_v2_request (CreateRetailMediaAudienceV2Request): Keyword Args: @@ -571,7 +571,7 @@ def get_retail_media_audience_v2_list_by_account_id( >>> result = thread.get() Args: - account_id (str): External account ID which owns audience. + account_id (int): External account ID which owns audience. Keyword Args: limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py index d9b7a47d..a375f8ae 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/gateway_api.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/gateway_api.py index 7a261cf8..c8dc69f2 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/gateway_api.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py index 47402c77..59252817 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2023.04.0.230601/python' + self.user_agent = 'OpenAPI-Generator/2023.04.0.230726/python' def __enter__(self): return self diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py index 0968882e..98369d9c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2023-04\n"\ - "SDK Package Version: 2023.04.0.230601".\ + "SDK Package Version: 2023.04.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/exceptions.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/exceptions.py index 18375d95..7228af48 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/exceptions.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_ids_update_model202110_request.py index 7f9703f9..49443bc2 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_request.py index f8de838b..9695a6fb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_response.py index bb8258a8..8ddd08bb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/add_to_basket_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model.py index 3a70c0d5..2fceec54 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_resource.py index d09ff6bb..ebd1a908 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_resource.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_response.py index 8042aa97..104f100e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset.py index 7f2f07f5..292bd302 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_resource.py index d47c2c72..b056880e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_resource.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_response.py index d14ef88a..befc3fdb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/asset_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_create_model_request.py index 88bc719e..f5f154dd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_create_model_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_create_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_paged_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_paged_list_response.py index 5fa59342..ae5c8f35 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_paged_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_response.py index e41d885b..83053766 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_update_model_request.py index acf46a63..76c44e0b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_update_model_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/auction_line_item_update_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_ids_update_model202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_ids_update_model202110_request.py index 3b9f87e6..967ef0bd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_request.py index 94b26835..bb201991 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_response.py index 36be8281..d9db5304 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/audience_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/bad_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/bad_request.py index 334a2457..8f234e30 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/bad_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/bad_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance202110_paged_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance202110_paged_list_response.py index d9771af8..06d495b9 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance202110_paged_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_list_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_list_request.py index b7d88b60..6c720929 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_list_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_paged_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_paged_list_response.py index 837b623b..95b70d4f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_paged_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/balance_campaign202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py index 33b0acd5..4a072332 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_attributes_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_v202301.py index 6c931c9c..3913d7a2 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204.py index a763ae30..3a51b689 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204_list_response.py index b9071000..b33261ad 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/category202204_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_option.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_option.py index 4f82305a..db49bc64 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_option.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_option.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_specification.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_specification.py index 9cb5c2b0..2e0a76f6 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_specification.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_value.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_value.py index de61c3d0..055a8ca1 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_value.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/choice_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/color_variable_value.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/color_variable_value.py index f80fcb54..f028d2aa 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/color_variable_value.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/color_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_error.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_error.py index 5cd62dae..34dc4ddd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_error.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_paged_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_paged_list_response.py index 9fe3edf7..977a7e92 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_paged_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_response.py index 89804d5f..2e3cea44 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_line_item_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_problem.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_problem.py index 30ad32b2..50eef796 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_problem.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_status_code_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_status_code_response.py index b15062ac..be3f54f3 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_status_code_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_status_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_warning.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_warning.py index f36295b3..ad30d51f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_warning.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/common_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience.py index 24df4fa7..2cb25e42 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_attributes.py index a6d1ab42..443fe943 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -98,10 +98,10 @@ def openapi_types(): return { 'user_type': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 } @cached_property @@ -131,7 +131,7 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -165,8 +165,8 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -228,7 +228,7 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -262,8 +262,8 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_body.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_body.py index 9e3bce8d..aba59bb8 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_body.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_body.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_request.py index 15ad8b4a..7eed431e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_response.py index 6f212188..d77e2cfb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py index bf455eaf..011211b8 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_attributes.py index 972974e5..753cc1a5 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'name': (str,), # noqa: E501 } @@ -114,7 +114,7 @@ def _from_openapi_data(cls, retailer_id, user_behavior_details, name, *args, **k """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience user_behavior_details (UserBehaviorDetailsV2): name (str): Name of the audience. @@ -207,7 +207,7 @@ def __init__(self, retailer_id, user_behavior_details, name, *args, **kwargs): """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience user_behavior_details (UserBehaviorDetailsV2): name (str): Name of the audience. diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_data.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_data.py index 103cb9c5..46978e99 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_data.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_request.py index 6b59a248..18b617b8 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_retail_media_audience_v2_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_user_behavior_segment_v2.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_user_behavior_segment_v2.py index 85297be7..935882cd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_user_behavior_segment_v2.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/create_user_behavior_segment_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -99,8 +99,8 @@ def openapi_types(): return { 'user_action': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 'min_price': (float,), # noqa: E501 'max_price': (float,), # noqa: E501 } @@ -166,8 +166,8 @@ def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # n Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - category_ids ([str]): The categories to target. [optional] # noqa: E501 - brand_ids ([str]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 min_price (float): The min price of targeted skus.. [optional] # noqa: E501 max_price (float): The max price of targeted skus.. [optional] # noqa: E501 """ @@ -261,8 +261,8 @@ def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - category_ids ([str]): The categories to target. [optional] # noqa: E501 - brand_ids ([str]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 min_price (float): The min price of targeted skus.. [optional] # noqa: E501 max_price (float): The max price of targeted skus.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110.py index 9b0f7dde..34c10246 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110_list_response.py index 3f706318..19609a06 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202110_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210.py index 93e80cb9..e8414194 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_list_response.py index 3d38c5a5..91577fb4 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_response.py index bd2abbf9..a7968b9c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative202210_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_create_model202207.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_create_model202207.py index 9c87ff97..e7c718fd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_create_model202207.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_create_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_update_model202207.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_update_model202207.py index f5c12319..aac5fe91 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_update_model202207.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/creative_update_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/customer_list_details.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/customer_list_details.py index 6fe6400c..5c7ca769 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/customer_list_details.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/customer_list_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py index be311a8b..997cc564 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/editable_campaign_attributes_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_request.py index 0dd73af6..055ce55b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_status.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_status.py index 81fc0250..1c029289 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_status.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/envelope_report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py index 4d988d1a..23a3ff7e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_account.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_account.py index 56570efa..af71115e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_account.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_ids_update_model202110.py index cb0a1958..9d123cb0 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_target202110.py index 31452ff2..9e40f867 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item.py index 13930765..58ddf3b2 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_create_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_create_model.py index a977d97c..2a3351fb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_update_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_update_model.py index a6d08dd4..8edebefc 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_update_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_ids_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_ids_update_model202110.py index 585f293f..25cf797b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_target202110.py index 72379165..d2333b5f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_balance202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_balance202110.py index 5d100103..84c9aa0d 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_balance202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_brand.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_brand.py index 3f2d47be..9f34db38 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_brand.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_request.py index cdb4011c..9930bab1 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_status.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_status.py index c6ac3117..5e945343 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_status.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_common_line_item.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_common_line_item.py index c3cc149c..263563ac 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_common_line_item.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_keyword_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_keyword_target202110.py index bf4efcc0..0bcbe15b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_keyword_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_capping202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_capping202110.py index aa3a92a5..378bdcd5 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_capping202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_capping202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page202110.py index ea3465da..004ef039 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page_category202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page_category202110.py index b495d601..2e92e3f4 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page_category202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_line_item_page_category202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item202110.py index ad70d585..f01e2955 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_create_model202110.py index 3cc76e53..9cf7b664 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_update_model202110.py index 5efb5aee..91d8698f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_promoted_product202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_promoted_product202110.py index 39bf6141..695f9b97 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_promoted_product202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer.py index 97486070..024c0294 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer_pages202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer_pages202110.py index ab157fc4..a5b59637 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer_pages202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_retailer_pages202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_ids_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_ids_update_model202110.py index 63c85492..42907a27 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_ids_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_target202110.py index 3d29db88..0f80d3e7 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/external_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variable_value.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variable_value.py index fc3f2dc7..1d7ebf2f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variable_value.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variables_specification.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variables_specification.py index 6a114658..b71c83ba 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variables_specification.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/files_variables_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py index 9f2422cf..da70a2dd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/get_page_of_audiences_by_account_id_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/hyperlink_variable_value.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/hyperlink_variable_value.py index cf65f640..545a6639 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/hyperlink_variable_value.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/hyperlink_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_auction_line_item_create_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_auction_line_item_create_model.py index 41e609b7..651cf9f0 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_auction_line_item_create_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_auction_line_item_create_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_preferred_line_item_create_model202110.py index 53b36f94..d2c3a06c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_preferred_line_item_create_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/input_resource_of_preferred_line_item_create_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py index 936158a8..3ad465f6 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_account_and_account.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_account_and_account.py index 699d8c9f..fbb5394f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_account_and_account.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_brand_and_brand.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_brand_and_brand.py index a4c4834a..715ab7ee 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py index 9736926e..eb3239c2 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py index 88977ff7..700099e3 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py index 4abd5a06..2cc68ebb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py index f1d73d02..1a482a9b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py index f855b32f..c5bf150b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py index 204c8151..d1687d62 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_account.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_account.py index 67f5742f..1da6c2d8 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_account.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_brand.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_brand.py index 8a26c9d3..7aa7fa3a 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_brand.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_campaign_v202301.py index 4744903b..50913875 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_retailer.py index 0b6186b5..f042c9f3 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_retailer.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_page_response_of_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_request_of_catalog_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_request_of_catalog_request.py index 17b716f5..bd85795e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_request_of_catalog_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_request_of_catalog_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_campaign_v202301.py index b37e3027..37a7af0e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_catalog_status.py index 358fcab9..61a5ee09 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_catalog_status.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_line_item_bid_multipliers.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_line_item_bid_multipliers.py index 0d7170bf..5456f4f7 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/json_api_single_response_of_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_request.py index 9925c364..c0785568 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_response.py index ed6c9c4c..2c5532c1 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/keyword_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers.py index 47a6a713..ef7cbc27 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_request.py index a26953ad..fade0bbd 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_response.py index de2f484b..1aa66034 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/line_item_bid_multipliers_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/map_string.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/map_string.py index e308497c..8969f4ec 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/map_string.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/map_string.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_metadata.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_metadata.py index 67077455..8d379ea0 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_metadata.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_metadata.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_type_environment.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_type_environment.py index 53091def..5057e4ca 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_type_environment.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/page_type_environment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/post_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/post_campaign_v202301.py index e5f3c02d..b4d5a30e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/post_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/post_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_paged_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_paged_list_response.py index e64ee8c1..a70f4d7c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_paged_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_response.py index a6054017..27b3696a 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_create_model202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_create_model202110_request.py index b4f608f4..9ef1edbb 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_create_model202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_create_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_update_model202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_update_model202110_request.py index 6ac72d23..711a6d5d 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_update_model202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/preferred_line_item_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/problem_details.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/problem_details.py index a5fda3b0..af4fce90 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/problem_details.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_list_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_list_request.py index 284b0d15..e85a3126 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_list_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_paged_list_response.py index 96ba7f00..9d1acef7 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_paged_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/promoted_product202110_paged_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/put_campaign_v202301.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/put_campaign_v202301.py index 78c06a20..12927e23 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/put_campaign_v202301.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/put_campaign_v202301.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py index f7433b75..7c812c4d 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request_attributes.py index 57273fc9..d5891d9d 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request_attributes.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_request_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -114,6 +114,7 @@ def openapi_types(): 'format': (str,), # noqa: E501 'id': (str,), # noqa: E501 'ids': ([str],), # noqa: E501 + 'revenue_type': (str,), # noqa: E501 'time_zone': (str,), # noqa: E501 'view_attribution_window': (str,), # noqa: E501 } @@ -131,6 +132,7 @@ def discriminator(): 'format': 'format', # noqa: E501 'id': 'id', # noqa: E501 'ids': 'ids', # noqa: E501 + 'revenue_type': 'revenueType', # noqa: E501 'time_zone': 'timeZone', # noqa: E501 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 } @@ -185,6 +187,7 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ @@ -284,6 +287,7 @@ def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 time_zone (str): [optional] # noqa: E501 view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py index d04c77ef..0868fb1b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status_attributes.py index f8531167..7813ef53 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status_attributes.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/report_status_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item.py index ca301872..6e773264 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item_update_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item_update_model.py index 0bee92af..a0039a32 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item_update_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_auction_line_item_update_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance202110.py index 05003f92..ce41052f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance_campaign202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance_campaign202110.py index 142d5029..42f305f9 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance_campaign202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_balance_campaign202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_category202204.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_category202204.py index 172bad8b..06d8dfa6 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_category202204.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_common_line_item.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_common_line_item.py index e77e7da5..b8955a36 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_common_line_item.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_common_line_item.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202110.py index a804df5b..f761a763 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202210.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202210.py index ae9f39c7..3f41b0ea 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202210.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_creative202210.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_line_item_bid_multipliers.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_line_item_bid_multipliers.py index c8946206..84db173e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_line_item_bid_multipliers.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item202110.py index 47be11d6..251b464c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item_update_model202110.py index 07bae814..f58a41c6 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_preferred_line_item_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_promoted_product202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_promoted_product202110.py index 5a29e992..faf9251c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_promoted_product202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_promoted_product202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_template.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_template.py index 8be0c746..aed6a0d9 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_template.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/resource_of_template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience.py index 41f28ac5..a9c75511 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_attributes.py index d5e14b92..aa912b08 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2.py index f4c254f8..18ed11db 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_attributes.py index fb1b6fa8..6b2d08d1 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'customer_list_details': (CustomerListDetails,), # noqa: E501 @@ -118,7 +118,7 @@ def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 """RetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -211,7 +211,7 @@ def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 """RetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_list_response.py index 8896f8df..9cbd1cf1 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_response.py index 7fbeb443..e232f8b6 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_audience_v2_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keyword_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keyword_model.py index 65d6f061..f648dd15 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keyword_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keyword_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model.py index 61856d6c..608cc38e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_request.py index cfc94318..606f4c08 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_resource.py index 63efefb9..1d913074 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_resource.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_add_remove_keywords_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_input_keywords_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_input_keywords_model.py index da96e630..49446f2f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_input_keywords_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_input_keywords_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keyword_data_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keyword_data_model.py index 31dbf625..fda86941 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keyword_data_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keyword_data_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model.py index 30e85622..aa82d892 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_resource.py index 823b2d95..0f84de76 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_resource.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_response.py index 47208074..5eb343fa 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_keywords_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_problem_details.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_problem_details.py index 53982eb0..b73dd04c 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_problem_details.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model.py index 1261535e..c735cbe0 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_resource.py index a1c34a76..e75f0bbc 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_resource.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_response.py index e229e15a..c5272115 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_proposal_status_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_resource_outcome.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_resource_outcome.py index 8e78d344..eb56e197 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_resource_outcome.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_resource_outcome.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bid_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bid_model.py index ea07816c..c22cf7dc 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bid_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bid_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model.py index 84a41bc3..2e45493d 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_request.py index 80e5c589..44f97e9e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_resource.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_resource.py index e1b8b5b3..9ae8a053 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_resource.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/retail_media_externalv1_set_bids_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/section.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/section.py index 0b013525..5bea19b1 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/section.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/section.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_ids_update_model202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_ids_update_model202110_request.py index 36b71e1b..d3a4cad4 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_ids_update_model202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_ids_update_model202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_request.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_request.py index 941b89a5..6b1b6745 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_request.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_response.py index 6c9c8ca6..6bc28b58 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/store_target202110_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template.py index 23a4e64c..4090bc43 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_list_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_list_response.py index 7d09664d..99be7da4 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_list_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_response.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_response.py index 0013f2e3..b31ccfcc 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_response.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable.py index c338c28b..b36b4a86 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable_value.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable_value.py index bc6450a0..ff0106d4 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable_value.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/template_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_specification.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_specification.py index ba78f938..2e65c66b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_specification.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_value.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_value.py index 5f9b38c7..15229fb3 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_value.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/text_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details.py index e965d370..11db861e 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details_v2.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details_v2.py index 4ec51273..eda10a3d 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details_v2.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/user_behavior_details_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_ids_update_model202110.py index 13f38f4b..2d7c10c5 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_target202110.py index 37e68b76..36eef31b 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_add_to_basket_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_ids_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_ids_update_model202110.py index e1386dff..6e2f0113 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_ids_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_target202110.py index 337e5ad1..12e40b71 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_audience_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_keyword_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_keyword_target202110.py index 95c46614..508e2b4f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_keyword_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_keyword_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_ids_update_model202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_ids_update_model202110.py index 84135b1e..8941fb3f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_ids_update_model202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_ids_update_model202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_target202110.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_target202110.py index b71a3354..c7f4efb9 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_target202110.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model/value_type_resource_of_store_target202110.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model_utils.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model_utils.py index 96f82a8b..079ab57f 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model_utils.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/rest.py b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/rest.py index 89461b8a..72d1e9a2 100644 --- a/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/rest.py +++ b/sdks/retailmedia_2023-04/criteo_api_retailmedia_v2023_04/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: 2023-04 Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_2023-04/docs/AnalyticsApi.md b/sdks/retailmedia_2023-04/docs/AnalyticsApi.md index 0c80921f..a1b8c79b 100644 --- a/sdks/retailmedia_2023-04/docs/AnalyticsApi.md +++ b/sdks/retailmedia_2023-04/docs/AnalyticsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_report_output** -> int get_report_output(report_id) +> str get_report_output(report_id) @@ -54,7 +54,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Return type -**int** +**str** ### Authorization @@ -141,7 +141,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + report_id = "reportId_example" # str | report id # example passing only required values which don't have defaults set try: @@ -241,13 +241,14 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -262,7 +263,7 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type @@ -347,13 +348,14 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: "ids_example", ], report_type="summary", + revenue_type="revenue_type_example", start_date=dateutil_parser('1970-01-01').date(), time_zone="time_zone_example", view_attribution_window="none", ), type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # EnvelopeReportRequest | Envelope of the request # example passing only required values which don't have defaults set try: @@ -368,7 +370,7 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| Envelope of the request | ### Return type diff --git a/sdks/retailmedia_2023-04/docs/AudienceApi.md b/sdks/retailmedia_2023-04/docs/AudienceApi.md index 093b3af0..35eb2452 100644 --- a/sdks/retailmedia_2023-04/docs/AudienceApi.md +++ b/sdks/retailmedia_2023-04/docs/AudienceApi.md @@ -56,7 +56,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_request = CreateRetailMediaAudienceRequest( data=CreateRetailMediaAudienceBody( type="RetailMediaAudience", @@ -64,12 +64,12 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: user_type="viewer", lookback_window="P7D", brand_ids=[ - "brand_ids_example", + 1, ], category_ids=[ - "category_ids_example", + 1, ], - retailer_id="68004146450571264", + retailer_id=6841, name="Test audience", ), ), @@ -88,7 +88,7 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_request** | [**CreateRetailMediaAudienceRequest**](CreateRetailMediaAudienceRequest.md)| | ### Return type @@ -165,31 +165,31 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_v2_request = CreateRetailMediaAudienceV2Request( data=CreateRetailMediaAudienceV2Data( type="RetailMediaAudience", attributes=CreateRetailMediaAudienceV2Attributes( - retailer_id="68004146450571264", + retailer_id=6041, user_behavior_details=UserBehaviorDetailsV2( inclusive_segment=CreateUserBehaviorSegmentV2( user_action="buy", lookback_window="P7D", category_ids=[ - "category_ids_example", + 1, ], brand_ids=[ - "brand_ids_example", + 1, ], ), exclusive_segment=CreateUserBehaviorSegmentV2( user_action="buy", lookback_window="P7D", category_ids=[ - "category_ids_example", + 1, ], brand_ids=[ - "brand_ids_example", + 1, ], ), ), @@ -211,7 +211,7 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_v2_request** | [**CreateRetailMediaAudienceV2Request**](CreateRetailMediaAudienceV2Request.md)| | ### Return type @@ -391,7 +391,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | External account ID which owns audience. + account_id = 68004146450571264 # int | External account ID which owns audience. limit_to_id = [ 1, ] # [int] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) @@ -419,7 +419,7 @@ with criteo_api_retailmedia_v2023_04.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| External account ID which owns audience. | + **account_id** | **int**| External account ID which owns audience. | **limit_to_id** | **[int]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page | [optional] **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed | [optional] diff --git a/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceAttributes.md index cc255e6a..26d16ce9 100644 --- a/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceAttributes.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_type** | **str** | Type of the user | **lookback_window** | **str** | Length of lookback window | -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | -**brand_ids** | **[str]** | The brands to target | [optional] -**category_ids** | **[str]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceV2Attributes.md index fc54b858..5069a7bd 100644 --- a/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceV2Attributes.md +++ b/sdks/retailmedia_2023-04/docs/CreateRetailMediaAudienceV2Attributes.md @@ -5,7 +5,7 @@ Parameters needed to create an audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | **name** | **str** | Name of the audience. | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2023-04/docs/CreateUserBehaviorSegmentV2.md b/sdks/retailmedia_2023-04/docs/CreateUserBehaviorSegmentV2.md index c9cf462c..19dd22af 100644 --- a/sdks/retailmedia_2023-04/docs/CreateUserBehaviorSegmentV2.md +++ b/sdks/retailmedia_2023-04/docs/CreateUserBehaviorSegmentV2.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_action** | **str** | Type of shopper activity used to generate the audience. | **lookback_window** | **str** | Length of lookback window | -**category_ids** | **[str]** | The categories to target | [optional] -**brand_ids** | **[str]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] **min_price** | **float** | The min price of targeted skus. | [optional] [readonly] **max_price** | **float** | The max price of targeted skus. | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md b/sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md index b2e02b85..0c6a7628 100644 --- a/sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md +++ b/sdks/retailmedia_2023-04/docs/ReportRequestAttributes.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **format** | **str** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" **id** | **str** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] **ids** | **[str]** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] +**revenue_type** | **str** | | [optional] **time_zone** | **str** | | [optional] **view_attribution_window** | **str** | Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_2023-04/docs/RetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-04/docs/RetailMediaAudienceV2Attributes.md index aeff7153..38c93ec6 100644 --- a/sdks/retailmedia_2023-04/docs/RetailMediaAudienceV2Attributes.md +++ b/sdks/retailmedia_2023-04/docs/RetailMediaAudienceV2Attributes.md @@ -5,7 +5,7 @@ Properties of the returned Audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | **user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | [optional] **customer_list_details** | [**CustomerListDetails**](CustomerListDetails.md) | | [optional] diff --git a/sdks/retailmedia_2023-04/setup.py b/sdks/retailmedia_2023-04/setup.py index f4716a74..85ed8e88 100644 --- a/sdks/retailmedia_2023-04/setup.py +++ b/sdks/retailmedia_2023-04/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "2023.04.0.230601" +VERSION = "2023.04.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==2023.04.0.230601 +pip install criteo-api-retailmedia-sdk==2023.04.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.04.0.230726`) Then import the package: ```python diff --git a/sdks/retailmedia_2023-07/.gitignore b/sdks/retailmedia_2023-07/.gitignore new file mode 100644 index 00000000..43995bd4 --- /dev/null +++ b/sdks/retailmedia_2023-07/.gitignore @@ -0,0 +1,66 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/sdks/retailmedia_2023-07/.gitlab-ci.yml b/sdks/retailmedia_2023-07/.gitlab-ci.yml new file mode 100644 index 00000000..ab2679bb --- /dev/null +++ b/sdks/retailmedia_2023-07/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# ref: https://docs.gitlab.com/ee/ci/README.html + +stages: + - test + +.tests: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=criteo_api_retailmedia_v2023_07 + +test-3.6: + extends: .tests + image: python:3.6-alpine +test-3.7: + extends: .tests + image: python:3.7-alpine +test-3.8: + extends: .tests + image: python:3.8-alpine +test-3.9: + extends: .tests + image: python:3.9-alpine diff --git a/sdks/retailmedia_2023-07/.openapi-generator/FILES b/sdks/retailmedia_2023-07/.openapi-generator/FILES new file mode 100644 index 00000000..1a62304b --- /dev/null +++ b/sdks/retailmedia_2023-07/.openapi-generator/FILES @@ -0,0 +1,412 @@ +.gitignore +.gitlab-ci.yml +.openapi-generator-ignore +.travis.yml +README.md +criteo_api_retailmedia_v2023_07/__init__.py +criteo_api_retailmedia_v2023_07/api/__init__.py +criteo_api_retailmedia_v2023_07/api/analytics_api.py +criteo_api_retailmedia_v2023_07/api/audience_api.py +criteo_api_retailmedia_v2023_07/api/campaign_api.py +criteo_api_retailmedia_v2023_07/api/gateway_api.py +criteo_api_retailmedia_v2023_07/api_client.py +criteo_api_retailmedia_v2023_07/api_client_builder.py +criteo_api_retailmedia_v2023_07/apis/__init__.py +criteo_api_retailmedia_v2023_07/configuration.py +criteo_api_retailmedia_v2023_07/criteo_api_client.py +criteo_api_retailmedia_v2023_07/criteo_auth.py +criteo_api_retailmedia_v2023_07/criteo_rest.py +criteo_api_retailmedia_v2023_07/exceptions.py +criteo_api_retailmedia_v2023_07/flow_constants.py +criteo_api_retailmedia_v2023_07/model/__init__.py +criteo_api_retailmedia_v2023_07/model/add_to_basket_ids_update_model202110_request.py +criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_request.py +criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_response.py +criteo_api_retailmedia_v2023_07/model/application_summary_model.py +criteo_api_retailmedia_v2023_07/model/application_summary_model_resource.py +criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py +criteo_api_retailmedia_v2023_07/model/asset.py +criteo_api_retailmedia_v2023_07/model/asset_resource.py +criteo_api_retailmedia_v2023_07/model/asset_response.py +criteo_api_retailmedia_v2023_07/model/async_report_response.py +criteo_api_retailmedia_v2023_07/model/auction_line_item_create_model_request.py +criteo_api_retailmedia_v2023_07/model/auction_line_item_paged_list_response.py +criteo_api_retailmedia_v2023_07/model/auction_line_item_response.py +criteo_api_retailmedia_v2023_07/model/auction_line_item_update_model_request.py +criteo_api_retailmedia_v2023_07/model/audience_ids_update_model202110_request.py +criteo_api_retailmedia_v2023_07/model/audience_target202110_request.py +criteo_api_retailmedia_v2023_07/model/audience_target202110_response.py +criteo_api_retailmedia_v2023_07/model/balance202110_paged_list_response.py +criteo_api_retailmedia_v2023_07/model/balance_campaign202110_list_request.py +criteo_api_retailmedia_v2023_07/model/balance_campaign202110_paged_list_response.py +criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py +criteo_api_retailmedia_v2023_07/model/campaign_report.py +criteo_api_retailmedia_v2023_07/model/campaign_report_request.py +criteo_api_retailmedia_v2023_07/model/campaign_report_resource.py +criteo_api_retailmedia_v2023_07/model/campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/category202204.py +criteo_api_retailmedia_v2023_07/model/category202204_list_response.py +criteo_api_retailmedia_v2023_07/model/choice_option.py +criteo_api_retailmedia_v2023_07/model/choice_variable_specification.py +criteo_api_retailmedia_v2023_07/model/choice_variable_value.py +criteo_api_retailmedia_v2023_07/model/color_variable_value.py +criteo_api_retailmedia_v2023_07/model/common_error.py +criteo_api_retailmedia_v2023_07/model/common_line_item_paged_list_response.py +criteo_api_retailmedia_v2023_07/model/common_line_item_response.py +criteo_api_retailmedia_v2023_07/model/common_problem.py +criteo_api_retailmedia_v2023_07/model/common_status_code_response.py +criteo_api_retailmedia_v2023_07/model/common_warning.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_attributes.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_body.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_request.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_response.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_attributes.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_data.py +criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_request.py +criteo_api_retailmedia_v2023_07/model/create_user_behavior_segment_v2.py +criteo_api_retailmedia_v2023_07/model/creative202110.py +criteo_api_retailmedia_v2023_07/model/creative202110_list_response.py +criteo_api_retailmedia_v2023_07/model/creative202210.py +criteo_api_retailmedia_v2023_07/model/creative202210_list_response.py +criteo_api_retailmedia_v2023_07/model/creative202210_response.py +criteo_api_retailmedia_v2023_07/model/creative_create_model202207.py +criteo_api_retailmedia_v2023_07/model/creative_update_model202207.py +criteo_api_retailmedia_v2023_07/model/customer_list_details.py +criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py +criteo_api_retailmedia_v2023_07/model/export_report_column.py +criteo_api_retailmedia_v2023_07/model/export_report_meta_data.py +criteo_api_retailmedia_v2023_07/model/external_account.py +criteo_api_retailmedia_v2023_07/model/external_add_to_basket_ids_update_model202110.py +criteo_api_retailmedia_v2023_07/model/external_add_to_basket_target202110.py +criteo_api_retailmedia_v2023_07/model/external_auction_line_item.py +criteo_api_retailmedia_v2023_07/model/external_auction_line_item_create_model.py +criteo_api_retailmedia_v2023_07/model/external_auction_line_item_update_model.py +criteo_api_retailmedia_v2023_07/model/external_audience_ids_update_model202110.py +criteo_api_retailmedia_v2023_07/model/external_audience_target202110.py +criteo_api_retailmedia_v2023_07/model/external_balance202110.py +criteo_api_retailmedia_v2023_07/model/external_brand.py +criteo_api_retailmedia_v2023_07/model/external_catalog_request.py +criteo_api_retailmedia_v2023_07/model/external_catalog_status.py +criteo_api_retailmedia_v2023_07/model/external_common_line_item.py +criteo_api_retailmedia_v2023_07/model/external_keyword_target202110.py +criteo_api_retailmedia_v2023_07/model/external_line_item_capping202110.py +criteo_api_retailmedia_v2023_07/model/external_line_item_page202110.py +criteo_api_retailmedia_v2023_07/model/external_line_item_page_category202110.py +criteo_api_retailmedia_v2023_07/model/external_preferred_line_item202110.py +criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_create_model202110.py +criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_update_model202110.py +criteo_api_retailmedia_v2023_07/model/external_promoted_product202110.py +criteo_api_retailmedia_v2023_07/model/external_retailer.py +criteo_api_retailmedia_v2023_07/model/external_retailer_pages202110.py +criteo_api_retailmedia_v2023_07/model/external_store_ids_update_model202110.py +criteo_api_retailmedia_v2023_07/model/external_store_target202110.py +criteo_api_retailmedia_v2023_07/model/files_variable_value.py +criteo_api_retailmedia_v2023_07/model/files_variables_specification.py +criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py +criteo_api_retailmedia_v2023_07/model/hyperlink_variable_value.py +criteo_api_retailmedia_v2023_07/model/input_resource_of_auction_line_item_create_model.py +criteo_api_retailmedia_v2023_07/model/input_resource_of_preferred_line_item_create_model202110.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_account_and_account.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py +criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py +criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py +criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py +criteo_api_retailmedia_v2023_07/model/json_api_request_of_catalog_request.py +criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_catalog_status.py +criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_07/model/keyword_target202110_request.py +criteo_api_retailmedia_v2023_07/model/keyword_target202110_response.py +criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_request.py +criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_response.py +criteo_api_retailmedia_v2023_07/model/line_item_report.py +criteo_api_retailmedia_v2023_07/model/line_item_report_request.py +criteo_api_retailmedia_v2023_07/model/line_item_report_resource.py +criteo_api_retailmedia_v2023_07/model/page_metadata.py +criteo_api_retailmedia_v2023_07/model/page_type_environment.py +criteo_api_retailmedia_v2023_07/model/post_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_paged_list_response.py +criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_response.py +criteo_api_retailmedia_v2023_07/model/preferred_line_item_create_model202110_request.py +criteo_api_retailmedia_v2023_07/model/preferred_line_item_update_model202110_request.py +criteo_api_retailmedia_v2023_07/model/problem_details.py +criteo_api_retailmedia_v2023_07/model/promoted_product202110_list_request.py +criteo_api_retailmedia_v2023_07/model/promoted_product202110_paged_list_response.py +criteo_api_retailmedia_v2023_07/model/put_campaign_v202301.py +criteo_api_retailmedia_v2023_07/model/report_data_response_resource.py +criteo_api_retailmedia_v2023_07/model/report_outcome.py +criteo_api_retailmedia_v2023_07/model/report_response.py +criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item.py +criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item_update_model.py +criteo_api_retailmedia_v2023_07/model/resource_of_balance202110.py +criteo_api_retailmedia_v2023_07/model/resource_of_balance_campaign202110.py +criteo_api_retailmedia_v2023_07/model/resource_of_category202204.py +criteo_api_retailmedia_v2023_07/model/resource_of_common_line_item.py +criteo_api_retailmedia_v2023_07/model/resource_of_creative202110.py +criteo_api_retailmedia_v2023_07/model/resource_of_creative202210.py +criteo_api_retailmedia_v2023_07/model/resource_of_line_item_bid_multipliers.py +criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item202110.py +criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item_update_model202110.py +criteo_api_retailmedia_v2023_07/model/resource_of_promoted_product202110.py +criteo_api_retailmedia_v2023_07/model/resource_of_template.py +criteo_api_retailmedia_v2023_07/model/retail_media_audience.py +criteo_api_retailmedia_v2023_07/model/retail_media_audience_attributes.py +criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2.py +criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_attributes.py +criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_list_response.py +criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_response.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keyword_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_request.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_resource.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_input_keywords_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keyword_data_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_resource.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_response.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_problem_details.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_resource.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_response.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_resource_outcome.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bid_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_request.py +criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_resource.py +criteo_api_retailmedia_v2023_07/model/section.py +criteo_api_retailmedia_v2023_07/model/status_response.py +criteo_api_retailmedia_v2023_07/model/status_response_resource.py +criteo_api_retailmedia_v2023_07/model/store_ids_update_model202110_request.py +criteo_api_retailmedia_v2023_07/model/store_target202110_request.py +criteo_api_retailmedia_v2023_07/model/store_target202110_response.py +criteo_api_retailmedia_v2023_07/model/template.py +criteo_api_retailmedia_v2023_07/model/template_list_response.py +criteo_api_retailmedia_v2023_07/model/template_response.py +criteo_api_retailmedia_v2023_07/model/template_variable.py +criteo_api_retailmedia_v2023_07/model/template_variable_value.py +criteo_api_retailmedia_v2023_07/model/text_variable_specification.py +criteo_api_retailmedia_v2023_07/model/text_variable_value.py +criteo_api_retailmedia_v2023_07/model/user_behavior_details.py +criteo_api_retailmedia_v2023_07/model/user_behavior_details_v2.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_target202110.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_ids_update_model202110.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_target202110.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_keyword_target202110.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_ids_update_model202110.py +criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_target202110.py +criteo_api_retailmedia_v2023_07/model_utils.py +criteo_api_retailmedia_v2023_07/models/__init__.py +criteo_api_retailmedia_v2023_07/rest.py +docs/AddToBasketIdsUpdateModel202110Request.md +docs/AddToBasketTarget202110Request.md +docs/AddToBasketTarget202110Response.md +docs/AnalyticsApi.md +docs/ApplicationSummaryModel.md +docs/ApplicationSummaryModelResource.md +docs/ApplicationSummaryModelResponse.md +docs/Asset.md +docs/AssetResource.md +docs/AssetResponse.md +docs/AsyncReportResponse.md +docs/AuctionLineItemCreateModelRequest.md +docs/AuctionLineItemPagedListResponse.md +docs/AuctionLineItemResponse.md +docs/AuctionLineItemUpdateModelRequest.md +docs/AudienceApi.md +docs/AudienceIdsUpdateModel202110Request.md +docs/AudienceTarget202110Request.md +docs/AudienceTarget202110Response.md +docs/Balance202110PagedListResponse.md +docs/BalanceCampaign202110ListRequest.md +docs/BalanceCampaign202110PagedListResponse.md +docs/CampaignApi.md +docs/CampaignAttributesV202301.md +docs/CampaignReport.md +docs/CampaignReportRequest.md +docs/CampaignReportResource.md +docs/CampaignV202301.md +docs/Category202204.md +docs/Category202204ListResponse.md +docs/ChoiceOption.md +docs/ChoiceVariableSpecification.md +docs/ChoiceVariableValue.md +docs/ColorVariableValue.md +docs/CommonError.md +docs/CommonLineItemPagedListResponse.md +docs/CommonLineItemResponse.md +docs/CommonProblem.md +docs/CommonStatusCodeResponse.md +docs/CommonWarning.md +docs/CreateRetailMediaAudience.md +docs/CreateRetailMediaAudienceAttributes.md +docs/CreateRetailMediaAudienceBody.md +docs/CreateRetailMediaAudienceRequest.md +docs/CreateRetailMediaAudienceResponse.md +docs/CreateRetailMediaAudienceV2.md +docs/CreateRetailMediaAudienceV2Attributes.md +docs/CreateRetailMediaAudienceV2Data.md +docs/CreateRetailMediaAudienceV2Request.md +docs/CreateUserBehaviorSegmentV2.md +docs/Creative202110.md +docs/Creative202110ListResponse.md +docs/Creative202210.md +docs/Creative202210ListResponse.md +docs/Creative202210Response.md +docs/CreativeCreateModel202207.md +docs/CreativeUpdateModel202207.md +docs/CustomerListDetails.md +docs/EditableCampaignAttributesV202301.md +docs/ExportReportColumn.md +docs/ExportReportMetaData.md +docs/ExternalAccount.md +docs/ExternalAddToBasketIdsUpdateModel202110.md +docs/ExternalAddToBasketTarget202110.md +docs/ExternalAuctionLineItem.md +docs/ExternalAuctionLineItemCreateModel.md +docs/ExternalAuctionLineItemUpdateModel.md +docs/ExternalAudienceIdsUpdateModel202110.md +docs/ExternalAudienceTarget202110.md +docs/ExternalBalance202110.md +docs/ExternalBrand.md +docs/ExternalCatalogRequest.md +docs/ExternalCatalogStatus.md +docs/ExternalCommonLineItem.md +docs/ExternalKeywordTarget202110.md +docs/ExternalLineItemCapping202110.md +docs/ExternalLineItemPage202110.md +docs/ExternalLineItemPageCategory202110.md +docs/ExternalPreferredLineItem202110.md +docs/ExternalPreferredLineItemCreateModel202110.md +docs/ExternalPreferredLineItemUpdateModel202110.md +docs/ExternalPromotedProduct202110.md +docs/ExternalRetailer.md +docs/ExternalRetailerPages202110.md +docs/ExternalStoreIdsUpdateModel202110.md +docs/ExternalStoreTarget202110.md +docs/FilesVariableValue.md +docs/FilesVariablesSpecification.md +docs/GatewayApi.md +docs/GetPageOfAudiencesByAccountIdResponse.md +docs/HyperlinkVariableValue.md +docs/InputResourceOfAuctionLineItemCreateModel.md +docs/InputResourceOfPreferredLineItemCreateModel202110.md +docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md +docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md +docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md +docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md +docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md +docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md +docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md +docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md +docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md +docs/JsonApiPageResponseOfAccount.md +docs/JsonApiPageResponseOfBrand.md +docs/JsonApiPageResponseOfCampaignV202301.md +docs/JsonApiPageResponseOfRetailer.md +docs/JsonApiRequestOfCatalogRequest.md +docs/JsonApiSingleResponseOfCampaignV202301.md +docs/JsonApiSingleResponseOfCatalogStatus.md +docs/JsonApiSingleResponseOfLineItemBidMultipliers.md +docs/KeywordTarget202110Request.md +docs/KeywordTarget202110Response.md +docs/LineItemBidMultipliers.md +docs/LineItemBidMultipliersRequest.md +docs/LineItemBidMultipliersResponse.md +docs/LineItemReport.md +docs/LineItemReportRequest.md +docs/LineItemReportResource.md +docs/PageMetadata.md +docs/PageTypeEnvironment.md +docs/PostCampaignV202301.md +docs/PreferredLineItem202110PagedListResponse.md +docs/PreferredLineItem202110Response.md +docs/PreferredLineItemCreateModel202110Request.md +docs/PreferredLineItemUpdateModel202110Request.md +docs/ProblemDetails.md +docs/PromotedProduct202110ListRequest.md +docs/PromotedProduct202110PagedListResponse.md +docs/PutCampaignV202301.md +docs/ReportDataResponseResource.md +docs/ReportOutcome.md +docs/ReportResponse.md +docs/ResourceOfAuctionLineItem.md +docs/ResourceOfAuctionLineItemUpdateModel.md +docs/ResourceOfBalance202110.md +docs/ResourceOfBalanceCampaign202110.md +docs/ResourceOfCategory202204.md +docs/ResourceOfCommonLineItem.md +docs/ResourceOfCreative202110.md +docs/ResourceOfCreative202210.md +docs/ResourceOfLineItemBidMultipliers.md +docs/ResourceOfPreferredLineItem202110.md +docs/ResourceOfPreferredLineItemUpdateModel202110.md +docs/ResourceOfPromotedProduct202110.md +docs/ResourceOfTemplate.md +docs/RetailMediaAudience.md +docs/RetailMediaAudienceAttributes.md +docs/RetailMediaAudienceV2.md +docs/RetailMediaAudienceV2Attributes.md +docs/RetailMediaAudienceV2ListResponse.md +docs/RetailMediaAudienceV2Response.md +docs/RetailMediaExternalv1AddRemoveKeywordModel.md +docs/RetailMediaExternalv1AddRemoveKeywordsModel.md +docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md +docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md +docs/RetailMediaExternalv1InputKeywordsModel.md +docs/RetailMediaExternalv1KeywordDataModel.md +docs/RetailMediaExternalv1KeywordsModel.md +docs/RetailMediaExternalv1KeywordsModelResource.md +docs/RetailMediaExternalv1KeywordsModelResponse.md +docs/RetailMediaExternalv1ProblemDetails.md +docs/RetailMediaExternalv1ProposalStatusModel.md +docs/RetailMediaExternalv1ProposalStatusModelResource.md +docs/RetailMediaExternalv1ProposalStatusModelResponse.md +docs/RetailMediaExternalv1ResourceOutcome.md +docs/RetailMediaExternalv1SetBidModel.md +docs/RetailMediaExternalv1SetBidsModel.md +docs/RetailMediaExternalv1SetBidsModelRequest.md +docs/RetailMediaExternalv1SetBidsModelResource.md +docs/Section.md +docs/StatusResponse.md +docs/StatusResponseResource.md +docs/StoreIdsUpdateModel202110Request.md +docs/StoreTarget202110Request.md +docs/StoreTarget202110Response.md +docs/Template.md +docs/TemplateListResponse.md +docs/TemplateResponse.md +docs/TemplateVariable.md +docs/TemplateVariableValue.md +docs/TextVariableSpecification.md +docs/TextVariableValue.md +docs/UserBehaviorDetails.md +docs/UserBehaviorDetailsV2.md +docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md +docs/ValueTypeResourceOfAddToBasketTarget202110.md +docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md +docs/ValueTypeResourceOfAudienceTarget202110.md +docs/ValueTypeResourceOfKeywordTarget202110.md +docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md +docs/ValueTypeResourceOfStoreTarget202110.md +git_push.sh +requirements.txt +setup.cfg +setup.py +test-requirements.txt +test/example_application_with_auth_code.py +test/example_application_with_client_credentials.py +test/example_application_with_refresh_token.py +test/test_gateway_api.py +tox.ini diff --git a/sdks/retailmedia_2023-07/.openapi-generator/VERSION b/sdks/retailmedia_2023-07/.openapi-generator/VERSION new file mode 100644 index 00000000..e7e42a4b --- /dev/null +++ b/sdks/retailmedia_2023-07/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.3.0 \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/README.md b/sdks/retailmedia_2023-07/README.md new file mode 100644 index 00000000..34ea97b6 --- /dev/null +++ b/sdks/retailmedia_2023-07/README.md @@ -0,0 +1,254 @@ +# Criteo API SDK for Python + +## Introduction +API Client Libraries can facilitate your use of the Criteo API allowing you to build unique and customized solutions to serve your businesses and clients. +These libraries can reduce the amount of code you need to write in order to start accessing Criteo programmatically. They also can help expedite troubleshooting, should you encounter any issues. + +More information: [https://developers.criteo.com/](https://developers.criteo.com/) + +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- Package version: 2023.07.0.230726 + +## Requirements + +Python 2.7 and 3.5+ + +## Installation & Usage +### pip install + +```sh +pip install criteo-api-retailmedia-sdk==2023.07.0.230726 +``` +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.230726`) + +Then import the package: +```python +import criteo_api_retailmedia_v2023_07 +``` + +### Manual Installation using [Setuptools](http://pypi.python.org/pypi/setuptools) + +Download the code or clone the repository locally, then execute the following command: + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import criteo_api_retailmedia_v2023_07 +``` + +## Example +There are multiple examples for the different OAuth flows that the SDK supports. +- See [test/example_application_with_client_credentials.py](test/example_application_with_client_credentials.py) for an example with Client Credentials. +- See [test/example_application_with_auth_code.py](test/example_application_with_auth_code.py) for an example with Authorization Code. +Once you follow the authorization code flow, you will have a refresh token that has to be used to regenerate access token for future usage. + - See [test/example_application_with_refresh_token.py](test/example_application_with_refresh_token.py) for an example with Refresh Token . + +## Documentation for API Endpoints + +The developers documentation is available at: *https://developers.criteo.com*. + +All URIs are relative to *https://api.criteo.com*. + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- + + +## Documentation For Models + + - [AddToBasketIdsUpdateModel202110Request](docs/AddToBasketIdsUpdateModel202110Request.md) + - [AddToBasketTarget202110Request](docs/AddToBasketTarget202110Request.md) + - [AddToBasketTarget202110Response](docs/AddToBasketTarget202110Response.md) + - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) + - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) + - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) + - [Asset](docs/Asset.md) + - [AssetResource](docs/AssetResource.md) + - [AssetResponse](docs/AssetResponse.md) + - [AsyncReportResponse](docs/AsyncReportResponse.md) + - [AuctionLineItemCreateModelRequest](docs/AuctionLineItemCreateModelRequest.md) + - [AuctionLineItemPagedListResponse](docs/AuctionLineItemPagedListResponse.md) + - [AuctionLineItemResponse](docs/AuctionLineItemResponse.md) + - [AuctionLineItemUpdateModelRequest](docs/AuctionLineItemUpdateModelRequest.md) + - [AudienceIdsUpdateModel202110Request](docs/AudienceIdsUpdateModel202110Request.md) + - [AudienceTarget202110Request](docs/AudienceTarget202110Request.md) + - [AudienceTarget202110Response](docs/AudienceTarget202110Response.md) + - [Balance202110PagedListResponse](docs/Balance202110PagedListResponse.md) + - [BalanceCampaign202110ListRequest](docs/BalanceCampaign202110ListRequest.md) + - [BalanceCampaign202110PagedListResponse](docs/BalanceCampaign202110PagedListResponse.md) + - [CampaignAttributesV202301](docs/CampaignAttributesV202301.md) + - [CampaignReport](docs/CampaignReport.md) + - [CampaignReportRequest](docs/CampaignReportRequest.md) + - [CampaignReportResource](docs/CampaignReportResource.md) + - [CampaignV202301](docs/CampaignV202301.md) + - [Category202204](docs/Category202204.md) + - [Category202204ListResponse](docs/Category202204ListResponse.md) + - [ChoiceOption](docs/ChoiceOption.md) + - [ChoiceVariableSpecification](docs/ChoiceVariableSpecification.md) + - [ChoiceVariableValue](docs/ChoiceVariableValue.md) + - [ColorVariableValue](docs/ColorVariableValue.md) + - [CommonError](docs/CommonError.md) + - [CommonLineItemPagedListResponse](docs/CommonLineItemPagedListResponse.md) + - [CommonLineItemResponse](docs/CommonLineItemResponse.md) + - [CommonProblem](docs/CommonProblem.md) + - [CommonStatusCodeResponse](docs/CommonStatusCodeResponse.md) + - [CommonWarning](docs/CommonWarning.md) + - [CreateRetailMediaAudience](docs/CreateRetailMediaAudience.md) + - [CreateRetailMediaAudienceAttributes](docs/CreateRetailMediaAudienceAttributes.md) + - [CreateRetailMediaAudienceBody](docs/CreateRetailMediaAudienceBody.md) + - [CreateRetailMediaAudienceRequest](docs/CreateRetailMediaAudienceRequest.md) + - [CreateRetailMediaAudienceResponse](docs/CreateRetailMediaAudienceResponse.md) + - [CreateRetailMediaAudienceV2](docs/CreateRetailMediaAudienceV2.md) + - [CreateRetailMediaAudienceV2Attributes](docs/CreateRetailMediaAudienceV2Attributes.md) + - [CreateRetailMediaAudienceV2Data](docs/CreateRetailMediaAudienceV2Data.md) + - [CreateRetailMediaAudienceV2Request](docs/CreateRetailMediaAudienceV2Request.md) + - [CreateUserBehaviorSegmentV2](docs/CreateUserBehaviorSegmentV2.md) + - [Creative202110](docs/Creative202110.md) + - [Creative202110ListResponse](docs/Creative202110ListResponse.md) + - [Creative202210](docs/Creative202210.md) + - [Creative202210ListResponse](docs/Creative202210ListResponse.md) + - [Creative202210Response](docs/Creative202210Response.md) + - [CreativeCreateModel202207](docs/CreativeCreateModel202207.md) + - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) + - [CustomerListDetails](docs/CustomerListDetails.md) + - [EditableCampaignAttributesV202301](docs/EditableCampaignAttributesV202301.md) + - [ExportReportColumn](docs/ExportReportColumn.md) + - [ExportReportMetaData](docs/ExportReportMetaData.md) + - [ExternalAccount](docs/ExternalAccount.md) + - [ExternalAddToBasketIdsUpdateModel202110](docs/ExternalAddToBasketIdsUpdateModel202110.md) + - [ExternalAddToBasketTarget202110](docs/ExternalAddToBasketTarget202110.md) + - [ExternalAuctionLineItem](docs/ExternalAuctionLineItem.md) + - [ExternalAuctionLineItemCreateModel](docs/ExternalAuctionLineItemCreateModel.md) + - [ExternalAuctionLineItemUpdateModel](docs/ExternalAuctionLineItemUpdateModel.md) + - [ExternalAudienceIdsUpdateModel202110](docs/ExternalAudienceIdsUpdateModel202110.md) + - [ExternalAudienceTarget202110](docs/ExternalAudienceTarget202110.md) + - [ExternalBalance202110](docs/ExternalBalance202110.md) + - [ExternalBrand](docs/ExternalBrand.md) + - [ExternalCatalogRequest](docs/ExternalCatalogRequest.md) + - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) + - [ExternalCommonLineItem](docs/ExternalCommonLineItem.md) + - [ExternalKeywordTarget202110](docs/ExternalKeywordTarget202110.md) + - [ExternalLineItemCapping202110](docs/ExternalLineItemCapping202110.md) + - [ExternalLineItemPage202110](docs/ExternalLineItemPage202110.md) + - [ExternalLineItemPageCategory202110](docs/ExternalLineItemPageCategory202110.md) + - [ExternalPreferredLineItem202110](docs/ExternalPreferredLineItem202110.md) + - [ExternalPreferredLineItemCreateModel202110](docs/ExternalPreferredLineItemCreateModel202110.md) + - [ExternalPreferredLineItemUpdateModel202110](docs/ExternalPreferredLineItemUpdateModel202110.md) + - [ExternalPromotedProduct202110](docs/ExternalPromotedProduct202110.md) + - [ExternalRetailer](docs/ExternalRetailer.md) + - [ExternalRetailerPages202110](docs/ExternalRetailerPages202110.md) + - [ExternalStoreIdsUpdateModel202110](docs/ExternalStoreIdsUpdateModel202110.md) + - [ExternalStoreTarget202110](docs/ExternalStoreTarget202110.md) + - [FilesVariableValue](docs/FilesVariableValue.md) + - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) + - [GetPageOfAudiencesByAccountIdResponse](docs/GetPageOfAudiencesByAccountIdResponse.md) + - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) + - [InputResourceOfAuctionLineItemCreateModel](docs/InputResourceOfAuctionLineItemCreateModel.md) + - [InputResourceOfPreferredLineItemCreateModel202110](docs/InputResourceOfPreferredLineItemCreateModel202110.md) + - [JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md) + - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) + - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) + - [JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301](docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md) + - [JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus](docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) + - [JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers](docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md) + - [JsonApiBodyWithIdOfInt64AndRetailerAndRetailer](docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md) + - [JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301](docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md) + - [JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest](docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md) + - [JsonApiPageResponseOfAccount](docs/JsonApiPageResponseOfAccount.md) + - [JsonApiPageResponseOfBrand](docs/JsonApiPageResponseOfBrand.md) + - [JsonApiPageResponseOfCampaignV202301](docs/JsonApiPageResponseOfCampaignV202301.md) + - [JsonApiPageResponseOfRetailer](docs/JsonApiPageResponseOfRetailer.md) + - [JsonApiRequestOfCatalogRequest](docs/JsonApiRequestOfCatalogRequest.md) + - [JsonApiSingleResponseOfCampaignV202301](docs/JsonApiSingleResponseOfCampaignV202301.md) + - [JsonApiSingleResponseOfCatalogStatus](docs/JsonApiSingleResponseOfCatalogStatus.md) + - [JsonApiSingleResponseOfLineItemBidMultipliers](docs/JsonApiSingleResponseOfLineItemBidMultipliers.md) + - [KeywordTarget202110Request](docs/KeywordTarget202110Request.md) + - [KeywordTarget202110Response](docs/KeywordTarget202110Response.md) + - [LineItemBidMultipliers](docs/LineItemBidMultipliers.md) + - [LineItemBidMultipliersRequest](docs/LineItemBidMultipliersRequest.md) + - [LineItemBidMultipliersResponse](docs/LineItemBidMultipliersResponse.md) + - [LineItemReport](docs/LineItemReport.md) + - [LineItemReportRequest](docs/LineItemReportRequest.md) + - [LineItemReportResource](docs/LineItemReportResource.md) + - [PageMetadata](docs/PageMetadata.md) + - [PageTypeEnvironment](docs/PageTypeEnvironment.md) + - [PostCampaignV202301](docs/PostCampaignV202301.md) + - [PreferredLineItem202110PagedListResponse](docs/PreferredLineItem202110PagedListResponse.md) + - [PreferredLineItem202110Response](docs/PreferredLineItem202110Response.md) + - [PreferredLineItemCreateModel202110Request](docs/PreferredLineItemCreateModel202110Request.md) + - [PreferredLineItemUpdateModel202110Request](docs/PreferredLineItemUpdateModel202110Request.md) + - [ProblemDetails](docs/ProblemDetails.md) + - [PromotedProduct202110ListRequest](docs/PromotedProduct202110ListRequest.md) + - [PromotedProduct202110PagedListResponse](docs/PromotedProduct202110PagedListResponse.md) + - [PutCampaignV202301](docs/PutCampaignV202301.md) + - [ReportDataResponseResource](docs/ReportDataResponseResource.md) + - [ReportOutcome](docs/ReportOutcome.md) + - [ReportResponse](docs/ReportResponse.md) + - [ResourceOfAuctionLineItem](docs/ResourceOfAuctionLineItem.md) + - [ResourceOfAuctionLineItemUpdateModel](docs/ResourceOfAuctionLineItemUpdateModel.md) + - [ResourceOfBalance202110](docs/ResourceOfBalance202110.md) + - [ResourceOfBalanceCampaign202110](docs/ResourceOfBalanceCampaign202110.md) + - [ResourceOfCategory202204](docs/ResourceOfCategory202204.md) + - [ResourceOfCommonLineItem](docs/ResourceOfCommonLineItem.md) + - [ResourceOfCreative202110](docs/ResourceOfCreative202110.md) + - [ResourceOfCreative202210](docs/ResourceOfCreative202210.md) + - [ResourceOfLineItemBidMultipliers](docs/ResourceOfLineItemBidMultipliers.md) + - [ResourceOfPreferredLineItem202110](docs/ResourceOfPreferredLineItem202110.md) + - [ResourceOfPreferredLineItemUpdateModel202110](docs/ResourceOfPreferredLineItemUpdateModel202110.md) + - [ResourceOfPromotedProduct202110](docs/ResourceOfPromotedProduct202110.md) + - [ResourceOfTemplate](docs/ResourceOfTemplate.md) + - [RetailMediaAudience](docs/RetailMediaAudience.md) + - [RetailMediaAudienceAttributes](docs/RetailMediaAudienceAttributes.md) + - [RetailMediaAudienceV2](docs/RetailMediaAudienceV2.md) + - [RetailMediaAudienceV2Attributes](docs/RetailMediaAudienceV2Attributes.md) + - [RetailMediaAudienceV2ListResponse](docs/RetailMediaAudienceV2ListResponse.md) + - [RetailMediaAudienceV2Response](docs/RetailMediaAudienceV2Response.md) + - [RetailMediaExternalv1AddRemoveKeywordModel](docs/RetailMediaExternalv1AddRemoveKeywordModel.md) + - [RetailMediaExternalv1AddRemoveKeywordsModel](docs/RetailMediaExternalv1AddRemoveKeywordsModel.md) + - [RetailMediaExternalv1AddRemoveKeywordsModelRequest](docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md) + - [RetailMediaExternalv1AddRemoveKeywordsModelResource](docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md) + - [RetailMediaExternalv1InputKeywordsModel](docs/RetailMediaExternalv1InputKeywordsModel.md) + - [RetailMediaExternalv1KeywordDataModel](docs/RetailMediaExternalv1KeywordDataModel.md) + - [RetailMediaExternalv1KeywordsModel](docs/RetailMediaExternalv1KeywordsModel.md) + - [RetailMediaExternalv1KeywordsModelResource](docs/RetailMediaExternalv1KeywordsModelResource.md) + - [RetailMediaExternalv1KeywordsModelResponse](docs/RetailMediaExternalv1KeywordsModelResponse.md) + - [RetailMediaExternalv1ProblemDetails](docs/RetailMediaExternalv1ProblemDetails.md) + - [RetailMediaExternalv1ProposalStatusModel](docs/RetailMediaExternalv1ProposalStatusModel.md) + - [RetailMediaExternalv1ProposalStatusModelResource](docs/RetailMediaExternalv1ProposalStatusModelResource.md) + - [RetailMediaExternalv1ProposalStatusModelResponse](docs/RetailMediaExternalv1ProposalStatusModelResponse.md) + - [RetailMediaExternalv1ResourceOutcome](docs/RetailMediaExternalv1ResourceOutcome.md) + - [RetailMediaExternalv1SetBidModel](docs/RetailMediaExternalv1SetBidModel.md) + - [RetailMediaExternalv1SetBidsModel](docs/RetailMediaExternalv1SetBidsModel.md) + - [RetailMediaExternalv1SetBidsModelRequest](docs/RetailMediaExternalv1SetBidsModelRequest.md) + - [RetailMediaExternalv1SetBidsModelResource](docs/RetailMediaExternalv1SetBidsModelResource.md) + - [Section](docs/Section.md) + - [StatusResponse](docs/StatusResponse.md) + - [StatusResponseResource](docs/StatusResponseResource.md) + - [StoreIdsUpdateModel202110Request](docs/StoreIdsUpdateModel202110Request.md) + - [StoreTarget202110Request](docs/StoreTarget202110Request.md) + - [StoreTarget202110Response](docs/StoreTarget202110Response.md) + - [Template](docs/Template.md) + - [TemplateListResponse](docs/TemplateListResponse.md) + - [TemplateResponse](docs/TemplateResponse.md) + - [TemplateVariable](docs/TemplateVariable.md) + - [TemplateVariableValue](docs/TemplateVariableValue.md) + - [TextVariableSpecification](docs/TextVariableSpecification.md) + - [TextVariableValue](docs/TextVariableValue.md) + - [UserBehaviorDetails](docs/UserBehaviorDetails.md) + - [UserBehaviorDetailsV2](docs/UserBehaviorDetailsV2.md) + - [ValueTypeResourceOfAddToBasketIdsUpdateModel202110](docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md) + - [ValueTypeResourceOfAddToBasketTarget202110](docs/ValueTypeResourceOfAddToBasketTarget202110.md) + - [ValueTypeResourceOfAudienceIdsUpdateModel202110](docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md) + - [ValueTypeResourceOfAudienceTarget202110](docs/ValueTypeResourceOfAudienceTarget202110.md) + - [ValueTypeResourceOfKeywordTarget202110](docs/ValueTypeResourceOfKeywordTarget202110.md) + - [ValueTypeResourceOfStoreIdsUpdateModel202110](docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md) + - [ValueTypeResourceOfStoreTarget202110](docs/ValueTypeResourceOfStoreTarget202110.md) + + +## Disclaimer + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py new file mode 100644 index 00000000..2fd136af --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/__init__.py @@ -0,0 +1,31 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +__version__ = "2023.07.0.230726" + +# import ApiClient +from criteo_api_retailmedia_v2023_07.api_client import ApiClient +from criteo_api_retailmedia_v2023_07.criteo_api_client import CriteoApiClient +from criteo_api_retailmedia_v2023_07.api_client_builder import ApiClientBuilder +from criteo_api_retailmedia_v2023_07 import flow_constants + +# import Configuration +from criteo_api_retailmedia_v2023_07.configuration import Configuration + +# import exceptions +from criteo_api_retailmedia_v2023_07.exceptions import OpenApiException +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_07.exceptions import ApiTypeError +from criteo_api_retailmedia_v2023_07.exceptions import ApiValueError +from criteo_api_retailmedia_v2023_07.exceptions import ApiKeyError +from criteo_api_retailmedia_v2023_07.exceptions import ApiException + + + diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/__init__.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/__init__.py new file mode 100644 index 00000000..fadd9b4d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/__init__.py @@ -0,0 +1,3 @@ +# do not import all apis into this module because that uses a lot of memory and stack frames +# if you need the ability to import all apis from one package, import them with +# from criteo_api_retailmedia_v2023_07.apis import AnalyticsApi diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/analytics_api.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/analytics_api.py new file mode 100644 index 00000000..8e8b57b9 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/analytics_api.py @@ -0,0 +1,596 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_retailmedia_v2023_07.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_07.model.campaign_report_request import CampaignReportRequest +from criteo_api_retailmedia_v2023_07.model.line_item_report_request import LineItemReportRequest +from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_07.model.report_response import ReportResponse + + +class AnalyticsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.generate_campaign_reports_endpoint = _Endpoint( + settings={ + 'response_type': (ReportResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/reports/campaigns', + 'operation_id': 'generate_campaign_reports', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_report_request', + ], + 'required': [ + 'campaign_report_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_report_request': + (CampaignReportRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'campaign_report_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.generate_line_items_reports_endpoint = _Endpoint( + settings={ + 'response_type': (ReportResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/reports/line-items', + 'operation_id': 'generate_line_items_reports', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_report_request', + ], + 'required': [ + 'line_item_report_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_report_request': + (LineItemReportRequest,), + }, + 'attribute_map': { + }, + 'location_map': { + 'line_item_report_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json', + 'text/json', + 'application/*+json' + ] + }, + api_client=api_client + ) + self.get_async_export_output_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/reports/{reportId}/output', + 'operation_id': 'get_async_export_output', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'report_id', + ], + 'required': [ + 'report_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'report_id': + (str,), + }, + 'attribute_map': { + 'report_id': 'reportId', + }, + 'location_map': { + 'report_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_async_export_status_endpoint = _Endpoint( + settings={ + 'response_type': (AsyncReportResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/reports/{reportId}/status', + 'operation_id': 'get_async_export_status', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'report_id', + ], + 'required': [ + 'report_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'report_id': + (str,), + }, + 'attribute_map': { + 'report_id': 'reportId', + }, + 'location_map': { + 'report_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def generate_campaign_reports( + self, + campaign_report_request, + **kwargs + ): + """generate_campaign_reports # noqa: E501 + + Return a Campaign Report # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.generate_campaign_reports(campaign_report_request, async_req=True) + >>> result = thread.get() + + Args: + campaign_report_request (CampaignReportRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ReportResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_report_request'] = \ + campaign_report_request + return self.generate_campaign_reports_endpoint.call_with_http_info(**kwargs) + + def generate_line_items_reports( + self, + line_item_report_request, + **kwargs + ): + """generate_line_items_reports # noqa: E501 + + Return a Line Item Report # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.generate_line_items_reports(line_item_report_request, async_req=True) + >>> result = thread.get() + + Args: + line_item_report_request (LineItemReportRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ReportResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_report_request'] = \ + line_item_report_request + return self.generate_line_items_reports_endpoint.call_with_http_info(**kwargs) + + def get_async_export_output( + self, + report_id, + **kwargs + ): + """get_async_export_output # noqa: E501 + + Return the output of an async report # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_async_export_output(report_id, async_req=True) + >>> result = thread.get() + + Args: + report_id (str): The ID of the report to retrieve + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + str + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['report_id'] = \ + report_id + return self.get_async_export_output_endpoint.call_with_http_info(**kwargs) + + def get_async_export_status( + self, + report_id, + **kwargs + ): + """get_async_export_status # noqa: E501 + + Return the status of an async report # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_async_export_status(report_id, async_req=True) + >>> result = thread.get() + + Args: + report_id (str): The ID of the report to retrieve + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AsyncReportResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['report_id'] = \ + report_id + return self.get_async_export_status_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/audience_api.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/audience_api.py new file mode 100644 index 00000000..2ba3b0f3 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/audience_api.py @@ -0,0 +1,644 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_retailmedia_v2023_07.model.common_status_code_response import CommonStatusCodeResponse +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request +from criteo_api_retailmedia_v2023_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response + + +class AudienceApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.create_audience_endpoint = _Endpoint( + settings={ + 'response_type': (CreateRetailMediaAudienceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/audiences', + 'operation_id': 'create_audience', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'create_retail_media_audience_request', + ], + 'required': [ + 'account_id', + 'create_retail_media_audience_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (int,), + 'create_retail_media_audience_request': + (CreateRetailMediaAudienceRequest,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'create_retail_media_audience_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.create_retail_media_audience_v2_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaAudienceV2Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/v2/accounts/{accountId}/audiences', + 'operation_id': 'create_retail_media_audience_v2', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'create_retail_media_audience_v2_request', + ], + 'required': [ + 'account_id', + 'create_retail_media_audience_v2_request', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (int,), + 'create_retail_media_audience_v2_request': + (CreateRetailMediaAudienceV2Request,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'create_retail_media_audience_v2_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.get_audiences_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (GetPageOfAudiencesByAccountIdResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/audiences', + 'operation_id': 'get_audiences_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_size', + 'page_index', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_id': + ([str],), + 'page_size': + (int,), + 'page_index': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_size': 'pageSize', + 'page_index': 'pageIndex', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_size': 'query', + 'page_index': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_retail_media_audience_v2_list_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaAudienceV2ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/v2/accounts/{accountId}/audiences', + 'operation_id': 'get_retail_media_audience_v2_list_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_size', + 'page_index', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (int,), + 'limit_to_id': + ([int],), + 'page_size': + (int,), + 'page_index': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_size': 'pageSize', + 'page_index': 'pageIndex', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_size': 'query', + 'page_index': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def create_audience( + self, + account_id, + create_retail_media_audience_request, + **kwargs + ): + """create_audience # noqa: E501 + + Create an audience for a given account ID # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_audience(account_id, create_retail_media_audience_request, async_req=True) + >>> result = thread.get() + + Args: + account_id (int): ID of the account to which this audience belongs. + create_retail_media_audience_request (CreateRetailMediaAudienceRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CreateRetailMediaAudienceResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + kwargs['create_retail_media_audience_request'] = \ + create_retail_media_audience_request + return self.create_audience_endpoint.call_with_http_info(**kwargs) + + def create_retail_media_audience_v2( + self, + account_id, + create_retail_media_audience_v2_request, + **kwargs + ): + """create_retail_media_audience_v2 # noqa: E501 + + Create an audience for a given account ID # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_retail_media_audience_v2(account_id, create_retail_media_audience_v2_request, async_req=True) + >>> result = thread.get() + + Args: + account_id (int): ID of the account to which this audience belongs. + create_retail_media_audience_v2_request (CreateRetailMediaAudienceV2Request): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaAudienceV2Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + kwargs['create_retail_media_audience_v2_request'] = \ + create_retail_media_audience_v2_request + return self.create_retail_media_audience_v2_endpoint.call_with_http_info(**kwargs) + + def get_audiences_by_account_id( + self, + account_id, + **kwargs + ): + """get_audiences_by_account_id # noqa: E501 + + Get a page of audiences for a given account ID # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_audiences_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): External account ID which owns audience. + + Keyword Args: + limit_to_id ([str]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] + page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. [optional] + page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + GetPageOfAudiencesByAccountIdResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_audiences_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_retail_media_audience_v2_list_by_account_id( + self, + account_id, + **kwargs + ): + """get_retail_media_audience_v2_list_by_account_id # noqa: E501 + + Get a page of audiences for a given account ID # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_retail_media_audience_v2_list_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (int): External account ID which owns audience. + + Keyword Args: + limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] + page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. [optional] + page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaAudienceV2ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_retail_media_audience_v2_list_by_account_id_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py new file mode 100644 index 00000000..239d03af --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/campaign_api.py @@ -0,0 +1,8938 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_retailmedia_v2023_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2023_07.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest +from criteo_api_retailmedia_v2023_07.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_response import AuctionLineItemResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest +from criteo_api_retailmedia_v2023_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.audience_target202110_request import AudienceTarget202110Request +from criteo_api_retailmedia_v2023_07.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_07.model.balance202110_paged_list_response import Balance202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.category202204 import Category202204 +from criteo_api_retailmedia_v2023_07.model.category202204_list_response import Category202204ListResponse +from criteo_api_retailmedia_v2023_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse +from criteo_api_retailmedia_v2023_07.model.common_line_item_response import CommonLineItemResponse +from criteo_api_retailmedia_v2023_07.model.creative202110_list_response import Creative202110ListResponse +from criteo_api_retailmedia_v2023_07.model.creative202210_list_response import Creative202210ListResponse +from criteo_api_retailmedia_v2023_07.model.creative202210_response import Creative202210Response +from criteo_api_retailmedia_v2023_07.model.creative_create_model202207 import CreativeCreateModel202207 +from criteo_api_retailmedia_v2023_07.model.creative_update_model202207 import CreativeUpdateModel202207 +from criteo_api_retailmedia_v2023_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_campaign_v202301 import JsonApiPageResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer +from criteo_api_retailmedia_v2023_07.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_line_item_bid_multipliers import JsonApiSingleResponseOfLineItemBidMultipliers +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse +from criteo_api_retailmedia_v2023_07.model.post_campaign_v202301 import PostCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +from criteo_api_retailmedia_v2023_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2023_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.put_campaign_v202301 import PutCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model_response import RetailMediaExternalv1KeywordsModelResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest +from criteo_api_retailmedia_v2023_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.store_target202110_request import StoreTarget202110Request +from criteo_api_retailmedia_v2023_07.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_07.model.template_list_response import TemplateListResponse +from criteo_api_retailmedia_v2023_07.model.template_response import TemplateResponse + + +class CampaignApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.add_remove_keywords_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaExternalv1ResourceOutcome,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{id}/keywords/add-remove', + 'operation_id': 'add_remove_keywords', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'retail_media_externalv1_add_remove_keywords_model_request', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'retail_media_externalv1_add_remove_keywords_model_request': + (RetailMediaExternalv1AddRemoveKeywordsModelRequest,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + 'retail_media_externalv1_add_remove_keywords_model_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.create_asset_endpoint = _Endpoint( + settings={ + 'response_type': (AssetResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/assets', + 'operation_id': 'create_asset', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'asset_file', + ], + 'required': [ + 'asset_file', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'asset_file': + (file_type,), + }, + 'attribute_map': { + 'asset_file': 'AssetFile', + }, + 'location_map': { + 'asset_file': 'form', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'multipart/form-data' + ] + }, + api_client=api_client + ) + self.fetch_keywords_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaExternalv1KeywordsModelResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{id}/keywords', + 'operation_id': 'fetch_keywords', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.fetch_proposal_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaExternalv1ProposalStatusModelResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-deal-line-items/{id}/proposal', + 'operation_id': 'fetch_proposal', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_account_balances_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (Balance202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/balances', + 'operation_id': 'get_api202110_external_account_balances_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'account_id': 'account-id', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (Creative202110ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/creatives', + 'operation_id': 'get_api202110_external_account_creatives_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + }, + 'attribute_map': { + 'account_id': 'account-id', + }, + 'location_map': { + 'account_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (KeywordTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords', + 'operation_id': 'get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_balance_campaigns_by_balance_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceCampaign202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/balances/{balance-id}/campaigns', + 'operation_id': 'get_api202110_external_balance_campaigns_by_balance_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'balance_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'balance_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'balance_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'balance_id': 'balance-id', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'balance_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint( + settings={ + 'response_type': (PreferredLineItem202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items', + 'operation_id': 'get_api202110_external_campaign_preferred_line_items_by_campaign_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'campaign_id': 'campaign-id', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'campaign_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_line_item_products_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (PromotedProduct202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/products', + 'operation_id': 'get_api202110_external_line_item_products_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'line_item_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_preferred_line_item_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (PreferredLineItem202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}', + 'operation_id': 'get_api202110_external_preferred_line_item_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AddToBasketTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket', + 'operation_id': 'get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences', + 'operation_id': 'get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (StoreTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores', + 'operation_id': 'get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202110_external_retailer_pages_by_retailer_id_endpoint = _Endpoint( + settings={ + 'response_type': (ExternalRetailerPages202110,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/retailers/{retailerId}/pages', + 'operation_id': 'get_api202110_external_retailer_pages_by_retailer_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'retailer_id', + ], + 'required': [ + 'retailer_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'retailer_id': + (int,), + }, + 'attribute_map': { + 'retailer_id': 'retailerId', + }, + 'location_map': { + 'retailer_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202204_external_categorie_by_category_id_endpoint = _Endpoint( + settings={ + 'response_type': (Category202204,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/categories/{categoryId}', + 'operation_id': 'get_api202204_external_categorie_by_category_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'category_id', + ], + 'required': [ + 'category_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'category_id': + (int,), + }, + 'attribute_map': { + 'category_id': 'categoryId', + }, + 'location_map': { + 'category_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202204_external_categories_endpoint = _Endpoint( + settings={ + 'response_type': (Category202204ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/categories', + 'operation_id': 'get_api202204_external_categories', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'retailer_id', + 'text_substring', + 'page_index', + 'page_size', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'page_index', + 'page_size', + ] + }, + root_map={ + 'validations': { + ('page_index',): { + + 'inclusive_maximum': 500, + 'inclusive_minimum': 0, + }, + ('page_size',): { + + 'inclusive_maximum': 100, + 'inclusive_minimum': 1, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'retailer_id': + (int,), + 'text_substring': + (str,), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'retailer_id': 'retailerId', + 'text_substring': 'textSubstring', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'retailer_id': 'query', + 'text_substring': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202207_external_retailer_by_retailer_id_templatestemplate_id_endpoint = _Endpoint( + settings={ + 'response_type': (TemplateResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/retailers/{retailer-id}/templates/{template-id}', + 'operation_id': 'get_api202207_external_retailer_by_retailer_id_templatestemplate_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'retailer_id', + 'template_id', + ], + 'required': [ + 'retailer_id', + 'template_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'retailer_id': + (int,), + 'template_id': + (int,), + }, + 'attribute_map': { + 'retailer_id': 'retailer-id', + 'template_id': 'template-id', + }, + 'location_map': { + 'retailer_id': 'path', + 'template_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202207_external_retailer_templates_by_retailer_id_endpoint = _Endpoint( + settings={ + 'response_type': (TemplateListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/retailers/{retailer-id}/templates', + 'operation_id': 'get_api202207_external_retailer_templates_by_retailer_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'retailer_id', + ], + 'required': [ + 'retailer_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'retailer_id': + (int,), + }, + 'attribute_map': { + 'retailer_id': 'retailer-id', + }, + 'location_map': { + 'retailer_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202210_external_account_by_account_id_creativescreative_id_endpoint = _Endpoint( + settings={ + 'response_type': (Creative202210Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}', + 'operation_id': 'get_api202210_external_account_by_account_id_creativescreative_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'creative_id', + ], + 'required': [ + 'account_id', + 'creative_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'creative_id': + (str,), + }, + 'attribute_map': { + 'account_id': 'account-id', + 'creative_id': 'creative-id', + }, + 'location_map': { + 'account_id': 'path', + 'creative_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202301_external_account_campaigns_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiPageResponseOfCampaignV202301,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/campaigns', + 'operation_id': 'get_api202301_external_account_campaigns_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202301_external_campaign_by_campaign_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiSingleResponseOfCampaignV202301,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/campaigns/{campaignId}', + 'operation_id': 'get_api202301_external_campaign_by_campaign_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + }, + 'attribute_map': { + 'campaign_id': 'campaignId', + }, + 'location_map': { + 'campaign_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiSingleResponseOfLineItemBidMultipliers,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/bid-multipliers', + 'operation_id': 'get_api202301_external_line_item_bid_multipliers_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v1_external_account_brands_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiPageResponseOfBrand,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/brands', + 'operation_id': 'get_api_v1_external_account_brands_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v1_external_account_retailers_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiPageResponseOfRetailer,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/retailers', + 'operation_id': 'get_api_v1_external_account_retailers_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v1_external_accounts_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiPageResponseOfAccount,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts', + 'operation_id': 'get_api_v1_external_accounts', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v1_external_catalog_output_by_catalog_id_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/catalogs/{catalogId}/output', + 'operation_id': 'get_api_v1_external_catalog_output_by_catalog_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'catalog_id', + ], + 'required': [ + 'catalog_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'catalog_id': + (str,), + }, + 'attribute_map': { + 'catalog_id': 'catalogId', + }, + 'location_map': { + 'catalog_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/x-json-stream', + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v1_external_catalog_status_by_catalog_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiSingleResponseOfCatalogStatus,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/catalogs/{catalogId}/status', + 'operation_id': 'get_api_v1_external_catalog_status_by_catalog_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'catalog_id', + ], + 'required': [ + 'catalog_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'catalog_id': + (str,), + }, + 'attribute_map': { + 'catalog_id': 'catalogId', + }, + 'location_map': { + 'catalog_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v2_external_account_line_items_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (CommonLineItemPagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/line-items', + 'operation_id': 'get_api_v2_external_account_line_items_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_campaign_id', + 'limit_to_type', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + 'limit_to_type', + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + ('limit_to_type',): { + + "UNKNOWN": "Unknown", + "AUCTION": "Auction", + "PREFERRED": "Preferred" + }, + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_campaign_id': + ([str],), + 'limit_to_type': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'account_id': 'account-id', + 'limit_to_campaign_id': 'limitToCampaignId', + 'limit_to_type': 'limitToType', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_campaign_id': 'query', + 'limit_to_type': 'query', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_campaign_id': 'multi', + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v2_external_auction_line_item_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AuctionLineItemResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/auction-line-items/{line-item-id}', + 'operation_id': 'get_api_v2_external_auction_line_item_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint = _Endpoint( + settings={ + 'response_type': (AuctionLineItemPagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/campaigns/{campaign-id}/auction-line-items', + 'operation_id': 'get_api_v2_external_campaign_auction_line_items_by_campaign_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'campaign_id': 'campaign-id', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'campaign_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_api_v2_external_line_item_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (CommonLineItemResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}', + 'operation_id': 'get_api_v2_external_line_item_by_line_item_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (KeywordTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append', + 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'keyword_target202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'keyword_target202110_request': + (KeywordTarget202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'keyword_target202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (KeywordTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete', + 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'keyword_target202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'keyword_target202110_request': + (KeywordTarget202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'keyword_target202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceCampaign202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/balances/{balance-id}/campaigns/append', + 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'balance_id', + 'balance_campaign202110_list_request', + ], + 'required': [ + 'balance_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'balance_id': + (str,), + 'balance_campaign202110_list_request': + (BalanceCampaign202110ListRequest,), + }, + 'attribute_map': { + 'balance_id': 'balance-id', + }, + 'location_map': { + 'balance_id': 'path', + 'balance_campaign202110_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceCampaign202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/balances/{balance-id}/campaigns/delete', + 'operation_id': 'post_api202110_external_balance_campaigns_delete_by_balance_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'balance_id', + 'balance_campaign202110_list_request', + ], + 'required': [ + 'balance_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'balance_id': + (str,), + 'balance_campaign202110_list_request': + (BalanceCampaign202110ListRequest,), + }, + 'attribute_map': { + 'balance_id': 'balance-id', + }, + 'location_map': { + 'balance_id': 'path', + 'balance_campaign202110_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint( + settings={ + 'response_type': (PreferredLineItem202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items', + 'operation_id': 'post_api202110_external_campaign_preferred_line_items_by_campaign_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + 'preferred_line_item_create_model202110_request', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + 'preferred_line_item_create_model202110_request': + (PreferredLineItemCreateModel202110Request,), + }, + 'attribute_map': { + 'campaign_id': 'campaign-id', + }, + 'location_map': { + 'campaign_id': 'path', + 'preferred_line_item_create_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_line_item_products_append_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (PromotedProduct202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/products/append', + 'operation_id': 'post_api202110_external_line_item_products_append_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product202110_list_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product202110_list_request': + (PromotedProduct202110ListRequest,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product202110_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (PromotedProduct202110PagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/products/delete', + 'operation_id': 'post_api202110_external_line_item_products_delete_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product202110_list_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product202110_list_request': + (PromotedProduct202110ListRequest,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product202110_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/products/pause', + 'operation_id': 'post_api202110_external_line_item_products_pause_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product202110_list_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product202110_list_request': + (PromotedProduct202110ListRequest,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product202110_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': None, + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/products/unpause', + 'operation_id': 'post_api202110_external_line_item_products_unpause_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'promoted_product202110_list_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'promoted_product202110_list_request': + (PromotedProduct202110ListRequest,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'promoted_product202110_list_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AddToBasketTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append', + 'operation_id': 'post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'add_to_basket_ids_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'add_to_basket_ids_update_model202110_request': + (AddToBasketIdsUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'add_to_basket_ids_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AddToBasketTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete', + 'operation_id': 'post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'add_to_basket_ids_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'add_to_basket_ids_update_model202110_request': + (AddToBasketIdsUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'add_to_basket_ids_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append', + 'operation_id': 'post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'audience_ids_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'audience_ids_update_model202110_request': + (AudienceIdsUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'audience_ids_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete', + 'operation_id': 'post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'audience_ids_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'audience_ids_update_model202110_request': + (AudienceIdsUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'audience_ids_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (StoreTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append', + 'operation_id': 'post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'store_ids_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'store_ids_update_model202110_request': + (StoreIdsUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'store_ids_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (StoreTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete', + 'operation_id': 'post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'store_ids_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'store_ids_update_model202110_request': + (StoreIdsUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'store_ids_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202210_external_account_creatives_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (Creative202210Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/creatives', + 'operation_id': 'post_api202210_external_account_creatives_by_account_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'creative_create_model202207', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'creative_create_model202207': + (CreativeCreateModel202207,), + }, + 'attribute_map': { + 'account_id': 'account-id', + }, + 'location_map': { + 'account_id': 'path', + 'creative_create_model202207': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api202210_external_account_creatives_search_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (Creative202210ListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/creatives/search', + 'operation_id': 'post_api202210_external_account_creatives_search_by_account_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'creative_ids', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'creative_ids': + ([str],), + }, + 'attribute_map': { + 'account_id': 'account-id', + 'creative_ids': 'creative-ids', + }, + 'location_map': { + 'account_id': 'path', + 'creative_ids': 'query', + }, + 'collection_format_map': { + 'creative_ids': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.post_api202301_external_account_campaigns_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiSingleResponseOfCampaignV202301,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/campaigns', + 'operation_id': 'post_api202301_external_account_campaigns_by_account_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'post_campaign_v202301', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'post_campaign_v202301': + (PostCampaignV202301,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'post_campaign_v202301': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api_v1_external_account_catalogs_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiSingleResponseOfCatalogStatus,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/catalogs', + 'operation_id': 'post_api_v1_external_account_catalogs_by_account_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'json_api_request_of_catalog_request', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'json_api_request_of_catalog_request': + (JsonApiRequestOfCatalogRequest,), + }, + 'attribute_map': { + 'account_id': 'accountId', + }, + 'location_map': { + 'account_id': 'path', + 'json_api_request_of_catalog_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint = _Endpoint( + settings={ + 'response_type': (AuctionLineItemResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/campaigns/{campaign-id}/auction-line-items', + 'operation_id': 'post_api_v2_external_campaign_auction_line_items_by_campaign_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + 'auction_line_item_create_model_request', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + 'auction_line_item_create_model_request': + (AuctionLineItemCreateModelRequest,), + }, + 'attribute_map': { + 'campaign_id': 'campaign-id', + }, + 'location_map': { + 'campaign_id': 'path', + 'auction_line_item_create_model_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202110_external_preferred_line_item_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (PreferredLineItem202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}', + 'operation_id': 'put_api202110_external_preferred_line_item_by_line_item_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'preferred_line_item_update_model202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'preferred_line_item_update_model202110_request': + (PreferredLineItemUpdateModel202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'preferred_line_item_update_model202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AddToBasketTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket', + 'operation_id': 'put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'add_to_basket_target202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'add_to_basket_target202110_request': + (AddToBasketTarget202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'add_to_basket_target202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AudienceTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences', + 'operation_id': 'put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'audience_target202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'audience_target202110_request': + (AudienceTarget202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'audience_target202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (StoreTarget202110Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores', + 'operation_id': 'put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'store_target202110_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'store_target202110_request': + (StoreTarget202110Request,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'store_target202110_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202210_external_account_by_account_id_creativescreative_id_endpoint = _Endpoint( + settings={ + 'response_type': (Creative202210Response,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/creatives/{creative-id}', + 'operation_id': 'put_api202210_external_account_by_account_id_creativescreative_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'creative_id', + 'creative_update_model202207', + ], + 'required': [ + 'account_id', + 'creative_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'creative_id': + (str,), + 'creative_update_model202207': + (CreativeUpdateModel202207,), + }, + 'attribute_map': { + 'account_id': 'account-id', + 'creative_id': 'creative-id', + }, + 'location_map': { + 'account_id': 'path', + 'creative_id': 'path', + 'creative_update_model202207': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202301_external_campaign_by_campaign_id_endpoint = _Endpoint( + settings={ + 'response_type': (JsonApiSingleResponseOfCampaignV202301,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/campaigns/{campaignId}', + 'operation_id': 'put_api202301_external_campaign_by_campaign_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'campaign_id', + 'put_campaign_v202301', + ], + 'required': [ + 'campaign_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'campaign_id': + (str,), + 'put_campaign_v202301': + (PutCampaignV202301,), + }, + 'attribute_map': { + 'campaign_id': 'campaignId', + }, + 'location_map': { + 'campaign_id': 'path', + 'put_campaign_v202301': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (LineItemBidMultipliersResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{line-item-id}/bid-multipliers', + 'operation_id': 'put_api202301_external_line_item_bid_multipliers_by_line_item_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'line_item_bid_multipliers_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'line_item_bid_multipliers_request': + (LineItemBidMultipliersRequest,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'line_item_bid_multipliers_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.put_api_v2_external_auction_line_item_by_line_item_id_endpoint = _Endpoint( + settings={ + 'response_type': (AuctionLineItemResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/auction-line-items/{line-item-id}', + 'operation_id': 'put_api_v2_external_auction_line_item_by_line_item_id', + 'http_method': 'PUT', + 'servers': None, + }, + params_map={ + 'all': [ + 'line_item_id', + 'auction_line_item_update_model_request', + ], + 'required': [ + 'line_item_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'line_item_id': + (str,), + 'auction_line_item_update_model_request': + (AuctionLineItemUpdateModelRequest,), + }, + 'attribute_map': { + 'line_item_id': 'line-item-id', + }, + 'location_map': { + 'line_item_id': 'path', + 'auction_line_item_update_model_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.set_keyword_bids_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaExternalv1ResourceOutcome,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/line-items/{id}/keywords/set-bid', + 'operation_id': 'set_keyword_bids', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'retail_media_externalv1_set_bids_model_request', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'retail_media_externalv1_set_bids_model_request': + (RetailMediaExternalv1SetBidsModelRequest,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + 'retail_media_externalv1_set_bids_model_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.submit_proposal_endpoint = _Endpoint( + settings={ + 'response_type': (RetailMediaExternalv1ProposalStatusModelResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/preferred-deal-line-items/{id}/proposal/submit', + 'operation_id': 'submit_proposal', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + }, + 'attribute_map': { + 'id': 'id', + }, + 'location_map': { + 'id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def add_remove_keywords( + self, + id, + **kwargs + ): + """add_remove_keywords # noqa: E501 + + Add or Remove keywords from the associated line item in bulk # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.add_remove_keywords(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): Long external id of the associated line item + + Keyword Args: + retail_media_externalv1_add_remove_keywords_model_request (RetailMediaExternalv1AddRemoveKeywordsModelRequest): Object containing keywords to be added or removed. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaExternalv1ResourceOutcome + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.add_remove_keywords_endpoint.call_with_http_info(**kwargs) + + def create_asset( + self, + asset_file, + **kwargs + ): + """create_asset # noqa: E501 + + Creates an asset # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_asset(asset_file, async_req=True) + >>> result = thread.get() + + Args: + asset_file (file_type): The asset binary content + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AssetResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['asset_file'] = \ + asset_file + return self.create_asset_endpoint.call_with_http_info(**kwargs) + + def fetch_keywords( + self, + id, + **kwargs + ): + """fetch_keywords # noqa: E501 + + Fetch keywords associated with the specified line item # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.fetch_keywords(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): Long external id of the associated line item + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaExternalv1KeywordsModelResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.fetch_keywords_endpoint.call_with_http_info(**kwargs) + + def fetch_proposal( + self, + id, + **kwargs + ): + """fetch_proposal # noqa: E501 + + Fetch the status of a proposal to modify a Preferred Deal Line Item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.fetch_proposal(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): The external id of a line item. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaExternalv1ProposalStatusModelResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.fetch_proposal_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_account_balances_by_account_id( + self, + account_id, + **kwargs + ): + """get_api202110_external_account_balances_by_account_id # noqa: E501 + + Gets page of balance objects for the given account id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_account_balances_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The account to get balances for + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Balance202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api202110_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_account_creatives_by_account_id( + self, + account_id, + **kwargs + ): + """get_api202110_external_account_creatives_by_account_id # noqa: E501 + + Get account creatives # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_account_creatives_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): External account id to retrieve creatives for + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Creative202110ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api202110_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id # noqa: E501 + + This endpoint gets the keyword target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + KeywordTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_balance_campaigns_by_balance_id( + self, + balance_id, + **kwargs + ): + """get_api202110_external_balance_campaigns_by_balance_id # noqa: E501 + + Gets page of campaigns for the given balanceId # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_balance_campaigns_by_balance_id(balance_id, async_req=True) + >>> result = thread.get() + + Args: + balance_id (str): The balance to get campaigns from + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + BalanceCampaign202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['balance_id'] = \ + balance_id + return self.get_api202110_external_balance_campaigns_by_balance_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_campaign_preferred_line_items_by_campaign_id( + self, + campaign_id, + **kwargs + ): + """get_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 + + Gets page of preferred line item objects for the given campaign id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): The given campaign id + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PreferredLineItem202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_line_item_products_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202110_external_line_item_products_by_line_item_id # noqa: E501 + + This endpoint gets the promoted products on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_line_item_products_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PromotedProduct202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_line_item_products_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_preferred_line_item_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202110_external_preferred_line_item_by_line_item_id # noqa: E501 + + Gets the preferred line item for the given line item id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_preferred_line_item_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The given line item id + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PreferredLineItem202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_preferred_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id # noqa: E501 + + This endpoint gets the add to basket target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AddToBasketTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id # noqa: E501 + + This endpoint gets the audience target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id # noqa: E501 + + This endpoint gets the store target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + StoreTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api202110_external_retailer_pages_by_retailer_id( + self, + retailer_id, + **kwargs + ): + """get_api202110_external_retailer_pages_by_retailer_id # noqa: E501 + + Get the page types available for the given retailer # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202110_external_retailer_pages_by_retailer_id(retailer_id, async_req=True) + >>> result = thread.get() + + Args: + retailer_id (int): The retailers to fetch pages for + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ExternalRetailerPages202110 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api202110_external_retailer_pages_by_retailer_id_endpoint.call_with_http_info(**kwargs) + + def get_api202204_external_categorie_by_category_id( + self, + category_id, + **kwargs + ): + """get_api202204_external_categorie_by_category_id # noqa: E501 + + Endpoint to search for a specific category by categoryId. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202204_external_categorie_by_category_id(category_id, async_req=True) + >>> result = thread.get() + + Args: + category_id (int): ID of the desired category + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Category202204 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['category_id'] = \ + category_id + return self.get_api202204_external_categorie_by_category_id_endpoint.call_with_http_info(**kwargs) + + def get_api202204_external_categories( + self, + **kwargs + ): + """get_api202204_external_categories # noqa: E501 + + Endpoint to search categories by text and retailer. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202204_external_categories(async_req=True) + >>> result = thread.get() + + + Keyword Args: + retailer_id (int): The retailer id for which Categories fetched. [optional] + text_substring (str): Query string to search across Categories. [optional] + page_index (int): The start position in the overall list of matches. Must be zero or greater.. [optional] if omitted the server will use the default value of 0 + page_size (int): The maximum number of results to return with each call. Must be greater than zero.. [optional] if omitted the server will use the default value of 100 + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Category202204ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_api202204_external_categories_endpoint.call_with_http_info(**kwargs) + + def get_api202207_external_retailer_by_retailer_id_templatestemplate_id( + self, + retailer_id, + template_id, + **kwargs + ): + """get_api202207_external_retailer_by_retailer_id_templatestemplate_id # noqa: E501 + + Gets the template for the specified retailer id and template id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id, async_req=True) + >>> result = thread.get() + + Args: + retailer_id (int): Retailer Id + template_id (int): Template Id + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + TemplateResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['retailer_id'] = \ + retailer_id + kwargs['template_id'] = \ + template_id + return self.get_api202207_external_retailer_by_retailer_id_templatestemplate_id_endpoint.call_with_http_info(**kwargs) + + def get_api202207_external_retailer_templates_by_retailer_id( + self, + retailer_id, + **kwargs + ): + """get_api202207_external_retailer_templates_by_retailer_id # noqa: E501 + + Get retailer creative templates # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202207_external_retailer_templates_by_retailer_id(retailer_id, async_req=True) + >>> result = thread.get() + + Args: + retailer_id (int): External retailer id to retrieve creative templates for + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + TemplateListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api202207_external_retailer_templates_by_retailer_id_endpoint.call_with_http_info(**kwargs) + + def get_api202210_external_account_by_account_id_creativescreative_id( + self, + account_id, + creative_id, + **kwargs + ): + """get_api202210_external_account_by_account_id_creativescreative_id # noqa: E501 + + Get the specified creative # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): External account id to retrieve creatives for + creative_id (str): Creative to get + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Creative202210Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + kwargs['creative_id'] = \ + creative_id + return self.get_api202210_external_account_by_account_id_creativescreative_id_endpoint.call_with_http_info(**kwargs) + + def get_api202301_external_account_campaigns_by_account_id( + self, + account_id, + **kwargs + ): + """get_api202301_external_account_campaigns_by_account_id # noqa: E501 + + Get all the editable and creatable campaign attributes including all types of budgets for each campaigns in relation to the account id, limited by the campaign ids. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202301_external_account_campaigns_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The account to request the campaign for. + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0 + page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25 + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiPageResponseOfCampaignV202301 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api202301_external_account_campaigns_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api202301_external_campaign_by_campaign_id( + self, + campaign_id, + **kwargs + ): + """get_api202301_external_campaign_by_campaign_id # noqa: E501 + + Get all the editable and creatable campaign attributes including all types of budgets given the campaign id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202301_external_campaign_by_campaign_id(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): Campaign Id of the campaign detail + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfCampaignV202301 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.get_api202301_external_campaign_by_campaign_id_endpoint.call_with_http_info(**kwargs) + + def get_api202301_external_line_item_bid_multipliers_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api202301_external_line_item_bid_multipliers_by_line_item_id # noqa: E501 + + Get bid multipliers by line item # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): Long external id of the associated line item + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfLineItemBidMultipliers + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_account_brands_by_account_id( + self, + account_id, + **kwargs + ): + """get_api_v1_external_account_brands_by_account_id # noqa: E501 + + Gets page of retailer objects that are associated with the given account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_account_brands_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The given account id + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiPageResponseOfBrand + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_brands_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_account_retailers_by_account_id( + self, + account_id, + **kwargs + ): + """get_api_v1_external_account_retailers_by_account_id # noqa: E501 + + Gets page of retailer objects that are associated with the given account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_account_retailers_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The given account id + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiPageResponseOfRetailer + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_retailers_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_accounts( + self, + **kwargs + ): + """get_api_v1_external_accounts # noqa: E501 + + Gets page of account objects that the current user can access # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_accounts(async_req=True) + >>> result = thread.get() + + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiPageResponseOfAccount + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_catalog_output_by_catalog_id( + self, + catalog_id, + **kwargs + ): + """get_api_v1_external_catalog_output_by_catalog_id # noqa: E501 + + Output the indicated catalog. Catalogs are only available for retrieval when their associated status request is at a Success status. Produces application/x-json-stream of v2021_07 CatalogProduct json objects. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_catalog_output_by_catalog_id(catalog_id, async_req=True) + >>> result = thread.get() + + Args: + catalog_id (str): A catalog ID returned from an account catalog request. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['catalog_id'] = \ + catalog_id + return self.get_api_v1_external_catalog_output_by_catalog_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_catalog_status_by_catalog_id( + self, + catalog_id, + **kwargs + ): + """get_api_v1_external_catalog_status_by_catalog_id # noqa: E501 + + Check the status of a catalog request. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_catalog_status_by_catalog_id(catalog_id, async_req=True) + >>> result = thread.get() + + Args: + catalog_id (str): A catalog ID returned from an account catalog request. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfCatalogStatus + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['catalog_id'] = \ + catalog_id + return self.get_api_v1_external_catalog_status_by_catalog_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v2_external_account_line_items_by_account_id( + self, + account_id, + **kwargs + ): + """get_api_v2_external_account_line_items_by_account_id # noqa: E501 + + Gets page of line item objects for the given account id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v2_external_account_line_items_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The given account id + + Keyword Args: + limit_to_campaign_id ([str]): The campaign ids that you would like to limit your result set to. [optional] + limit_to_type (str): The campaign types that you would like to limit your result set to. [optional] + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CommonLineItemPagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api_v2_external_account_line_items_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v2_external_auction_line_item_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api_v2_external_auction_line_item_by_line_item_id # noqa: E501 + + Gets the auction line item for the given line item id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v2_external_auction_line_item_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The given line item id + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AuctionLineItemResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v2_external_campaign_auction_line_items_by_campaign_id( + self, + campaign_id, + **kwargs + ): + """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 + + Gets page of auction line item objects for the given campaign id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): The given campaign id + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AuctionLineItemPagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.get_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v2_external_line_item_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """get_api_v2_external_line_item_by_line_item_id # noqa: E501 + + Gets the line item for the given line item id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v2_external_line_item_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The given line item id + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + CommonLineItemResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api_v2_external_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501 + + This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + keyword_target202110_request (KeywordTarget202110Request): . [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + KeywordTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id # noqa: E501 + + This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + keyword_target202110_request (KeywordTarget202110Request): . [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + KeywordTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_balance_campaigns_append_by_balance_id( + self, + balance_id, + **kwargs + ): + """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501 + + appends one or more campaigns to the specified balance # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, async_req=True) + >>> result = thread.get() + + Args: + balance_id (str): The balance to add campaigns from + + Keyword Args: + balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + BalanceCampaign202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['balance_id'] = \ + balance_id + return self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_balance_campaigns_delete_by_balance_id( + self, + balance_id, + **kwargs + ): + """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501 + + Removes one or more campaigns on the specified balance # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, async_req=True) + >>> result = thread.get() + + Args: + balance_id (str): The balance to remove campaigns from + + Keyword Args: + balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + BalanceCampaign202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['balance_id'] = \ + balance_id + return self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_campaign_preferred_line_items_by_campaign_id( + self, + campaign_id, + **kwargs + ): + """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501 + + Creates a new preferred line item with the specified settings # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): The given campaign id + + Keyword Args: + preferred_line_item_create_model202110_request (PreferredLineItemCreateModel202110Request): The line item settings to create a line item with. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PreferredLineItem202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_line_item_products_append_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_line_item_products_append_by_line_item_id # noqa: E501 + + This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + promoted_product202110_list_request (PromotedProduct202110ListRequest): the products to append to this line item. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PromotedProduct202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_line_item_products_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_line_item_products_delete_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_line_item_products_delete_by_line_item_id # noqa: E501 + + This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + promoted_product202110_list_request (PromotedProduct202110ListRequest): . [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PromotedProduct202110PagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_line_item_products_pause_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_line_item_products_pause_by_line_item_id # noqa: E501 + + This endpoint pauses one or more promoted products on a specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with. + + Keyword Args: + promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to pause.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_line_item_products_unpause_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_line_item_products_unpause_by_line_item_id # noqa: E501 + + This endpoint unpauses one or more promoted products on a specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with. + + Keyword Args: + promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to unpause.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id # noqa: E501 + + This endpoint appends one or more add to basket ids to targeting on the specified line item. The resulting state of the add to basket target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + add_to_basket_ids_update_model202110_request (AddToBasketIdsUpdateModel202110Request): Ids to append to the target. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AddToBasketTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id # noqa: E501 + + This endpoint removes one or more add to basket ids from targeting on the specified line item. The resulting state of the add to basket target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + add_to_basket_ids_update_model202110_request (AddToBasketIdsUpdateModel202110Request): Ids to remove from the target. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AddToBasketTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id # noqa: E501 + + This endpoint appends one or more audiences ids to targeting on the specified line item. The resulting state of the audience target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + audience_ids_update_model202110_request (AudienceIdsUpdateModel202110Request): Audience ids to append to the target. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id # noqa: E501 + + This endpoint removes one or more audiences ids from targeting on the specified line item. The resulting state of the audience target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + audience_ids_update_model202110_request (AudienceIdsUpdateModel202110Request): Audience ids to remove from the target. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id # noqa: E501 + + This endpoint appends one or more store ids to targeting on the specified line item. The resulting state of the store target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + store_ids_update_model202110_request (StoreIdsUpdateModel202110Request): Store ids to append to the target. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + StoreTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id # noqa: E501 + + This endpoint removes one or more store ids from targeting on the specified line item. The resulting state of the store target is returned. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + store_ids_update_model202110_request (StoreIdsUpdateModel202110Request): Store ids to remove from the target. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + StoreTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def post_api202210_external_account_creatives_by_account_id( + self, + account_id, + **kwargs + ): + """post_api202210_external_account_creatives_by_account_id # noqa: E501 + + Create a creative for an account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202210_external_account_creatives_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): External account id to create a creative for + + Keyword Args: + creative_create_model202207 (CreativeCreateModel202207): The creative to create. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Creative202210Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.post_api202210_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + + def post_api202210_external_account_creatives_search_by_account_id( + self, + account_id, + **kwargs + ): + """post_api202210_external_account_creatives_search_by_account_id # noqa: E501 + + Get account creatives # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202210_external_account_creatives_search_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): External account id to retrieve creatives for + + Keyword Args: + creative_ids ([str]): Creatives to filter by. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Creative202210ListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.post_api202210_external_account_creatives_search_by_account_id_endpoint.call_with_http_info(**kwargs) + + def post_api202301_external_account_campaigns_by_account_id( + self, + account_id, + **kwargs + ): + """post_api202301_external_account_campaigns_by_account_id # noqa: E501 + + Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api202301_external_account_campaigns_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The account to request the campaign for. + + Keyword Args: + post_campaign_v202301 (PostCampaignV202301): Creatable campaign attributes. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfCampaignV202301 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.post_api202301_external_account_campaigns_by_account_id_endpoint.call_with_http_info(**kwargs) + + def post_api_v1_external_account_catalogs_by_account_id( + self, + account_id, + **kwargs + ): + """post_api_v1_external_account_catalogs_by_account_id # noqa: E501 + + Create a request for a Catalog available to the indicated account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api_v1_external_account_catalogs_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The account to request the catalog for. + + Keyword Args: + json_api_request_of_catalog_request (JsonApiRequestOfCatalogRequest): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfCatalogStatus + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.post_api_v1_external_account_catalogs_by_account_id_endpoint.call_with_http_info(**kwargs) + + def post_api_v2_external_campaign_auction_line_items_by_campaign_id( + self, + campaign_id, + **kwargs + ): + """post_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501 + + Creates new auction line item with the specified settings # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.post_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): The given campaign id + + Keyword Args: + auction_line_item_create_model_request (AuctionLineItemCreateModelRequest): The line item settings to create a line item with. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AuctionLineItemResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.post_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs) + + def put_api202110_external_preferred_line_item_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """put_api202110_external_preferred_line_item_by_line_item_id # noqa: E501 + + Updates the preferred line item for the given line item id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202110_external_preferred_line_item_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The given line item id + + Keyword Args: + preferred_line_item_update_model202110_request (PreferredLineItemUpdateModel202110Request): The line item settings to create a line item with. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + PreferredLineItem202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.put_api202110_external_preferred_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id # noqa: E501 + + This endpoint sets the scope of the add to basket target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + add_to_basket_target202110_request (AddToBasketTarget202110Request): The add to basket target to set the scope for. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AddToBasketTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id # noqa: E501 + + This endpoint sets the scope of the audience target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + audience_target202110_request (AudienceTarget202110Request): The audience target to set the scope for. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AudienceTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id # noqa: E501 + + This endpoint sets the scope of the store target on the specified line item. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The line item to interact with + + Keyword Args: + store_target202110_request (StoreTarget202110Request): The store target to set the scope for. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + StoreTarget202110Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def put_api202210_external_account_by_account_id_creativescreative_id( + self, + account_id, + creative_id, + **kwargs + ): + """put_api202210_external_account_by_account_id_creativescreative_id # noqa: E501 + + Update a creative # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): External account id containing the creative + creative_id (str): Creative to update + + Keyword Args: + creative_update_model202207 (CreativeUpdateModel202207): The creative to create. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + Creative202210Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + kwargs['creative_id'] = \ + creative_id + return self.put_api202210_external_account_by_account_id_creativescreative_id_endpoint.call_with_http_info(**kwargs) + + def put_api202301_external_campaign_by_campaign_id( + self, + campaign_id, + **kwargs + ): + """put_api202301_external_campaign_by_campaign_id # noqa: E501 + + Edit a campaign for the given campaign id with a given editable attributes. This will return updated creatable and editable attributes of the campaign as the result of the operation. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202301_external_campaign_by_campaign_id(campaign_id, async_req=True) + >>> result = thread.get() + + Args: + campaign_id (str): Campaign Id of the updating campaign + + Keyword Args: + put_campaign_v202301 (PutCampaignV202301): Editable campaign attributes. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfCampaignV202301 + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['campaign_id'] = \ + campaign_id + return self.put_api202301_external_campaign_by_campaign_id_endpoint.call_with_http_info(**kwargs) + + def put_api202301_external_line_item_bid_multipliers_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """put_api202301_external_line_item_bid_multipliers_by_line_item_id # noqa: E501 + + Replace bid multipliers on a line item # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): Long external id of the associated line item + + Keyword Args: + line_item_bid_multipliers_request (LineItemBidMultipliersRequest): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + LineItemBidMultipliersResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.put_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def put_api_v2_external_auction_line_item_by_line_item_id( + self, + line_item_id, + **kwargs + ): + """put_api_v2_external_auction_line_item_by_line_item_id # noqa: E501 + + Updates the auction line item for the given line item id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.put_api_v2_external_auction_line_item_by_line_item_id(line_item_id, async_req=True) + >>> result = thread.get() + + Args: + line_item_id (str): The given line item id + + Keyword Args: + auction_line_item_update_model_request (AuctionLineItemUpdateModelRequest): The line item settings to create a line item with. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AuctionLineItemResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.put_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def set_keyword_bids( + self, + id, + **kwargs + ): + """set_keyword_bids # noqa: E501 + + Set bid overrides for associated keywords to the given line item in bulk # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.set_keyword_bids(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): Long external id of the associated line item + + Keyword Args: + retail_media_externalv1_set_bids_model_request (RetailMediaExternalv1SetBidsModelRequest): Object containing a list of bid overrides for associated keywords. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaExternalv1ResourceOutcome + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.set_keyword_bids_endpoint.call_with_http_info(**kwargs) + + def submit_proposal( + self, + id, + **kwargs + ): + """submit_proposal # noqa: E501 + + Submit a proposal to modify a Preferred Deal Line Item for review. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.submit_proposal(id, async_req=True) + >>> result = thread.get() + + Args: + id (str): The external id of a line item. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + RetailMediaExternalv1ProposalStatusModelResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['id'] = \ + id + return self.submit_proposal_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/gateway_api.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/gateway_api.py new file mode 100644 index 00000000..7cb7a301 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api/gateway_api.py @@ -0,0 +1,161 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.api_client import ApiClient, Endpoint as _Endpoint +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from criteo_api_retailmedia_v2023_07.model.application_summary_model_response import ApplicationSummaryModelResponse + + +class GatewayApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.get_current_application_endpoint = _Endpoint( + settings={ + 'response_type': (ApplicationSummaryModelResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/2023-07/retail-media/me', + 'operation_id': 'get_current_application', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + }, + 'attribute_map': { + }, + 'location_map': { + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + + def get_current_application( + self, + **kwargs + ): + """get_current_application # noqa: E501 + + Get information about the currently logged application # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_current_application(async_req=True) + >>> result = thread.get() + + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ApplicationSummaryModelResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.get_current_application_endpoint.call_with_http_info(**kwargs) + diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py new file mode 100644 index 00000000..c5a1bb43 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client.py @@ -0,0 +1,898 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import json +import atexit +import mimetypes +from multiprocessing.pool import ThreadPool +import io +import os +import re +import typing +from urllib.parse import quote +from urllib3.fields import RequestField + + +from criteo_api_retailmedia_v2023_07 import rest +from criteo_api_retailmedia_v2023_07.configuration import Configuration +from criteo_api_retailmedia_v2023_07.exceptions import ApiTypeError, ApiValueError, ApiException +from criteo_api_retailmedia_v2023_07.model_utils import ( + ModelNormal, + ModelSimple, + ModelComposed, + check_allowed_values, + check_validations, + date, + datetime, + deserialize_file, + file_type, + model_to_dict, + none_type, + validate_and_convert_types +) + + +class ApiClient(object): + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + _pool = None + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1): + if configuration is None: + configuration = Configuration.get_default_copy() + self.configuration = configuration + self.pool_threads = pool_threads + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/2023.07.0.230726/python' + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.close() + + def close(self): + if self._pool: + self._pool.close() + self._pool.join() + self._pool = None + if hasattr(atexit, 'unregister'): + atexit.unregister(self.close) + + @property + def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ + if self._pool is None: + atexit.register(self.close) + self._pool = ThreadPool(self.pool_threads) + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, + resource_path: str, + method: str, + path_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + query_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + header_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + body: typing.Optional[typing.Any] = None, + post_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None, + response_type: typing.Optional[typing.Tuple[typing.Any]] = None, + auth_settings: typing.Optional[typing.List[str]] = None, + _return_http_data_only: typing.Optional[bool] = None, + collection_formats: typing.Optional[typing.Dict[str, str]] = None, + _preload_content: bool = True, + _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + _host: typing.Optional[str] = None, + _check_type: typing.Optional[bool] = None, + _content_type: typing.Optional[str] = None, + _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None + ): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + post_params.extend(self.files_parameters(files)) + if header_params['Content-Type'].startswith("multipart"): + post_params = self.parameters_to_multipart(post_params, + (dict)) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # auth setting + self.update_params_for_auth(header_params, query_params, + auth_settings, resource_path, method, body, + request_auths=_request_auths) + + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + try: + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + except ApiException as e: + e.body = e.body.decode('utf-8') + raise e + + self.last_response = response_data + + return_data = response_data + + if not _preload_content: + return (return_data) + return return_data + + # deserialize response data + if response_type: + if response_type != (file_type,): + encoding = "utf-8" + content_type = response_data.getheader('content-type') + if content_type is not None: + match = re.search(r"charset=([a-zA-Z\-\d]+)[\s\;]?", content_type) + if match: + encoding = match.group(1) + response_data.data = response_data.data.decode(encoding) + + return_data = self.deserialize( + response_data, + response_type, + _check_type + ) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def parameters_to_multipart(self, params, collection_types): + """Get parameters as list of tuples, formatting as json if value is collection_types + + :param params: Parameters as list of two-tuples + :param dict collection_types: Parameter collection types + :return: Parameters as list of tuple or urllib3.fields.RequestField + """ + new_params = [] + if collection_types is None: + collection_types = (dict) + for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501 + if isinstance( + v, collection_types): # v is instance of collection_type, formatting as application/json + v = json.dumps(v, ensure_ascii=False).encode("utf-8") + field = RequestField(k, v) + field.make_multipart(content_type="application/json; charset=utf-8") + new_params.append(field) + else: + new_params.append((k, v)) + return new_params + + @classmethod + def sanitize_for_serialization(cls, obj): + """Prepares data for transmission before it is sent with the rest client + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + If obj is io.IOBase, return the bytes + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if isinstance(obj, (ModelNormal, ModelComposed)): + return { + key: cls.sanitize_for_serialization(val) for key, + val in model_to_dict( + obj, + serialize=True).items()} + elif isinstance(obj, io.IOBase): + return cls.get_file_data_and_close_file(obj) + elif isinstance(obj, (str, int, float, none_type, bool)): + return obj + elif isinstance(obj, (datetime, date)): + return obj.isoformat() + elif isinstance(obj, ModelSimple): + return cls.sanitize_for_serialization(obj.value) + elif isinstance(obj, list): + return [cls.sanitize_for_serialization(item) for item in obj] + elif isinstance(obj, tuple): + return tuple(cls.sanitize_for_serialization(item) for item in obj) + if isinstance(obj, dict): + return {key: cls.sanitize_for_serialization(val) for key, val in obj.items()} + raise ApiValueError( + 'Unable to prepare type {} for serialization'.format( + obj.__class__.__name__)) + + def deserialize(self, response, response_type, _check_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: For the response, a tuple containing: + valid classes + a list containing valid classes (for list schemas) + a dict containing a tuple of valid classes as the value + Example values: + (str,) + (Pet,) + (float, none_type) + ([int, none_type],) + ({str: (bool, str, int, float, date, datetime, str, none_type)},) + :param _check_type: boolean, whether to check the types of the data + received from the server + :type _check_type: bool + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == (file_type,): + content_disposition = response.getheader("Content-Disposition") + return deserialize_file(response.data, self.configuration, + content_disposition=content_disposition) + + # fetch data from response object + try: + received_data = json.loads(response.data) + except ValueError: + received_data = response.data + + # store our data under the key of 'received_data' so users have some + # context if they are deserializing a string and the data type is wrong + deserialized_data = validate_and_convert_types( + received_data, + response_type, + ['received_data'], + True, + _check_type, + configuration=self.configuration + ) + return deserialized_data + + def call_api( + self, + resource_path: str, + method: str, + path_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + query_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + header_params: typing.Optional[typing.Dict[str, typing.Any]] = None, + body: typing.Optional[typing.Any] = None, + post_params: typing.Optional[typing.List[typing.Tuple[str, typing.Any]]] = None, + files: typing.Optional[typing.Dict[str, typing.List[io.IOBase]]] = None, + response_type: typing.Optional[typing.Tuple[typing.Any]] = None, + auth_settings: typing.Optional[typing.List[str]] = None, + async_req: typing.Optional[bool] = None, + _return_http_data_only: typing.Optional[bool] = None, + collection_formats: typing.Optional[typing.Dict[str, str]] = None, + _preload_content: bool = True, + _request_timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None, + _host: typing.Optional[str] = None, + _check_type: typing.Optional[bool] = None, + _request_auths: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None + ): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response_type: For the response, a tuple containing: + valid classes + a list containing valid classes (for list schemas) + a dict containing a tuple of valid classes as the value + Example values: + (str,) + (Pet,) + (float, none_type) + ([int, none_type],) + ({str: (bool, str, int, float, date, datetime, str, none_type)},) + :param files: key -> field name, value -> a list of open file + objects for `multipart/form-data`. + :type files: dict + :param async_req bool: execute request asynchronously + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :type collection_formats: dict, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _check_type: boolean describing if the data back from the server + should have its type checked. + :type _check_type: bool, optional + :param _request_auths: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auths: list, optional + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout, _host, + _check_type, _request_auths=_request_auths) + + return self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, + query_params, + header_params, body, + post_params, files, + response_type, + auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host, _check_type, None, _request_auths)) + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in params.items() if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + @staticmethod + def get_file_data_and_close_file(file_instance: io.IOBase) -> bytes: + file_data = file_instance.read() + file_instance.close() + return file_data + + def files_parameters(self, + files: typing.Optional[typing.Dict[str, + typing.List[io.IOBase]]] = None): + """Builds form parameters. + + :param files: None or a dict with key=param_name and + value is a list of open file objects + :return: List of tuples of form parameters with file data + """ + if files is None: + return [] + + params = [] + for param_name, file_instances in files.items(): + if file_instances is None: + # if the file field is nullable, skip None values + continue + for file_instance in file_instances: + if file_instance is None: + # if the file field is nullable, skip None values + continue + if file_instance.closed is True: + raise ApiValueError( + "Cannot read a closed file. The passed in file_type " + "for %s must be open." % param_name + ) + filename = os.path.basename(file_instance.name) + filedata = self.get_file_data_and_close_file(file_instance) + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([param_name, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types, method=None, body=None): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :param method: http method (e.g. POST, PATCH). + :param body: http body to send. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return None + + content_types = [x.lower() for x in content_types] + + if (method == 'PATCH' and + 'application/json-patch+json' in content_types and + isinstance(body, list)): + return 'application/json-patch+json' + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, queries, auth_settings, + resource_path, method, body, request_auths=None): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :param resource_path: A string representation of the HTTP request resource path. + :param method: A string representation of the HTTP request method. + :param body: A object representing the body of the HTTP request. + The object type is the return value of _encoder.default(). + :param request_auths: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auths: + for auth_setting in request_auths: + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting) + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting) + + def _apply_auth_params(self, headers, queries, resource_path, method, body, auth_setting): + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['key'] + "=" + auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + +class Endpoint(object): + def __init__(self, settings=None, params_map=None, root_map=None, + headers_map=None, api_client=None, callable=None): + """Creates an endpoint + + Args: + settings (dict): see below key value pairs + 'response_type' (tuple/None): response type + 'auth' (list): a list of auth type keys + 'endpoint_path' (str): the endpoint path + 'operation_id' (str): endpoint string identifier + 'http_method' (str): POST/PUT/PATCH/GET etc + 'servers' (list): list of str servers that this endpoint is at + params_map (dict): see below key value pairs + 'all' (list): list of str endpoint parameter names + 'required' (list): list of required parameter names + 'nullable' (list): list of nullable parameter names + 'enum' (list): list of parameters with enum values + 'validation' (list): list of parameters with validations + root_map + 'validations' (dict): the dict mapping endpoint parameter tuple + paths to their validation dictionaries + 'allowed_values' (dict): the dict mapping endpoint parameter + tuple paths to their allowed_values (enum) dictionaries + 'openapi_types' (dict): param_name to openapi type + 'attribute_map' (dict): param_name to camelCase name + 'location_map' (dict): param_name to 'body', 'file', 'form', + 'header', 'path', 'query' + collection_format_map (dict): param_name to `csv` etc. + headers_map (dict): see below key value pairs + 'accept' (list): list of Accept header strings + 'content_type' (list): list of Content-Type header strings + api_client (ApiClient) api client instance + callable (function): the function which is invoked when the + Endpoint is called + """ + self.settings = settings + self.params_map = params_map + self.params_map['all'].extend([ + 'async_req', + '_host_index', + '_preload_content', + '_request_timeout', + '_return_http_data_only', + '_check_input_type', + '_check_return_type', + '_content_type', + '_spec_property_naming', + '_request_auths' + ]) + self.params_map['nullable'].extend(['_request_timeout']) + self.validations = root_map['validations'] + self.allowed_values = root_map['allowed_values'] + self.openapi_types = root_map['openapi_types'] + extra_types = { + 'async_req': (bool,), + '_host_index': (none_type, int), + '_preload_content': (bool,), + '_request_timeout': (none_type, float, (float,), [float], int, (int,), [int]), + '_return_http_data_only': (bool,), + '_check_input_type': (bool,), + '_check_return_type': (bool,), + '_spec_property_naming': (bool,), + '_content_type': (none_type, str), + '_request_auths': (none_type, list) + } + self.openapi_types.update(extra_types) + self.attribute_map = root_map['attribute_map'] + self.location_map = root_map['location_map'] + self.collection_format_map = root_map['collection_format_map'] + self.headers_map = headers_map + self.api_client = api_client + self.callable = callable + + def __validate_inputs(self, kwargs): + for param in self.params_map['enum']: + if param in kwargs: + check_allowed_values( + self.allowed_values, + (param,), + kwargs[param] + ) + + for param in self.params_map['validation']: + if param in kwargs: + check_validations( + self.validations, + (param,), + kwargs[param], + configuration=self.api_client.configuration + ) + + if kwargs['_check_input_type'] is False: + return + + for key, value in kwargs.items(): + fixed_val = validate_and_convert_types( + value, + self.openapi_types[key], + [key], + kwargs['_spec_property_naming'], + kwargs['_check_input_type'], + configuration=self.api_client.configuration + ) + kwargs[key] = fixed_val + + def __gather_params(self, kwargs): + params = { + 'body': None, + 'collection_format': {}, + 'file': {}, + 'form': [], + 'header': {}, + 'path': {}, + 'query': [] + } + + for param_name, param_value in kwargs.items(): + param_location = self.location_map.get(param_name) + if param_location is None: + continue + if param_location: + if param_location == 'body': + params['body'] = param_value + continue + base_name = self.attribute_map[param_name] + if (param_location == 'form' and + self.openapi_types[param_name] == (file_type,)): + params['file'][base_name] = [param_value] + elif (param_location == 'form' and + self.openapi_types[param_name] == ([file_type],)): + # param_value is already a list + params['file'][base_name] = param_value + elif param_location in {'form', 'query'}: + param_value_full = (base_name, param_value) + params[param_location].append(param_value_full) + if param_location not in {'form', 'query'}: + params[param_location][base_name] = param_value + collection_format = self.collection_format_map.get(param_name) + if collection_format: + params['collection_format'][base_name] = collection_format + + return params + + def __call__(self, *args, **kwargs): + """ This method is invoked when endpoints are called + Example: + + api_instance = AnalyticsApi() + api_instance.generate_campaign_reports # this is an instance of the class Endpoint + api_instance.generate_campaign_reports() # this invokes api_instance.generate_campaign_reports.__call__() + which then invokes the callable functions stored in that endpoint at + api_instance.generate_campaign_reports.callable or self.callable in this class + + """ + return self.callable(self, *args, **kwargs) + + def call_with_http_info(self, **kwargs): + + try: + index = self.api_client.configuration.server_operation_index.get( + self.settings['operation_id'], self.api_client.configuration.server_index + ) if kwargs['_host_index'] is None else kwargs['_host_index'] + server_variables = self.api_client.configuration.server_operation_variables.get( + self.settings['operation_id'], self.api_client.configuration.server_variables + ) + _host = self.api_client.configuration.get_host_from_settings( + index, variables=server_variables, servers=self.settings['servers'] + ) + except IndexError: + if self.settings['servers']: + raise ApiValueError( + "Invalid host index. Must be 0 <= index < %s" % + len(self.settings['servers']) + ) + _host = None + + for key, value in kwargs.items(): + if key not in self.params_map['all']: + raise ApiTypeError( + "Got an unexpected parameter '%s'" + " to method `%s`" % + (key, self.settings['operation_id']) + ) + # only throw this nullable ApiValueError if _check_input_type + # is False, if _check_input_type==True we catch this case + # in self.__validate_inputs + if (key not in self.params_map['nullable'] and value is None + and kwargs['_check_input_type'] is False): + raise ApiValueError( + "Value may not be None for non-nullable parameter `%s`" + " when calling `%s`" % + (key, self.settings['operation_id']) + ) + + for key in self.params_map['required']: + if key not in kwargs.keys(): + raise ApiValueError( + "Missing the required parameter `%s` when calling " + "`%s`" % (key, self.settings['operation_id']) + ) + + self.__validate_inputs(kwargs) + + params = self.__gather_params(kwargs) + + accept_headers_list = self.headers_map['accept'] + if accept_headers_list: + params['header']['Accept'] = self.api_client.select_header_accept( + accept_headers_list) + + if kwargs.get('_content_type'): + params['header']['Content-Type'] = kwargs['_content_type'] + else: + content_type_headers_list = self.headers_map['content_type'] + if content_type_headers_list: + if params['body'] != "": + content_types_list = self.api_client.select_header_content_type( + content_type_headers_list, self.settings['http_method'], + params['body']) + if content_types_list: + params['header']['Content-Type'] = content_types_list + + return self.api_client.call_api( + self.settings['endpoint_path'], self.settings['http_method'], + params['path'], + params['query'], + params['header'], + body=params['body'], + post_params=params['form'], + files=params['file'], + response_type=self.settings['response_type'], + auth_settings=self.settings['auth'], + async_req=kwargs['async_req'], + _check_type=kwargs['_check_return_type'], + _return_http_data_only=kwargs['_return_http_data_only'], + _preload_content=kwargs['_preload_content'], + _request_timeout=kwargs['_request_timeout'], + _host=_host, + _request_auths=kwargs['_request_auths'], + collection_formats=params['collection_format']) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client_builder.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client_builder.py new file mode 100644 index 00000000..f4a2afc0 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/api_client_builder.py @@ -0,0 +1,37 @@ +from criteo_api_retailmedia_v2023_07.configuration import Configuration +from criteo_api_retailmedia_v2023_07.criteo_api_client import CriteoApiClient +from criteo_api_retailmedia_v2023_07 import flow_constants + +class ApiClientBuilder : + + @staticmethod + def WithClientCredentials(clientId, clientSecret, host=None): + configuration = Configuration(username=clientId, password=clientSecret, host=host) + + return CriteoApiClient(configuration) + + @staticmethod + def WithNoAuthorization(): + + return CriteoApiClient() + + @staticmethod + def WithAuthorizationCode(clientId, clientSecret, authorization_code, redirect_uri, host=None): + configuration = Configuration(username=clientId, password=clientSecret, host=host) + additional_parameters = { + 'flow' : flow_constants.AUTHORIZATION_CODE_FLOW, + 'authorization_code': authorization_code, + 'redirect_uri': redirect_uri + } + + return CriteoApiClient(configuration = configuration, additional_parameters = additional_parameters) + + @staticmethod + def WithRefreshToken(clientId, clientSecret, refreshToken, host=None): + configuration = Configuration(username=clientId, password=clientSecret, host=host) + additional_parameters = { + 'flow' : flow_constants.REFRESH_TOKEN_FLOW, + 'refresh_token': refreshToken + } + + return CriteoApiClient(configuration = configuration, additional_parameters = additional_parameters) \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/apis/__init__.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/apis/__init__.py new file mode 100644 index 00000000..17281a57 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/apis/__init__.py @@ -0,0 +1,20 @@ + +# flake8: noqa + +# Import all APIs into this package. +# If you have many APIs here with many many models used in each API this may +# raise a `RecursionError`. +# In order to avoid this, import only the API that you directly need like: +# +# from criteo_api_retailmedia_v2023_07.api.analytics_api import AnalyticsApi +# +# or import this package, but before doing it, use: +# +# import sys +# sys.setrecursionlimit(n) + +# Import APIs into API package: +from criteo_api_retailmedia_v2023_07.api.analytics_api import AnalyticsApi +from criteo_api_retailmedia_v2023_07.api.audience_api import AudienceApi +from criteo_api_retailmedia_v2023_07.api.campaign_api import CampaignApi +from criteo_api_retailmedia_v2023_07.api.gateway_api import GatewayApi diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py new file mode 100644 index 00000000..35a117f9 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/configuration.py @@ -0,0 +1,461 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +from http import client as http_client +from criteo_api_retailmedia_v2023_07.exceptions import ApiValueError + + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +class Configuration(object): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format + + :Example: + """ + + _default = None + + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + access_token=None, + username=None, password=None, + discard_unknown_keys=False, + disabled_client_side_validations="", + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ssl_ca_cert=None, + ): + """Constructor + """ + self._base_path = "https://api.criteo.com" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.access_token = access_token + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.discard_unknown_keys = discard_unknown_keys + self.disabled_client_side_validations = disabled_client_side_validations + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("criteo_api_retailmedia_v2023_07") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + self.debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy = None + """Proxy URL + """ + self.no_proxy = None + """bypass proxy for host in the no_proxy list. + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = None + """Adding retries to override urllib3 default value 3 + """ + # Enable client side validation + self.client_side_validation = True + + # Options to pass down to the underlying urllib3 socket + self.socket_options = None + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name, value): + object.__setattr__(self, name, value) + if name == 'disabled_client_side_validations': + s = set(filter(None, value.split(','))) + for v in s: + if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: + raise ApiValueError( + "Invalid keyword: '{0}''".format(v)) + self._disabled_client_side_validations = s + + @classmethod + def set_default(cls, default): + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = copy.deepcopy(default) + + @classmethod + def get_default_copy(cls): + """Return new instance of configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration passed by the set_default method. + + :return: The configuration object. + """ + if cls._default is not None: + return copy.deepcopy(cls._default) + return Configuration() + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in self.logger.items(): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in self.logger.items(): + logger.setLevel(logging.DEBUG) + # turn on http_client debug + http_client.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in self.logger.items(): + logger.setLevel(logging.WARNING) + # turn off http_client debug + http_client.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier, alias=None): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth = {} + if self.access_token is not None: + auth['oauth'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + if self.access_token is not None: + auth['oauth'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token + } + return auth + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 2023-07\n"\ + "SDK Package Version: 2023.07.0.230726".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "https://api.criteo.com", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None, servers=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value): + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_api_client.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_api_client.py new file mode 100644 index 00000000..107334e6 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_api_client.py @@ -0,0 +1,11 @@ +from criteo_api_retailmedia_v2023_07.api_client import ApiClient +from criteo_api_retailmedia_v2023_07.criteo_rest import CriteoRESTClientObject + +class CriteoApiClient(ApiClient): + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1, additional_parameters= {}): + super().__init__(configuration=configuration,header_name=header_name, header_value=header_value, cookie=cookie, pool_threads=pool_threads) + self.rest_client = CriteoRESTClientObject(self.configuration, additional_parameters) + + def get_refresh_token(self): + return self.rest_client.get_refresh_token() \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_auth.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_auth.py new file mode 100644 index 00000000..0b911e8d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_auth.py @@ -0,0 +1,121 @@ +import json +from datetime import datetime, timedelta +from criteo_api_retailmedia_v2023_07.exceptions import ApiException +from criteo_api_retailmedia_v2023_07.api_client import ApiClient +from criteo_api_retailmedia_v2023_07 import flow_constants + +class Token(object): + + def __init__(self, token_string , expiration_date = None): + self.expiration_date = expiration_date + self.token_string = token_string + + def has_expired(self): + if not self.expiration_date: + return False + return self.expiration_date > datetime.utcnow() + +class BasicAuth(object): + + def __init__(self, token_string): + self.token = Token(token_string) + + def get_token(self, client : ApiClient, headers) -> str: + return self.token + +class RetryingOAuth(object): + + def __init__(self, grant_type, client_id, client_secret): + self.grant_type = grant_type + self.client_id = client_id + self.client_secret = client_secret + self.token = None + self.refreshToken = None + + def get_token(self, client : ApiClient, headers) -> str: + if self.token and not self.token.has_expired(): + self.token = None + if self.grant_type == flow_constants.AUTHORIZATION_CODE_FLOW: + self.grant_type = flow_constants.REFRESH_TOKEN_FLOW + + if self.token is None: + self.refresh_token(client, headers) + + return self.token + + def refresh_token(self, client : ApiClient, headers, parameters_dict= {}): + oauth_url = client.host + '/oauth2/token' + new_headers = {'Accept': 'application/json', + 'Content-Type': 'application/x-www-form-urlencoded', + 'User-Agent': headers['User-Agent']} + params = dict(parameters_dict, **{ + 'client_id': self.client_id, + 'client_secret': self.client_secret, + 'grant_type' : self.grant_type + }) + try: + if self.grant_type == flow_constants.REFRESH_TOKEN_FLOW: + params['refresh_token'] = self.refreshToken + + response = client.request('POST', oauth_url, + headers=new_headers, + query_params=[], + post_params=list(params.items()), + _preload_content=True, + _request_timeout=None, + body=None, + no_auth=True) + data = json.loads(response.data) + self.token = Token('Bearer '+ (data['access_token'] or ''), + RetryingOAuth.compute_expiration_date(data['expires_in'])) + self.refreshToken = data['refresh_token'] + + return self.token + except ApiException as e: + raise self._enrich_exception_message(e, oauth_url) + + def get_refresh_token(self): + return self.refreshToken + + def _enrich_exception_message(self, e, url): + try: + data = json.loads(e.body or {}) + except ValueError: + data = {} + data['token_error'] = "Cannot refresh token by calling '" + url + "'" + e.body = json.dumps(data).encode() + return e + + @staticmethod + def compute_expiration_date(expires_in): + return datetime.utcnow() + timedelta(seconds=int(expires_in) + 15) + +class RetryingClientCredentials(RetryingOAuth): + + def __init__(self, client_id, client_secret): + super().__init__(flow_constants.CLIENT_CREDENTIALS_FLOW, client_id, client_secret) + +class RetryingAuthorizationCode(RetryingOAuth): + def __init__(self, client_id, client_secret, code, redirect_uri): + super().__init__(flow_constants.AUTHORIZATION_CODE_FLOW, client_id, client_secret) + self.authorization_code = code + self.redirect_uri = redirect_uri + + def refresh_token(self, client : ApiClient, headers, parameters_dict= {}): + params = dict(parameters_dict, **{ + 'code' : self.authorization_code, + 'redirect_uri' : self.redirect_uri + }) + return super().refresh_token(client, headers, params) + +class RetryingRefreshToken(RetryingOAuth): + + def __init__(self, client_id, client_secret, refresh_token): + super().__init__(flow_constants.REFRESH_TOKEN_FLOW, client_id, client_secret) + self.refreshToken = refresh_token + + def refresh_token(self, client: ApiClient, headers, parameters_dict = {}): + params = dict(parameters_dict, **{ + 'refresh_token' : self.refreshToken + }) + return super().refresh_token(client, headers,params) diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_rest.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_rest.py new file mode 100644 index 00000000..68a90d19 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/criteo_rest.py @@ -0,0 +1,75 @@ +from criteo_api_retailmedia_v2023_07.rest import RESTClientObject +from criteo_api_retailmedia_v2023_07.criteo_auth import * +from criteo_api_retailmedia_v2023_07 import flow_constants + + +class CriteoRESTClientObject(RESTClientObject): + + def __init__(self, configuration, additional_parameters = {}, pools_size=4, maxsize=None): + super().__init__(configuration, pools_size, maxsize) + + self.host = configuration.host + client_id = configuration.username + client_secret = configuration.password + + grant_type = additional_parameters.get('flow', 'client_credentials') + if grant_type == flow_constants.AUTHORIZATION_CODE_FLOW : + self.authorization = RetryingAuthorizationCode( + client_id, + client_secret, + additional_parameters.get('authorization_code',''), + additional_parameters.get('redirect_uri','') + ) + elif grant_type == flow_constants.REFRESH_TOKEN_FLOW : + self.authorization = RetryingRefreshToken( + client_id, + client_secret, + additional_parameters.get('refresh_token', '') + ) + else: + self.authorization = RetryingClientCredentials( + client_id, + client_secret + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + return self.request(method, url, query_params, headers, body,post_params, _preload_content, _request_timeout, no_auth=False) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None, no_auth=False): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param no_auth: if True, token is not refreshed + and authorization header is not set + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + + headers = headers or {} + if not no_auth: + token = self.authorization.get_token(self, headers) + headers['Authorization'] = token.token_string + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + return super().request(method, url, query_params, headers, body, post_params, _preload_content, _request_timeout) + + def get_refresh_token(self): + return self.authorization.get_refresh_token() \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/exceptions.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/exceptions.py new file mode 100644 index 00000000..0ed4af4b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/exceptions.py @@ -0,0 +1,158 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None): + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "Status Code: {0}\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +class NotFoundException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(NotFoundException, self).__init__(status, reason, http_resp) + + +class UnauthorizedException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(UnauthorizedException, self).__init__(status, reason, http_resp) + + +class ForbiddenException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(ForbiddenException, self).__init__(status, reason, http_resp) + + +class ServiceException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(ServiceException, self).__init__(status, reason, http_resp) + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, int): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/flow_constants.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/flow_constants.py new file mode 100644 index 00000000..496d87c3 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/flow_constants.py @@ -0,0 +1,5 @@ +"""This file defines authentication flows constants.""" + +CLIENT_CREDENTIALS_FLOW = 'client_credentials' +AUTHORIZATION_CODE_FLOW = 'authorization_code' +REFRESH_TOKEN_FLOW = 'refresh_token' diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/__init__.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/__init__.py new file mode 100644 index 00000000..ab22acc8 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/__init__.py @@ -0,0 +1,5 @@ +# we can not import model classes here because that would create a circular +# reference which would not work in python2 +# do not import all models into this module because that uses a lot of memory and stack frames +# if you need the ability to import all models from one package, import them with +# from criteo_api_retailmedia_v2023_07.models import ModelA, ModelB diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_ids_update_model202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_ids_update_model202110_request.py new file mode 100644 index 00000000..25bc383a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_ids_update_model202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 + globals()['ValueTypeResourceOfAddToBasketIdsUpdateModel202110'] = ValueTypeResourceOfAddToBasketIdsUpdateModel202110 + + +class AddToBasketIdsUpdateModel202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfAddToBasketIdsUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AddToBasketIdsUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAddToBasketIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AddToBasketIdsUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAddToBasketIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_request.py new file mode 100644 index 00000000..599306cc --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 + globals()['ValueTypeResourceOfAddToBasketTarget202110'] = ValueTypeResourceOfAddToBasketTarget202110 + + +class AddToBasketTarget202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfAddToBasketTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AddToBasketTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AddToBasketTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_response.py new file mode 100644 index 00000000..366696ed --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 + globals()['ProblemDetails'] = ProblemDetails + globals()['ValueTypeResourceOfAddToBasketTarget202110'] = ValueTypeResourceOfAddToBasketTarget202110 + + +class AddToBasketTarget202110Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfAddToBasketTarget202110,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AddToBasketTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AddToBasketTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAddToBasketTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model.py new file mode 100644 index 00000000..55414f5f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ApplicationSummaryModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'application_id': (int,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'organization_id': (int,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'criteo_service': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'application_id': 'applicationId', # noqa: E501 + 'name': 'name', # noqa: E501 + 'organization_id': 'organizationId', # noqa: E501 + 'description': 'description', # noqa: E501 + 'criteo_service': 'criteoService', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + application_id (int): [optional] # noqa: E501 + name (str): [optional] # noqa: E501 + organization_id (int): [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + criteo_service (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + application_id (int): [optional] # noqa: E501 + name (str): [optional] # noqa: E501 + organization_id (int): [optional] # noqa: E501 + description (str): [optional] # noqa: E501 + criteo_service (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_resource.py new file mode 100644 index 00000000..06398cd3 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.application_summary_model import ApplicationSummaryModel + globals()['ApplicationSummaryModel'] = ApplicationSummaryModel + + +class ApplicationSummaryModelResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ApplicationSummaryModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ApplicationSummaryModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ApplicationSummaryModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py new file mode 100644 index 00000000..888c278d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.application_summary_model_resource import ApplicationSummaryModelResource + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + globals()['ApplicationSummaryModelResource'] = ApplicationSummaryModelResource + globals()['CommonProblem'] = CommonProblem + + +class ApplicationSummaryModelResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ApplicationSummaryModelResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ApplicationSummaryModelResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ApplicationSummaryModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ApplicationSummaryModelResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset.py new file mode 100644 index 00000000..cf19da23 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class Asset(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'file_extension': (str,), # noqa: E501 + 'file_location': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'file_extension': 'fileExtension', # noqa: E501 + 'file_location': 'fileLocation', # noqa: E501 + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, file_extension, *args, **kwargs): # noqa: E501 + """Asset - a model defined in OpenAPI + + Args: + file_extension (str): The file extension that is asset is representing. Example: jpg, png, gif or pdf. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + file_location (str): A url pointing towards the static file the asset represents.. [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.file_extension = file_extension + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, file_extension, *args, **kwargs): # noqa: E501 + """Asset - a model defined in OpenAPI + + Args: + file_extension (str): The file extension that is asset is representing. Example: jpg, png, gif or pdf. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + file_location (str): A url pointing towards the static file the asset represents.. [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.file_extension = file_extension + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_resource.py new file mode 100644 index 00000000..4a2e0c7e --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.asset import Asset + globals()['Asset'] = Asset + + +class AssetResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Asset,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AssetResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Asset): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AssetResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Asset): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_response.py new file mode 100644 index 00000000..360c77f2 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/asset_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.asset_resource import AssetResource + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + globals()['AssetResource'] = AssetResource + globals()['CommonProblem'] = CommonProblem + + +class AssetResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('warnings',): { + }, + ('errors',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AssetResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AssetResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AssetResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AssetResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AssetResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_report_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_report_response.py new file mode 100644 index 00000000..204a8557 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/async_report_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_07.model.status_response_resource import StatusResponseResource + globals()['CommonProblem'] = CommonProblem + globals()['StatusResponseResource'] = StatusResponseResource + + +class AsyncReportResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (StatusResponseResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncReportResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (StatusResponseResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncReportResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (StatusResponseResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_create_model_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_create_model_request.py new file mode 100644 index 00000000..596945e5 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_create_model_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel + globals()['InputResourceOfAuctionLineItemCreateModel'] = InputResourceOfAuctionLineItemCreateModel + + +class AuctionLineItemCreateModelRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (InputResourceOfAuctionLineItemCreateModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AuctionLineItemCreateModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (InputResourceOfAuctionLineItemCreateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AuctionLineItemCreateModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (InputResourceOfAuctionLineItemCreateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_paged_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_paged_list_response.py new file mode 100644 index 00000000..a17c1e1f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem + globals()['PageMetadata'] = PageMetadata + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfAuctionLineItem'] = ResourceOfAuctionLineItem + + +class AuctionLineItemPagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfAuctionLineItem],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AuctionLineItemPagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfAuctionLineItem]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AuctionLineItemPagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfAuctionLineItem]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_response.py new file mode 100644 index 00000000..715f7e32 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfAuctionLineItem'] = ResourceOfAuctionLineItem + + +class AuctionLineItemResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfAuctionLineItem,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AuctionLineItemResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfAuctionLineItem): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AuctionLineItemResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfAuctionLineItem): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_update_model_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_update_model_request.py new file mode 100644 index 00000000..22c392bc --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/auction_line_item_update_model_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel + globals()['ResourceOfAuctionLineItemUpdateModel'] = ResourceOfAuctionLineItemUpdateModel + + +class AuctionLineItemUpdateModelRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfAuctionLineItemUpdateModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AuctionLineItemUpdateModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfAuctionLineItemUpdateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AuctionLineItemUpdateModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfAuctionLineItemUpdateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_ids_update_model202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_ids_update_model202110_request.py new file mode 100644 index 00000000..3a5ad5d1 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_ids_update_model202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 + globals()['ValueTypeResourceOfAudienceIdsUpdateModel202110'] = ValueTypeResourceOfAudienceIdsUpdateModel202110 + + +class AudienceIdsUpdateModel202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfAudienceIdsUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceIdsUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAudienceIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceIdsUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAudienceIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_request.py new file mode 100644 index 00000000..969ae76c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 + globals()['ValueTypeResourceOfAudienceTarget202110'] = ValueTypeResourceOfAudienceTarget202110 + + +class AudienceTarget202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfAudienceTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAudienceTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAudienceTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_response.py new file mode 100644 index 00000000..6e0ef81d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/audience_target202110_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 + globals()['ProblemDetails'] = ProblemDetails + globals()['ValueTypeResourceOfAudienceTarget202110'] = ValueTypeResourceOfAudienceTarget202110 + + +class AudienceTarget202110Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfAudienceTarget202110,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AudienceTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAudienceTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AudienceTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfAudienceTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance202110_paged_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance202110_paged_list_response.py new file mode 100644 index 00000000..9f05a5ef --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance202110_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_balance202110 import ResourceOfBalance202110 + globals()['PageMetadata'] = PageMetadata + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfBalance202110'] = ResourceOfBalance202110 + + +class Balance202110PagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfBalance202110],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Balance202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfBalance202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Balance202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfBalance202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_list_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_list_request.py new file mode 100644 index 00000000..7a18f021 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_list_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 + globals()['ResourceOfBalanceCampaign202110'] = ResourceOfBalanceCampaign202110 + + +class BalanceCampaign202110ListRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ResourceOfBalanceCampaign202110],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """BalanceCampaign202110ListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfBalanceCampaign202110]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """BalanceCampaign202110ListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfBalanceCampaign202110]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_paged_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_paged_list_response.py new file mode 100644 index 00000000..7c3e8e49 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/balance_campaign202110_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 + globals()['PageMetadata'] = PageMetadata + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfBalanceCampaign202110'] = ResourceOfBalanceCampaign202110 + + +class BalanceCampaign202110PagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfBalanceCampaign202110],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """BalanceCampaign202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfBalanceCampaign202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """BalanceCampaign202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfBalanceCampaign202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py new file mode 100644 index 00000000..67cdf246 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py @@ -0,0 +1,360 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CampaignAttributesV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'AUCTION': "auction", + 'PREFERRED': "preferred", + }, + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'UNKNOWN': "unknown", + }, + ('view_attribution_window',): { + 'NONE': "None", + 'UNKNOWN': "Unknown", + 'ONEDAY': "OneDay", + 'SEVENDAYS': "SevenDays", + 'FOURTEENDAYS': "FourteenDays", + 'THIRTYDAYS': "ThirtyDays", + }, + ('click_attribution_scope',): { + 'None': None, + 'UNKNOWN': "unknown", + 'SAMESKU': "sameSku", + 'SAMESKUCATEGORY': "sameSkuCategory", + 'SAMESKUCATEGORYBRAND': "sameSkuCategoryBrand", + }, + ('view_attribution_scope',): { + 'None': None, + 'UNKNOWN': "unknown", + 'SAMESKU': "sameSku", + 'SAMESKUCATEGORY': "sameSkuCategory", + 'SAMESKUCATEGORYBRAND': "sameSkuCategoryBrand", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'is_auto_daily_pacing': (bool,), # noqa: E501 + 'start_date': (datetime, none_type,), # noqa: E501 + 'end_date': (datetime, none_type,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'drawable_balance_ids': ([str],), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'monthly_pacing': (float, none_type,), # noqa: E501 + 'daily_pacing': (float, none_type,), # noqa: E501 + 'click_attribution_scope': (str, none_type,), # noqa: E501 + 'view_attribution_scope': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'type': 'type', # noqa: E501 + 'drawable_balance_ids': 'drawableBalanceIds', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'monthly_pacing': 'monthlyPacing', # noqa: E501 + 'daily_pacing': 'dailyPacing', # noqa: E501 + 'click_attribution_scope': 'clickAttributionScope', # noqa: E501 + 'view_attribution_scope': 'viewAttributionScope', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, is_auto_daily_pacing, start_date, end_date, *args, **kwargs): # noqa: E501 + """CampaignAttributesV202301 - a model defined in OpenAPI + + Args: + name (str): + is_auto_daily_pacing (bool): + start_date (datetime, none_type): + end_date (datetime, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] if omitted the server will use the default value of "auction" # noqa: E501 + drawable_balance_ids ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] if omitted the server will use the default value of "30D" # noqa: E501 + view_attribution_window (str): [optional] if omitted the server will use the default value of "None" # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + click_attribution_scope (str, none_type): [optional] # noqa: E501 + view_attribution_scope (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.is_auto_daily_pacing = is_auto_daily_pacing + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, is_auto_daily_pacing, start_date, end_date, *args, **kwargs): # noqa: E501 + """CampaignAttributesV202301 - a model defined in OpenAPI + + Args: + name (str): + is_auto_daily_pacing (bool): + start_date (datetime, none_type): + end_date (datetime, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] if omitted the server will use the default value of "auction" # noqa: E501 + drawable_balance_ids ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] if omitted the server will use the default value of "30D" # noqa: E501 + view_attribution_window (str): [optional] if omitted the server will use the default value of "None" # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + click_attribution_scope (str, none_type): [optional] # noqa: E501 + view_attribution_scope (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.is_auto_daily_pacing = is_auto_daily_pacing + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report.py new file mode 100644 index 00000000..58a4640b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report.py @@ -0,0 +1,373 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CampaignReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('report_type',): { + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + }, + ('metrics',): { + 'IMPRESSIONS': "impressions", + 'CLICKS': "clicks", + 'SPEND': "spend", + 'ATTRIBUTEDSALES': "attributedSales", + 'ATTRIBUTEDUNITS': "attributedUnits", + 'ATTRIBUTEDORDERS': "attributedOrders", + 'CTR': "ctr", + 'CPC': "cpc", + 'CPO': "cpo", + 'CPM': "cpm", + 'ROAS': "roas", + 'UNIQUEVISITORS': "uniqueVisitors", + 'FREQUENCY': "frequency", + }, + ('dimensions',): { + 'DATE': "date", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'PAGETYPENAME': "pageTypeName", + 'KEYWORD': "keyword", + 'SALESCHANNEL': "salesChannel", + }, + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + }, + ('view_attribution_window',): { + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('campaign_type',): { + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_id': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'report_type': (str,), # noqa: E501 + 'campaign_ids': ([str],), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_id': 'accountId', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'campaign_ids': 'campaignIds', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): # noqa: E501 + """CampaignReport - a model defined in OpenAPI + + Args: + account_id (str): Account id to report on + start_date (datetime): Start date + end_date (datetime): End Date + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 + campaign_ids ([str]): List of campaign Ids to filter. [optional] # noqa: E501 + metrics ([str]): List of Metrics to report on. [optional] # noqa: E501 + dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 + timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 + view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str): Filter the type of campaign to report on. [optional] # noqa: E501 + sales_channel (str): Filter on the channel of sales. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: E501 + """CampaignReport - a model defined in OpenAPI + + Args: + account_id (str): Account id to report on + start_date (datetime): Start date + end_date (datetime): End Date + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 + campaign_ids ([str]): List of campaign Ids to filter. [optional] # noqa: E501 + metrics ([str]): List of Metrics to report on. [optional] # noqa: E501 + dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 + timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 + view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + campaign_type (str): Filter the type of campaign to report on. [optional] # noqa: E501 + sales_channel (str): Filter on the channel of sales. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_request.py new file mode 100644 index 00000000..068c7ab7 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.campaign_report_resource import CampaignReportResource + globals()['CampaignReportResource'] = CampaignReportResource + + +class CampaignReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CampaignReportResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CampaignReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CampaignReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_resource.py new file mode 100644 index 00000000..85d8666b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.campaign_report import CampaignReport + globals()['CampaignReport'] = CampaignReport + + +class CampaignReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (CampaignReport,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CampaignReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (CampaignReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CampaignReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (CampaignReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_v202301.py new file mode 100644 index 00000000..6089f1bd --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/campaign_v202301.py @@ -0,0 +1,407 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'INACTIVE': "inactive", + 'SCHEDULED': "scheduled", + 'ENDED': "ended", + }, + ('type',): { + 'UNKNOWN': "unknown", + 'AUCTION': "auction", + 'PREFERRED': "preferred", + }, + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'UNKNOWN': "unknown", + }, + ('view_attribution_window',): { + 'NONE': "None", + 'UNKNOWN': "Unknown", + 'ONEDAY': "OneDay", + 'SEVENDAYS': "SevenDays", + 'FOURTEENDAYS': "FourteenDays", + 'THIRTYDAYS': "ThirtyDays", + }, + ('click_attribution_scope',): { + 'None': None, + 'UNKNOWN': "unknown", + 'SAMESKU': "sameSku", + 'SAMESKUCATEGORY': "sameSkuCategory", + 'SAMESKUCATEGORYBRAND': "sameSkuCategoryBrand", + }, + ('view_attribution_scope',): { + 'None': None, + 'UNKNOWN': "unknown", + 'SAMESKU': "sameSku", + 'SAMESKUCATEGORY': "sameSkuCategory", + 'SAMESKUCATEGORYBRAND': "sameSkuCategoryBrand", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_id': (str,), # noqa: E501 + 'promoted_brand_ids': ([str],), # noqa: E501 + 'budget_spent': (float, none_type,), # noqa: E501 + 'budget_remaining': (float, none_type,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'is_auto_daily_pacing': (bool,), # noqa: E501 + 'start_date': (datetime, none_type,), # noqa: E501 + 'end_date': (datetime, none_type,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'drawable_balance_ids': ([str],), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'monthly_pacing': (float, none_type,), # noqa: E501 + 'daily_pacing': (float, none_type,), # noqa: E501 + 'click_attribution_scope': (str, none_type,), # noqa: E501 + 'view_attribution_scope': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_id': 'accountId', # noqa: E501 + 'promoted_brand_ids': 'promotedBrandIds', # noqa: E501 + 'budget_spent': 'budgetSpent', # noqa: E501 + 'budget_remaining': 'budgetRemaining', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'name': 'name', # noqa: E501 + 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'type': 'type', # noqa: E501 + 'drawable_balance_ids': 'drawableBalanceIds', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'monthly_pacing': 'monthlyPacing', # noqa: E501 + 'daily_pacing': 'dailyPacing', # noqa: E501 + 'click_attribution_scope': 'clickAttributionScope', # noqa: E501 + 'view_attribution_scope': 'viewAttributionScope', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, account_id, promoted_brand_ids, budget_spent, budget_remaining, created_at, updated_at, name, is_auto_daily_pacing, start_date, end_date, *args, **kwargs): # noqa: E501 + """CampaignV202301 - a model defined in OpenAPI + + Args: + account_id (str): + promoted_brand_ids ([str]): + budget_spent (float, none_type): + budget_remaining (float, none_type): + created_at (datetime): + updated_at (datetime): + name (str): + is_auto_daily_pacing (bool): + start_date (datetime, none_type): + end_date (datetime, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + type (str): [optional] if omitted the server will use the default value of "auction" # noqa: E501 + drawable_balance_ids ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] if omitted the server will use the default value of "30D" # noqa: E501 + view_attribution_window (str): [optional] if omitted the server will use the default value of "None" # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + click_attribution_scope (str, none_type): [optional] # noqa: E501 + view_attribution_scope (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.promoted_brand_ids = promoted_brand_ids + self.budget_spent = budget_spent + self.budget_remaining = budget_remaining + self.created_at = created_at + self.updated_at = updated_at + self.name = name + self.is_auto_daily_pacing = is_auto_daily_pacing + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, account_id, promoted_brand_ids, budget_spent, budget_remaining, created_at, updated_at, name, is_auto_daily_pacing, start_date, end_date, *args, **kwargs): # noqa: E501 + """CampaignV202301 - a model defined in OpenAPI + + Args: + account_id (str): + promoted_brand_ids ([str]): + budget_spent (float, none_type): + budget_remaining (float, none_type): + created_at (datetime): + updated_at (datetime): + name (str): + is_auto_daily_pacing (bool): + start_date (datetime, none_type): + end_date (datetime, none_type): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + type (str): [optional] if omitted the server will use the default value of "auction" # noqa: E501 + drawable_balance_ids ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] if omitted the server will use the default value of "30D" # noqa: E501 + view_attribution_window (str): [optional] if omitted the server will use the default value of "None" # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + click_attribution_scope (str, none_type): [optional] # noqa: E501 + view_attribution_scope (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.promoted_brand_ids = promoted_brand_ids + self.budget_spent = budget_spent + self.budget_remaining = budget_remaining + self.created_at = created_at + self.updated_at = updated_at + self.name = name + self.is_auto_daily_pacing = is_auto_daily_pacing + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204.py new file mode 100644 index 00000000..538ee56c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class Category202204(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'text': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'parent_id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'text': 'text', # noqa: E501 + 'name': 'name', # noqa: E501 + 'parent_id': 'parentId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, text, name, parent_id, *args, **kwargs): # noqa: E501 + """Category202204 - a model defined in OpenAPI + + Args: + text (str): Category Text + name (str): Category Name + parent_id (str): Category ParentId + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.text = text + self.name = name + self.parent_id = parent_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, text, name, parent_id, *args, **kwargs): # noqa: E501 + """Category202204 - a model defined in OpenAPI + + Args: + text (str): Category Text + name (str): Category Name + parent_id (str): Category ParentId + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.text = text + self.name = name + self.parent_id = parent_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204_list_response.py new file mode 100644 index 00000000..d531e5de --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/category202204_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_category202204 import ResourceOfCategory202204 + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfCategory202204'] = ResourceOfCategory202204 + + +class Category202204ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ResourceOfCategory202204],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Category202204ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfCategory202204]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Category202204ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfCategory202204]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_option.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_option.py new file mode 100644 index 00000000..6b0817ac --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_option.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.template_variable import TemplateVariable + globals()['TemplateVariable'] = TemplateVariable + + +class ChoiceOption(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'dependent_variables': ([TemplateVariable],), # noqa: E501 + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'dependent_variables': 'dependentVariables', # noqa: E501 + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, dependent_variables, id, *args, **kwargs): # noqa: E501 + """ChoiceOption - a model defined in OpenAPI + + Args: + dependent_variables ([TemplateVariable]): Template variables unblocked when the option is chosen + id (str): The id of the option + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.dependent_variables = dependent_variables + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, dependent_variables, id, *args, **kwargs): # noqa: E501 + """ChoiceOption - a model defined in OpenAPI + + Args: + dependent_variables ([TemplateVariable]): Template variables unblocked when the option is chosen + id (str): The id of the option + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.dependent_variables = dependent_variables + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_specification.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_specification.py new file mode 100644 index 00000000..0cd0f3a0 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_specification.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.choice_option import ChoiceOption + globals()['ChoiceOption'] = ChoiceOption + + +class ChoiceVariableSpecification(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'options': ([ChoiceOption],), # noqa: E501 + 'max_selected': (int, none_type,), # noqa: E501 + 'min_selected': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'options': 'options', # noqa: E501 + 'max_selected': 'maxSelected', # noqa: E501 + 'min_selected': 'minSelected', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, options, *args, **kwargs): # noqa: E501 + """ChoiceVariableSpecification - a model defined in OpenAPI + + Args: + options ([ChoiceOption]): The available options + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + max_selected (int, none_type): The maximum number of selectable options. [optional] # noqa: E501 + min_selected (int, none_type): The minimum number of selectable options. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.options = options + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, options, *args, **kwargs): # noqa: E501 + """ChoiceVariableSpecification - a model defined in OpenAPI + + Args: + options ([ChoiceOption]): The available options + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + max_selected (int, none_type): The maximum number of selectable options. [optional] # noqa: E501 + min_selected (int, none_type): The minimum number of selectable options. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.options = options + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_value.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_value.py new file mode 100644 index 00000000..65d3750b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/choice_variable_value.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ChoiceVariableValue(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'chosen_options': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'chosen_options': 'chosenOptions', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, chosen_options, *args, **kwargs): # noqa: E501 + """ChoiceVariableValue - a model defined in OpenAPI + + Args: + chosen_options ([str]): The chosen options + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.chosen_options = chosen_options + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, chosen_options, *args, **kwargs): # noqa: E501 + """ChoiceVariableValue - a model defined in OpenAPI + + Args: + chosen_options ([str]): The chosen options + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.chosen_options = chosen_options + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/color_variable_value.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/color_variable_value.py new file mode 100644 index 00000000..db6637bf --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/color_variable_value.py @@ -0,0 +1,274 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ColorVariableValue(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('color',): { + 'regex': { + 'pattern': r'^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$', # noqa: E501 + }, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'color': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'color': 'color', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, color, *args, **kwargs): # noqa: E501 + """ColorVariableValue - a model defined in OpenAPI + + Args: + color (str): The displayed color (HEX format) + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.color = color + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, color, *args, **kwargs): # noqa: E501 + """ColorVariableValue - a model defined in OpenAPI + + Args: + color (str): The displayed color (HEX format) + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.color = color + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/error.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_error.py similarity index 86% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/error.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_error.py index ff8706f9..10d5e262 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/error.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_error.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,15 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError -def lazy_import(): - from criteo_api_retailmedia_preview.model.map_string import MapString - globals()['MapString'] = MapString - -class Error(ModelNormal): +class CommonError(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -60,6 +56,7 @@ class Error(ModelNormal): allowed_values = { ('type',): { + 'UNKNOWN': "unknown", 'ACCESS-CONTROL': "access-control", 'AUTHENTICATION': "authentication", 'AUTHORIZATION': "authorization", @@ -79,7 +76,6 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ - lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -94,16 +90,15 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'code': (str,), # noqa: E501 - 'instance': (str,), # noqa: E501 'trace_id': (str,), # noqa: E501 'type': (str,), # noqa: E501 - 'detail': (str,), # noqa: E501 - 'source': (MapString,), # noqa: E501 - 'stack_trace': ([str],), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 } @cached_property @@ -112,14 +107,14 @@ def discriminator(): attribute_map = { - 'code': 'code', # noqa: E501 - 'instance': 'instance', # noqa: E501 'trace_id': 'traceId', # noqa: E501 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 'detail': 'detail', # noqa: E501 'source': 'source', # noqa: E501 'stack_trace': 'stackTrace', # noqa: E501 - 'title': 'title', # noqa: E501 } read_only_vars = { @@ -129,14 +124,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, code, instance, trace_id, type, *args, **kwargs): # noqa: E501 - """Error - a model defined in OpenAPI - - Args: - code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case. - instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem. - trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. - type (str): Type should be: \"validation\", \"unavailable, \"violation\", \"permission\", ... + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -169,10 +158,14 @@ def _from_openapi_data(cls, code, instance, trace_id, type, *args, **kwargs): # Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str]): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + type (str): (REQUIRED) The classification of the error.. [optional] # noqa: E501 + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case.. [optional] # noqa: E501 + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem.. [optional] # noqa: E501 title (str): (RECOMMENDED) A short, human-readable summary of the problem type.. [optional] # noqa: E501 + detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 + source ({str: (str,)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -204,10 +197,6 @@ def _from_openapi_data(cls, code, instance, trace_id, type, *args, **kwargs): # self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.code = code - self.instance = instance - self.trace_id = trace_id - self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -228,14 +217,8 @@ def _from_openapi_data(cls, code, instance, trace_id, type, *args, **kwargs): # ]) @convert_js_args_to_python_args - def __init__(self, code, instance, trace_id, type, *args, **kwargs): # noqa: E501 - """Error - a model defined in OpenAPI - - Args: - code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case. - instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem. - trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. - type (str): Type should be: \"validation\", \"unavailable, \"violation\", \"permission\", ... + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -268,10 +251,14 @@ def __init__(self, code, instance, trace_id, type, *args, **kwargs): # noqa: E5 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 - source (MapString): [optional] # noqa: E501 - stack_trace ([str]): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc. [optional] # noqa: E501 + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + type (str): (REQUIRED) The classification of the error.. [optional] # noqa: E501 + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case.. [optional] # noqa: E501 + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem.. [optional] # noqa: E501 title (str): (RECOMMENDED) A short, human-readable summary of the problem type.. [optional] # noqa: E501 + detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 + source ({str: (str,)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -301,10 +288,6 @@ def __init__(self, code, instance, trace_id, type, *args, **kwargs): # noqa: E5 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.code = code - self.instance = instance - self.trace_id = trace_id - self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_paged_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_paged_list_response.py new file mode 100644 index 00000000..d3b9c593 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_common_line_item import ResourceOfCommonLineItem + globals()['PageMetadata'] = PageMetadata + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfCommonLineItem'] = ResourceOfCommonLineItem + + +class CommonLineItemPagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfCommonLineItem],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonLineItemPagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfCommonLineItem]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonLineItemPagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfCommonLineItem]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_response.py new file mode 100644 index 00000000..b914cc12 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_line_item_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_common_line_item import ResourceOfCommonLineItem + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfCommonLineItem'] = ResourceOfCommonLineItem + + +class CommonLineItemResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfCommonLineItem,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonLineItemResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfCommonLineItem): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonLineItemResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfCommonLineItem): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_problem.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_problem.py new file mode 100644 index 00000000..b46102c9 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_problem.py @@ -0,0 +1,305 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CommonProblem(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_id': (str,), # noqa: E501 + 'trace_identifier': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_id': 'traceId', # noqa: E501 + 'trace_identifier': 'traceIdentifier', # noqa: E501 + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonProblem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): The problem's category.. [optional] # noqa: E501 + code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonProblem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): The problem's category.. [optional] # noqa: E501 + code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_status_code_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_status_code_response.py new file mode 100644 index 00000000..b0036494 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_status_code_response.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class CommonStatusCodeResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'errors': ([CommonProblem],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonStatusCodeResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonProblem]): errors. [optional] # noqa: E501 + warnings ([CommonProblem]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonStatusCodeResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonProblem]): errors. [optional] # noqa: E501 + warnings ([CommonProblem]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_warning.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_warning.py new file mode 100644 index 00000000..7ef27440 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/common_warning.py @@ -0,0 +1,301 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CommonWarning(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_id': 'traceId', # noqa: E501 + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CommonWarning - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + type (str): (REQUIRED) The classification of the error.. [optional] # noqa: E501 + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case.. [optional] # noqa: E501 + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): (RECOMMENDED) A short, human-readable summary of the problem type.. [optional] # noqa: E501 + detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 + source ({str: (str,)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CommonWarning - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem.. [optional] # noqa: E501 + type (str): (REQUIRED) The classification of the error.. [optional] # noqa: E501 + code (str): (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case.. [optional] # noqa: E501 + instance (str): (REQUIRED) A URI reference that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): (RECOMMENDED) A short, human-readable summary of the problem type.. [optional] # noqa: E501 + detail (str): (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem.. [optional] # noqa: E501 + source ({str: (str,)}): (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience.py new file mode 100644 index 00000000..9102cb1d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes + globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes + + +class CreateRetailMediaAudience(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (int,), # noqa: E501 + 'attributes': (CreateRetailMediaAudienceAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudience - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + id (int): Unique ID of this audience. + attributes (CreateRetailMediaAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.id = id + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudience - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + id (int): Unique ID of this audience. + attributes (CreateRetailMediaAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.id = id + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_attributes.py new file mode 100644 index 00000000..72cb4acb --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_attributes.py @@ -0,0 +1,310 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CreateRetailMediaAudienceAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('user_type',): { + 'VIEWER': "viewer", + 'BUYER': "buyer", + }, + ('lookback_window',): { + 'P7D': "P7D", + 'P14D': "P14D", + 'P30D': "P30D", + 'P45D': "P45D", + 'P60D': "P60D", + 'P90D': "P90D", + 'P120D': "P120D", + 'P150D': "P150D", + 'P180D': "P180D", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'user_type': (str,), # noqa: E501 + 'lookback_window': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'user_type': 'userType', # noqa: E501 + 'lookback_window': 'lookbackWindow', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'name': 'name', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'category_ids': 'categoryIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI + + Args: + user_type (str): Type of the user + lookback_window (str): Length of lookback window + retailer_id (int): ID of the retailer associated with this audience + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_type = user_type + self.lookback_window = lookback_window + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI + + Args: + user_type (str): Type of the user + lookback_window (str): Length of lookback window + retailer_id (int): ID of the retailer associated with this audience + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_type = user_type + self.lookback_window = lookback_window + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_body.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_body.py new file mode 100644 index 00000000..a5b4574a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_body.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes + globals()['CreateRetailMediaAudienceAttributes'] = CreateRetailMediaAudienceAttributes + + +class CreateRetailMediaAudienceBody(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (CreateRetailMediaAudienceAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceBody - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (CreateRetailMediaAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceBody - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (CreateRetailMediaAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_request.py new file mode 100644 index 00000000..493b1068 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_request.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody + globals()['CreateRetailMediaAudienceBody'] = CreateRetailMediaAudienceBody + + +class CreateRetailMediaAudienceRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateRetailMediaAudienceBody,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceRequest - a model defined in OpenAPI + + Args: + data (CreateRetailMediaAudienceBody): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceRequest - a model defined in OpenAPI + + Args: + data (CreateRetailMediaAudienceBody): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_response.py new file mode 100644 index 00000000..429afffe --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_response.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience import CreateRetailMediaAudience + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['CreateRetailMediaAudience'] = CreateRetailMediaAudience + + +class CreateRetailMediaAudienceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateRetailMediaAudience,), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateRetailMediaAudience): [optional] # noqa: E501 + errors ([CommonError]): errors. [optional] # noqa: E501 + warnings ([CommonWarning]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateRetailMediaAudience): [optional] # noqa: E501 + errors ([CommonError]): errors. [optional] # noqa: E501 + warnings ([CommonWarning]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py new file mode 100644 index 00000000..99109387 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes + globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes + + +class CreateRetailMediaAudienceV2(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (int,), # noqa: E501 + 'attributes': (CreateRetailMediaAudienceV2Attributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2 - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + id (int): Unique ID of this audience. + attributes (CreateRetailMediaAudienceV2Attributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.id = id + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2 - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + id (int): Unique ID of this audience. + attributes (CreateRetailMediaAudienceV2Attributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.id = id + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_attributes.py new file mode 100644 index 00000000..73f50911 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_attributes.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.user_behavior_details_v2 import UserBehaviorDetailsV2 + globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2 + + +class CreateRetailMediaAudienceV2Attributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'retailer_id': (int,), # noqa: E501 + 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 + 'name': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'retailer_id': 'retailerId', # noqa: E501 + 'user_behavior_details': 'userBehaviorDetails', # noqa: E501 + 'name': 'name', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, retailer_id, user_behavior_details, name, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI + + Args: + retailer_id (int): ID of the retailer associated with this audience + user_behavior_details (UserBehaviorDetailsV2): + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.user_behavior_details = user_behavior_details + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, retailer_id, user_behavior_details, name, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI + + Args: + retailer_id (int): ID of the retailer associated with this audience + user_behavior_details (UserBehaviorDetailsV2): + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.user_behavior_details = user_behavior_details + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_data.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_data.py new file mode 100644 index 00000000..35d5a368 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_data.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes + globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes + + +class CreateRetailMediaAudienceV2Data(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (CreateRetailMediaAudienceV2Attributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2Data - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (CreateRetailMediaAudienceV2Attributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, attributes, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2Data - a model defined in OpenAPI + + Args: + type (str): the name of the entity type + attributes (CreateRetailMediaAudienceV2Attributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_request.py new file mode 100644 index 00000000..222be118 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2_request.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data + globals()['CreateRetailMediaAudienceV2Data'] = CreateRetailMediaAudienceV2Data + + +class CreateRetailMediaAudienceV2Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateRetailMediaAudienceV2Data,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2Request - a model defined in OpenAPI + + Args: + data (CreateRetailMediaAudienceV2Data): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """CreateRetailMediaAudienceV2Request - a model defined in OpenAPI + + Args: + data (CreateRetailMediaAudienceV2Data): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_user_behavior_segment_v2.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_user_behavior_segment_v2.py new file mode 100644 index 00000000..4bd8ff1a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/create_user_behavior_segment_v2.py @@ -0,0 +1,309 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CreateUserBehaviorSegmentV2(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('user_action',): { + 'BUY': "buy", + 'VIEW': "view", + 'ADDTOCART': "addToCart", + }, + ('lookback_window',): { + 'P7D': "P7D", + 'P14D': "P14D", + 'P30D': "P30D", + 'P45D': "P45D", + 'P60D': "P60D", + 'P90D': "P90D", + 'P120D': "P120D", + 'P150D': "P150D", + 'P180D': "P180D", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'user_action': (str,), # noqa: E501 + 'lookback_window': (str,), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'min_price': (float,), # noqa: E501 + 'max_price': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'user_action': 'userAction', # noqa: E501 + 'lookback_window': 'lookbackWindow', # noqa: E501 + 'category_ids': 'categoryIds', # noqa: E501 + 'brand_ids': 'brandIds', # noqa: E501 + 'min_price': 'minPrice', # noqa: E501 + 'max_price': 'maxPrice', # noqa: E501 + } + + read_only_vars = { + 'min_price', # noqa: E501 + 'max_price', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # noqa: E501 + """CreateUserBehaviorSegmentV2 - a model defined in OpenAPI + + Args: + user_action (str): Type of shopper activity used to generate the audience. + lookback_window (str): Length of lookback window + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + min_price (float): The min price of targeted skus.. [optional] # noqa: E501 + max_price (float): The max price of targeted skus.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_action = user_action + self.lookback_window = lookback_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501 + """CreateUserBehaviorSegmentV2 - a model defined in OpenAPI + + Args: + user_action (str): Type of shopper activity used to generate the audience. + lookback_window (str): Length of lookback window + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + min_price (float): The min price of targeted skus.. [optional] # noqa: E501 + max_price (float): The max price of targeted skus.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.user_action = user_action + self.lookback_window = lookback_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110.py new file mode 100644 index 00000000..f2b9f98d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110.py @@ -0,0 +1,299 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class Creative202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'READY': "Ready", + 'IN_USE': "In_Use", + 'ARCHIVED': "Archived", + 'DELETED': "Deleted", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 + 'brand_id': (int, none_type,), # noqa: E501 + 'associated_line_item_ids': ([str],), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'status': 'status', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'brand_id': 'brandId', # noqa: E501 + 'associated_line_item_ids': 'associatedLineItemIds', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, status, retailer_id, *args, **kwargs): # noqa: E501 + """Creative202110 - a model defined in OpenAPI + + Args: + name (str): + status (str): + retailer_id (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int, none_type): [optional] # noqa: E501 + associated_line_item_ids ([str]): [optional] # noqa: E501 + updated_at (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.status = status + self.retailer_id = retailer_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, status, retailer_id, *args, **kwargs): # noqa: E501 + """Creative202110 - a model defined in OpenAPI + + Args: + name (str): + status (str): + retailer_id (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int, none_type): [optional] # noqa: E501 + associated_line_item_ids ([str]): [optional] # noqa: E501 + updated_at (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.status = status + self.retailer_id = retailer_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110_list_response.py new file mode 100644 index 00000000..5a175a8b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202110_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_creative202110 import ResourceOfCreative202110 + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfCreative202110'] = ResourceOfCreative202110 + + +class Creative202110ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ResourceOfCreative202110],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Creative202110ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfCreative202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Creative202110ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfCreative202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210.py new file mode 100644 index 00000000..708618d4 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210.py @@ -0,0 +1,355 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_type_environment import PageTypeEnvironment + from criteo_api_retailmedia_v2023_07.model.template_variable_value import TemplateVariableValue + globals()['PageTypeEnvironment'] = PageTypeEnvironment + globals()['TemplateVariableValue'] = TemplateVariableValue + + +class Creative202210(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'READY': "Ready", + 'IN_USE': "In_Use", + 'ARCHIVED': "Archived", + 'DELETED': "Deleted", + }, + ('creative_format_type',): { + 'UNKNOWN': "Unknown", + 'FLAGSHIP': "FlagShip", + 'SHOWCASE': "Showcase", + 'SPONSOREDPRODUCTS': "SponsoredProducts", + 'BUTTERFLY': "Butterfly", + 'BUNDLEBOOST': "BundleBoost", + 'IAB': "IAB", + 'CUSTOM': "CUSTOM", + 'DISPLAYPANEL': "DisplayPanel", + 'DIGITALSHELFTALKER': "DigitalShelfTalker", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 + 'template_id': (int,), # noqa: E501 + 'template_name': (str,), # noqa: E501 + 'format_id': (int,), # noqa: E501 + 'creative_format_type': (str,), # noqa: E501 + 'environments': ([PageTypeEnvironment],), # noqa: E501 + 'template_variable_values': ([TemplateVariableValue],), # noqa: E501 + 'brand_id': (int, none_type,), # noqa: E501 + 'associated_line_item_ids': ([str],), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'status': 'status', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'template_id': 'templateId', # noqa: E501 + 'template_name': 'templateName', # noqa: E501 + 'format_id': 'formatId', # noqa: E501 + 'creative_format_type': 'creativeFormatType', # noqa: E501 + 'environments': 'environments', # noqa: E501 + 'template_variable_values': 'templateVariableValues', # noqa: E501 + 'brand_id': 'brandId', # noqa: E501 + 'associated_line_item_ids': 'associatedLineItemIds', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, status, retailer_id, template_id, template_name, format_id, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501 + """Creative202210 - a model defined in OpenAPI + + Args: + name (str): Name + status (str): Creative Status + retailer_id (int): Retailer Id + template_id (int): Template Id + template_name (str): Template Name + format_id (int): Format Id + creative_format_type (str): Creative format type + environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app) + template_variable_values ([TemplateVariableValue]): The template chosen values + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int, none_type): Brand Id. [optional] # noqa: E501 + associated_line_item_ids ([str]): Associated Line Item Ids. [optional] # noqa: E501 + updated_at (datetime): Updated at time. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.status = status + self.retailer_id = retailer_id + self.template_id = template_id + self.template_name = template_name + self.format_id = format_id + self.creative_format_type = creative_format_type + self.environments = environments + self.template_variable_values = template_variable_values + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, status, retailer_id, template_id, template_name, format_id, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501 + """Creative202210 - a model defined in OpenAPI + + Args: + name (str): Name + status (str): Creative Status + retailer_id (int): Retailer Id + template_id (int): Template Id + template_name (str): Template Name + format_id (int): Format Id + creative_format_type (str): Creative format type + environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app) + template_variable_values ([TemplateVariableValue]): The template chosen values + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int, none_type): Brand Id. [optional] # noqa: E501 + associated_line_item_ids ([str]): Associated Line Item Ids. [optional] # noqa: E501 + updated_at (datetime): Updated at time. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.status = status + self.retailer_id = retailer_id + self.template_id = template_id + self.template_name = template_name + self.format_id = format_id + self.creative_format_type = creative_format_type + self.environments = environments + self.template_variable_values = template_variable_values + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_list_response.py new file mode 100644 index 00000000..d0906b99 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_creative202210 import ResourceOfCreative202210 + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfCreative202210'] = ResourceOfCreative202210 + + +class Creative202210ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ResourceOfCreative202210],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Creative202210ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfCreative202210]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Creative202210ListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfCreative202210]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_response.py new file mode 100644 index 00000000..51e7a76a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative202210_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_creative202210 import ResourceOfCreative202210 + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfCreative202210'] = ResourceOfCreative202210 + + +class Creative202210Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfCreative202210,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """Creative202210Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfCreative202210): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """Creative202210Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfCreative202210): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_create_model202207.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_create_model202207.py new file mode 100644 index 00000000..6ff8246b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_create_model202207.py @@ -0,0 +1,297 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.template_variable_value import TemplateVariableValue + globals()['TemplateVariableValue'] = TemplateVariableValue + + +class CreativeCreateModel202207(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 + 'template_id': (int,), # noqa: E501 + 'template_variable_values': ([TemplateVariableValue],), # noqa: E501 + 'brand_id': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'template_id': 'templateId', # noqa: E501 + 'template_variable_values': 'templateVariableValues', # noqa: E501 + 'brand_id': 'brandId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, retailer_id, template_id, template_variable_values, *args, **kwargs): # noqa: E501 + """CreativeCreateModel202207 - a model defined in OpenAPI + + Args: + name (str): The name of the creative + retailer_id (int): The retailer associated to the creative + template_id (int): The creative template used for this creative + template_variable_values ([TemplateVariableValue]): The template chosen values + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int): The brand associated to the creative. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.retailer_id = retailer_id + self.template_id = template_id + self.template_variable_values = template_variable_values + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, retailer_id, template_id, template_variable_values, *args, **kwargs): # noqa: E501 + """CreativeCreateModel202207 - a model defined in OpenAPI + + Args: + name (str): The name of the creative + retailer_id (int): The retailer associated to the creative + template_id (int): The creative template used for this creative + template_variable_values ([TemplateVariableValue]): The template chosen values + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int): The brand associated to the creative. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.retailer_id = retailer_id + self.template_id = template_id + self.template_variable_values = template_variable_values + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_update_model202207.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_update_model202207.py new file mode 100644 index 00000000..1d84f888 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/creative_update_model202207.py @@ -0,0 +1,297 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.template_variable_value import TemplateVariableValue + globals()['TemplateVariableValue'] = TemplateVariableValue + + +class CreativeUpdateModel202207(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 + 'template_id': (int,), # noqa: E501 + 'template_variable_values': ([TemplateVariableValue],), # noqa: E501 + 'brand_id': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'template_id': 'templateId', # noqa: E501 + 'template_variable_values': 'templateVariableValues', # noqa: E501 + 'brand_id': 'brandId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, retailer_id, template_id, template_variable_values, *args, **kwargs): # noqa: E501 + """CreativeUpdateModel202207 - a model defined in OpenAPI + + Args: + name (str): The name of the creative + retailer_id (int): The retailer associated to the creative + template_id (int): The creative template used for this creative + template_variable_values ([TemplateVariableValue]): The template chosen values + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int): The brand associated to the creative. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.retailer_id = retailer_id + self.template_id = template_id + self.template_variable_values = template_variable_values + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, retailer_id, template_id, template_variable_values, *args, **kwargs): # noqa: E501 + """CreativeUpdateModel202207 - a model defined in OpenAPI + + Args: + name (str): The name of the creative + retailer_id (int): The retailer associated to the creative + template_id (int): The creative template used for this creative + template_variable_values ([TemplateVariableValue]): The template chosen values + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + brand_id (int): The brand associated to the creative. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.retailer_id = retailer_id + self.template_id = template_id + self.template_variable_values = template_variable_values + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/customer_list_details.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/customer_list_details.py new file mode 100644 index 00000000..8f922315 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/customer_list_details.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class CustomerListDetails(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'size': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'size': 'size', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, size, *args, **kwargs): # noqa: E501 + """CustomerListDetails - a model defined in OpenAPI + + Args: + size (str): Number of users in the customer list audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.size = size + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, size, *args, **kwargs): # noqa: E501 + """CustomerListDetails - a model defined in OpenAPI + + Args: + size (str): Number of users in the customer list audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.size = size + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py new file mode 100644 index 00000000..596099bb --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py @@ -0,0 +1,351 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class EditableCampaignAttributesV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'UNKNOWN': "unknown", + }, + ('view_attribution_window',): { + 'NONE': "None", + 'UNKNOWN': "Unknown", + 'ONEDAY': "OneDay", + 'SEVENDAYS': "SevenDays", + 'FOURTEENDAYS': "FourteenDays", + 'THIRTYDAYS': "ThirtyDays", + }, + ('click_attribution_scope',): { + 'None': None, + 'UNKNOWN': "unknown", + 'SAMESKU': "sameSku", + 'SAMESKUCATEGORY': "sameSkuCategory", + 'SAMESKUCATEGORYBRAND': "sameSkuCategoryBrand", + }, + ('view_attribution_scope',): { + 'None': None, + 'UNKNOWN': "unknown", + 'SAMESKU': "sameSku", + 'SAMESKUCATEGORY': "sameSkuCategory", + 'SAMESKUCATEGORYBRAND': "sameSkuCategoryBrand", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'is_auto_daily_pacing': (bool,), # noqa: E501 + 'start_date': (datetime, none_type,), # noqa: E501 + 'end_date': (datetime, none_type,), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'monthly_pacing': (float, none_type,), # noqa: E501 + 'daily_pacing': (float, none_type,), # noqa: E501 + 'click_attribution_scope': (str, none_type,), # noqa: E501 + 'view_attribution_scope': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'monthly_pacing': 'monthlyPacing', # noqa: E501 + 'daily_pacing': 'dailyPacing', # noqa: E501 + 'click_attribution_scope': 'clickAttributionScope', # noqa: E501 + 'view_attribution_scope': 'viewAttributionScope', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, is_auto_daily_pacing, start_date, end_date, click_attribution_window, view_attribution_window, *args, **kwargs): # noqa: E501 + """EditableCampaignAttributesV202301 - a model defined in OpenAPI + + Args: + name (str): + is_auto_daily_pacing (bool): + start_date (datetime, none_type): + end_date (datetime, none_type): + click_attribution_window (str): + view_attribution_window (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + click_attribution_scope (str, none_type): [optional] # noqa: E501 + view_attribution_scope (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.is_auto_daily_pacing = is_auto_daily_pacing + self.start_date = start_date + self.end_date = end_date + self.click_attribution_window = click_attribution_window + self.view_attribution_window = view_attribution_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, is_auto_daily_pacing, start_date, end_date, click_attribution_window, view_attribution_window, *args, **kwargs): # noqa: E501 + """EditableCampaignAttributesV202301 - a model defined in OpenAPI + + Args: + name (str): + is_auto_daily_pacing (bool): + start_date (datetime, none_type): + end_date (datetime, none_type): + click_attribution_window (str): + view_attribution_window (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + click_attribution_scope (str, none_type): [optional] # noqa: E501 + view_attribution_scope (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.is_auto_daily_pacing = is_auto_daily_pacing + self.start_date = start_date + self.end_date = end_date + self.click_attribution_window = click_attribution_window + self.view_attribution_window = view_attribution_window + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_column.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_column.py new file mode 100644 index 00000000..85d39adb --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_column.py @@ -0,0 +1,321 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExportReportColumn(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'BOOLEAN': "Boolean", + 'NUMBER': "Number", + 'MONEY': "Money", + 'STRING': "String", + 'DATE': "Date", + 'DATETIME': "DateTime", + 'INTERVAL': "Interval", + 'DURATION': "Duration", + }, + ('role',): { + 'DIMENSION': "Dimension", + 'PROPERTY': "Property", + 'INTERVAL': "Interval", + 'METRIC': "Metric", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'role': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'duration': (str,), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'deprecated': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'type': 'type', # noqa: E501 + 'role': 'role', # noqa: E501 + 'title': 'title', # noqa: E501 + 'description': 'description', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'duration': 'duration', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'deprecated': 'deprecated', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, type, role, *args, **kwargs): # noqa: E501 + """ExportReportColumn - a model defined in OpenAPI + + Args: + name (str): Name of the exported column + type (str): Type of the column + role (str): Role of the colummn + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + title (str): Title of the exported column. [optional] # noqa: E501 + description (str): Description of the exported column. [optional] # noqa: E501 + timezone (str): Timezone of the column. [optional] # noqa: E501 + duration (str): Duration of the column. [optional] # noqa: E501 + currency (str): Currency of the column. [optional] # noqa: E501 + deprecated (bool): Flag for deprecated column. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.type = type + self.role = role + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, type, role, *args, **kwargs): # noqa: E501 + """ExportReportColumn - a model defined in OpenAPI + + Args: + name (str): Name of the exported column + type (str): Type of the column + role (str): Role of the colummn + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + title (str): Title of the exported column. [optional] # noqa: E501 + description (str): Description of the exported column. [optional] # noqa: E501 + timezone (str): Timezone of the column. [optional] # noqa: E501 + duration (str): Duration of the column. [optional] # noqa: E501 + currency (str): Currency of the column. [optional] # noqa: E501 + deprecated (bool): Flag for deprecated column. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.type = type + self.role = role + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_meta_data.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_meta_data.py new file mode 100644 index 00000000..72031e3d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/export_report_meta_data.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.export_report_column import ExportReportColumn + globals()['ExportReportColumn'] = ExportReportColumn + + +class ExportReportMetaData(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'columns': ([ExportReportColumn],), # noqa: E501 + 'rows': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'columns': 'columns', # noqa: E501 + 'rows': 'rows', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ExportReportMetaData - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + columns ([ExportReportColumn]): [optional] # noqa: E501 + rows (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ExportReportMetaData - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + columns ([ExportReportColumn]): [optional] # noqa: E501 + rows (int): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_account.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_account.py new file mode 100644 index 00000000..79ea18f6 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_account.py @@ -0,0 +1,322 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAccount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'SUPPLY': "supply", + 'DEMAND': "demand", + }, + ('subtype',): { + 'None': None, + 'UNKNOWN': "unknown", + 'BRAND': "brand", + 'SELLER': "seller", + }, + } + + validations = { + ('name',): { + 'max_length': 510, + 'min_length': 0, + }, + ('parent_account_label',): { + 'max_length': 510, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'countries': ([str],), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'parent_account_label': (str,), # noqa: E501 + 'time_zone': (str,), # noqa: E501 + 'subtype': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'type': 'type', # noqa: E501 + 'countries': 'countries', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'parent_account_label': 'parentAccountLabel', # noqa: E501 + 'time_zone': 'timeZone', # noqa: E501 + 'subtype': 'subtype', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, type, countries, currency, parent_account_label, time_zone, *args, **kwargs): # noqa: E501 + """ExternalAccount - a model defined in OpenAPI + + Args: + name (str): + type (str): + countries ([str]): + currency (str): + parent_account_label (str): + time_zone (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + subtype (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.type = type + self.countries = countries + self.currency = currency + self.parent_account_label = parent_account_label + self.time_zone = time_zone + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, type, countries, currency, parent_account_label, time_zone, *args, **kwargs): # noqa: E501 + """ExternalAccount - a model defined in OpenAPI + + Args: + name (str): + type (str): + countries ([str]): + currency (str): + parent_account_label (str): + time_zone (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + subtype (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.type = type + self.countries = countries + self.currency = currency + self.parent_account_label = parent_account_label + self.time_zone = time_zone + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_ids_update_model202110.py new file mode 100644 index 00000000..bca23d9e --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_ids_update_model202110.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAddToBasketIdsUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'product_ids': ([str],), # noqa: E501 + 'category_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'product_ids': 'productIds', # noqa: E501 + 'category_ids': 'categoryIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ExternalAddToBasketIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + product_ids ([str]): Product ids that add to basket should target. [optional] # noqa: E501 + category_ids ([str]): Category ids that add to basket should target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ExternalAddToBasketIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + product_ids ([str]): Product ids that add to basket should target. [optional] # noqa: E501 + category_ids ([str]): Category ids that add to basket should target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_target202110.py new file mode 100644 index 00000000..fd821d3d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_add_to_basket_target202110.py @@ -0,0 +1,282 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAddToBasketTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('scope',): { + 'UNKNOWN': "unknown", + 'INCLUDE': "include", + 'EXCLUDE': "exclude", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'scope': (str,), # noqa: E501 + 'product_ids': ([str],), # noqa: E501 + 'category_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'scope': 'scope', # noqa: E501 + 'product_ids': 'productIds', # noqa: E501 + 'category_ids': 'categoryIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, scope, *args, **kwargs): # noqa: E501 + """ExternalAddToBasketTarget202110 - a model defined in OpenAPI + + Args: + scope (str): Scope of the add to basket target + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + product_ids ([str]): Product ids that add to basket should target. [optional] # noqa: E501 + category_ids ([str]): Category ids that add to basket should target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.scope = scope + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, scope, *args, **kwargs): # noqa: E501 + """ExternalAddToBasketTarget202110 - a model defined in OpenAPI + + Args: + scope (str): Scope of the add to basket target + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + product_ids ([str]): Product ids that add to basket should target. [optional] # noqa: E501 + category_ids ([str]): Category ids that add to basket should target. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.scope = scope + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item.py new file mode 100644 index 00000000..dacc955f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item.py @@ -0,0 +1,366 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAuctionLineItem(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('bid_strategy',): { + 'UNKNOWN': "unknown", + 'CONVERSION': "conversion", + 'CLICKS': "clicks", + 'REVENUE': "revenue", + }, + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'target_retailer_id': (str,), # noqa: E501 + 'campaign_id': (str,), # noqa: E501 + 'budget_remaining': (float, none_type,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'max_bid': (float, none_type,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'monthly_pacing': (float, none_type,), # noqa: E501 + 'daily_pacing': (float, none_type,), # noqa: E501 + 'bid_strategy': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'target_bid': (float, none_type,), # noqa: E501 + 'is_auto_daily_pacing': (bool,), # noqa: E501 + 'budget_spent': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'target_retailer_id': 'targetRetailerId', # noqa: E501 + 'campaign_id': 'campaignId', # noqa: E501 + 'budget_remaining': 'budgetRemaining', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'max_bid': 'maxBid', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'monthly_pacing': 'monthlyPacing', # noqa: E501 + 'daily_pacing': 'dailyPacing', # noqa: E501 + 'bid_strategy': 'bidStrategy', # noqa: E501 + 'status': 'status', # noqa: E501 + 'target_bid': 'targetBid', # noqa: E501 + 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501 + 'budget_spent': 'budgetSpent', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, start_date, target_retailer_id, campaign_id, budget_remaining, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalAuctionLineItem - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + target_retailer_id (str): + campaign_id (str): + budget_remaining (float, none_type): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + max_bid (float, none_type): [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + bid_strategy (str): [optional] if omitted the server will use the default value of "conversion" # noqa: E501 + status (str): [optional] # noqa: E501 + target_bid (float, none_type): [optional] # noqa: E501 + is_auto_daily_pacing (bool): [optional] if omitted the server will use the default value of False # noqa: E501 + budget_spent (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.target_retailer_id = target_retailer_id + self.campaign_id = campaign_id + self.budget_remaining = budget_remaining + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, start_date, target_retailer_id, campaign_id, budget_remaining, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalAuctionLineItem - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + target_retailer_id (str): + campaign_id (str): + budget_remaining (float, none_type): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + max_bid (float, none_type): [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + bid_strategy (str): [optional] if omitted the server will use the default value of "conversion" # noqa: E501 + status (str): [optional] # noqa: E501 + target_bid (float, none_type): [optional] # noqa: E501 + is_auto_daily_pacing (bool): [optional] if omitted the server will use the default value of False # noqa: E501 + budget_spent (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.target_retailer_id = target_retailer_id + self.campaign_id = campaign_id + self.budget_remaining = budget_remaining + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_create_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_create_model.py new file mode 100644 index 00000000..483fce2a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_create_model.py @@ -0,0 +1,338 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAuctionLineItemCreateModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + ('bid_strategy',): { + 'UNKNOWN': "unknown", + 'CONVERSION': "conversion", + 'CLICKS': "clicks", + 'REVENUE': "revenue", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'target_retailer_id': (str,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'target_bid': (float, none_type,), # noqa: E501 + 'max_bid': (float, none_type,), # noqa: E501 + 'monthly_pacing': (float, none_type,), # noqa: E501 + 'daily_pacing': (float, none_type,), # noqa: E501 + 'is_auto_daily_pacing': (bool,), # noqa: E501 + 'bid_strategy': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'target_retailer_id': 'targetRetailerId', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'target_bid': 'targetBid', # noqa: E501 + 'max_bid': 'maxBid', # noqa: E501 + 'monthly_pacing': 'monthlyPacing', # noqa: E501 + 'daily_pacing': 'dailyPacing', # noqa: E501 + 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501 + 'bid_strategy': 'bidStrategy', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, start_date, target_retailer_id, *args, **kwargs): # noqa: E501 + """ExternalAuctionLineItemCreateModel - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + target_retailer_id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + status (str): [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + target_bid (float, none_type): [optional] # noqa: E501 + max_bid (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + is_auto_daily_pacing (bool): [optional] if omitted the server will use the default value of False # noqa: E501 + bid_strategy (str): [optional] if omitted the server will use the default value of "conversion" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.target_retailer_id = target_retailer_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, start_date, target_retailer_id, *args, **kwargs): # noqa: E501 + """ExternalAuctionLineItemCreateModel - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + target_retailer_id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + status (str): [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + target_bid (float, none_type): [optional] # noqa: E501 + max_bid (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + is_auto_daily_pacing (bool): [optional] if omitted the server will use the default value of False # noqa: E501 + bid_strategy (str): [optional] if omitted the server will use the default value of "conversion" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.target_retailer_id = target_retailer_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_update_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_update_model.py new file mode 100644 index 00000000..3282df82 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_auction_line_item_update_model.py @@ -0,0 +1,338 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAuctionLineItemUpdateModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + ('bid_strategy',): { + 'UNKNOWN': "unknown", + 'CONVERSION': "conversion", + 'CLICKS': "clicks", + 'REVENUE': "revenue", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'target_bid': (float, none_type,), # noqa: E501 + 'is_auto_daily_pacing': (bool,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'max_bid': (float, none_type,), # noqa: E501 + 'monthly_pacing': (float, none_type,), # noqa: E501 + 'daily_pacing': (float, none_type,), # noqa: E501 + 'bid_strategy': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'target_bid': 'targetBid', # noqa: E501 + 'is_auto_daily_pacing': 'isAutoDailyPacing', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'max_bid': 'maxBid', # noqa: E501 + 'monthly_pacing': 'monthlyPacing', # noqa: E501 + 'daily_pacing': 'dailyPacing', # noqa: E501 + 'bid_strategy': 'bidStrategy', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, start_date, status, target_bid, is_auto_daily_pacing, *args, **kwargs): # noqa: E501 + """ExternalAuctionLineItemUpdateModel - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + target_bid (float, none_type): + is_auto_daily_pacing (bool): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + max_bid (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + bid_strategy (str): [optional] if omitted the server will use the default value of "conversion" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.status = status + self.target_bid = target_bid + self.is_auto_daily_pacing = is_auto_daily_pacing + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, start_date, status, target_bid, is_auto_daily_pacing, *args, **kwargs): # noqa: E501 + """ExternalAuctionLineItemUpdateModel - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + target_bid (float, none_type): + is_auto_daily_pacing (bool): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + max_bid (float, none_type): [optional] # noqa: E501 + monthly_pacing (float, none_type): [optional] # noqa: E501 + daily_pacing (float, none_type): [optional] # noqa: E501 + bid_strategy (str): [optional] if omitted the server will use the default value of "conversion" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.status = status + self.target_bid = target_bid + self.is_auto_daily_pacing = is_auto_daily_pacing + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_ids_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_ids_update_model202110.py new file mode 100644 index 00000000..cb76df75 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_ids_update_model202110.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAudienceIdsUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'audience_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'audience_ids': 'audienceIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, audience_ids, *args, **kwargs): # noqa: E501 + """ExternalAudienceIdsUpdateModel202110 - a model defined in OpenAPI + + Args: + audience_ids ([str]): Audience ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.audience_ids = audience_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, audience_ids, *args, **kwargs): # noqa: E501 + """ExternalAudienceIdsUpdateModel202110 - a model defined in OpenAPI + + Args: + audience_ids ([str]): Audience ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.audience_ids = audience_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_target202110.py new file mode 100644 index 00000000..5ce2de23 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_audience_target202110.py @@ -0,0 +1,280 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalAudienceTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('scope',): { + 'UNKNOWN': "unknown", + 'INCLUDE': "include", + 'EXCLUDE': "exclude", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'scope': (str,), # noqa: E501 + 'audience_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'scope': 'scope', # noqa: E501 + 'audience_ids': 'audienceIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, scope, audience_ids, *args, **kwargs): # noqa: E501 + """ExternalAudienceTarget202110 - a model defined in OpenAPI + + Args: + scope (str): Scope of the audience target + audience_ids ([str]): Audience ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.scope = scope + self.audience_ids = audience_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, scope, audience_ids, *args, **kwargs): # noqa: E501 + """ExternalAudienceTarget202110 - a model defined in OpenAPI + + Args: + scope (str): Scope of the audience target + audience_ids ([str]): Audience ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.scope = scope + self.audience_ids = audience_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_balance202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_balance202110.py new file mode 100644 index 00000000..41e052b8 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_balance202110.py @@ -0,0 +1,335 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalBalance202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'SCHEDULED': "scheduled", + 'ACTIVE': "active", + 'ENDED': "ended", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'po_number': (str,), # noqa: E501 + 'memo': (str,), # noqa: E501 + 'deposited': (float, none_type,), # noqa: E501 + 'spent': (float, none_type,), # noqa: E501 + 'remaining': (float, none_type,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'po_number': 'poNumber', # noqa: E501 + 'memo': 'memo', # noqa: E501 + 'deposited': 'deposited', # noqa: E501 + 'spent': 'spent', # noqa: E501 + 'remaining': 'remaining', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, end_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalBalance202110 - a model defined in OpenAPI + + Args: + name (str): + po_number (str): + memo (str): + deposited (float, none_type): + spent (float, none_type): + remaining (float, none_type): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.po_number = po_number + self.memo = memo + self.deposited = deposited + self.spent = spent + self.remaining = remaining + self.start_date = start_date + self.end_date = end_date + self.status = status + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, end_date, status, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalBalance202110 - a model defined in OpenAPI + + Args: + name (str): + po_number (str): + memo (str): + deposited (float, none_type): + spent (float, none_type): + remaining (float, none_type): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.po_number = po_number + self.memo = memo + self.deposited = deposited + self.spent = spent + self.remaining = remaining + self.start_date = start_date + self.end_date = end_date + self.status = status + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_brand.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_brand.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_brand.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_brand.py index e131e671..12f8b0f4 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_brand.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_brand.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError -class RetailerBrand(ModelNormal): +class ExternalBrand(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -104,8 +104,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """RetailerBrand - a model defined in OpenAPI + def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + """ExternalBrand - a model defined in OpenAPI + + Args: + name (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -138,7 +141,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name of the retailer brand.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -170,6 +172,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -190,8 +193,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """RetailerBrand - a model defined in OpenAPI + def __init__(self, name, *args, **kwargs): # noqa: E501 + """ExternalBrand - a model defined in OpenAPI + + Args: + name (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -224,7 +230,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name of the retailer brand.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -254,6 +259,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_request.py new file mode 100644 index 00000000..f896f488 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_request.py @@ -0,0 +1,270 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalCatalogRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('format',): { + 'JSON-NEWLINE': "json-newline", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'format': (str,), # noqa: E501 + 'brand_id_filter': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'format': 'format', # noqa: E501 + 'brand_id_filter': 'brandIdFilter', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ExternalCatalogRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + format (str): [optional] if omitted the server will use the default value of "json-newline" # noqa: E501 + brand_id_filter ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ExternalCatalogRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + format (str): [optional] if omitted the server will use the default value of "json-newline" # noqa: E501 + brand_id_filter ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_status.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_status.py new file mode 100644 index 00000000..d9a59806 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_catalog_status.py @@ -0,0 +1,312 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalCatalogStatus(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'PENDING': "pending", + 'SUCCESS': "success", + 'FAILURE': "failure", + 'EXPIRED': "expired", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'status': (str,), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'row_count': (int, none_type,), # noqa: E501 + 'file_size_bytes': (int, none_type,), # noqa: E501 + 'md5_checksum': (str, none_type,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'message': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status': 'status', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'row_count': 'rowCount', # noqa: E501 + 'file_size_bytes': 'fileSizeBytes', # noqa: E501 + 'md5_checksum': 'md5Checksum', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'message': 'message', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status, currency, row_count, file_size_bytes, md5_checksum, created_at, message, *args, **kwargs): # noqa: E501 + """ExternalCatalogStatus - a model defined in OpenAPI + + Args: + status (str): An enumeration of the status of the catalog. + currency (str): An ISO4217 representation of the currency products are listed under in this catalog. + row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status. + file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status. + md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status. + created_at (datetime): The time this catalog was created. Represented as a UTC ISO8601 string. + message (str, none_type): An optional information message intended for developer consumption. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.status = status + self.currency = currency + self.row_count = row_count + self.file_size_bytes = file_size_bytes + self.md5_checksum = md5_checksum + self.created_at = created_at + self.message = message + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, status, currency, row_count, file_size_bytes, md5_checksum, created_at, message, *args, **kwargs): # noqa: E501 + """ExternalCatalogStatus - a model defined in OpenAPI + + Args: + status (str): An enumeration of the status of the catalog. + currency (str): An ISO4217 representation of the currency products are listed under in this catalog. + row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status. + file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status. + md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status. + created_at (datetime): The time this catalog was created. Represented as a UTC ISO8601 string. + message (str, none_type): An optional information message intended for developer consumption. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.status = status + self.currency = currency + self.row_count = row_count + self.file_size_bytes = file_size_bytes + self.md5_checksum = md5_checksum + self.created_at = created_at + self.message = message + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_common_line_item.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_common_line_item.py new file mode 100644 index 00000000..6f7232a4 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_common_line_item.py @@ -0,0 +1,347 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalCommonLineItem(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'AUCTION': "auction", + 'PREFERRED': "preferred", + }, + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'target_retailer_id': (str,), # noqa: E501 + 'campaign_id': (str,), # noqa: E501 + 'budget_remaining': (float, none_type,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'budget': (float, none_type,), # noqa: E501 + 'budget_spent': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'type': 'type', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'target_retailer_id': 'targetRetailerId', # noqa: E501 + 'campaign_id': 'campaignId', # noqa: E501 + 'budget_remaining': 'budgetRemaining', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'budget_spent': 'budgetSpent', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, type, start_date, target_retailer_id, campaign_id, budget_remaining, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalCommonLineItem - a model defined in OpenAPI + + Args: + name (str): + type (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + target_retailer_id (str): + campaign_id (str): + budget_remaining (float, none_type): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + status (str): [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + budget_spent (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.type = type + self.start_date = start_date + self.target_retailer_id = target_retailer_id + self.campaign_id = campaign_id + self.budget_remaining = budget_remaining + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, type, start_date, target_retailer_id, campaign_id, budget_remaining, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalCommonLineItem - a model defined in OpenAPI + + Args: + name (str): + type (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + target_retailer_id (str): + campaign_id (str): + budget_remaining (float, none_type): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + status (str): [optional] # noqa: E501 + budget (float, none_type): [optional] # noqa: E501 + budget_spent (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.type = type + self.start_date = start_date + self.target_retailer_id = target_retailer_id + self.campaign_id = campaign_id + self.budget_remaining = budget_remaining + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_keyword_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_keyword_target202110.py new file mode 100644 index 00000000..32429a87 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_keyword_target202110.py @@ -0,0 +1,274 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalKeywordTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('keywords',): { + 'UNKNOWN': "unknown", + 'NEGATIVEEXACT': "negativeExact", + 'NEGATIVEBROAD': "negativeBroad", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'keywords': ({str: (str,)},), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'keywords': 'keywords', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, keywords, *args, **kwargs): # noqa: E501 + """ExternalKeywordTarget202110 - a model defined in OpenAPI + + Args: + keywords ({str: (str,)}): Keywords that targeting specifications exist for + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.keywords = keywords + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, keywords, *args, **kwargs): # noqa: E501 + """ExternalKeywordTarget202110 - a model defined in OpenAPI + + Args: + keywords ({str: (str,)}): Keywords that targeting specifications exist for + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.keywords = keywords + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_capping202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_capping202110.py new file mode 100644 index 00000000..facc1e06 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_capping202110.py @@ -0,0 +1,280 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalLineItemCapping202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'DAY': "day", + 'SESSION': "session", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'type': (str,), # noqa: E501 + 'count': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'count': 'count', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, count, *args, **kwargs): # noqa: E501 + """ExternalLineItemCapping202110 - a model defined in OpenAPI + + Args: + type (str): + count (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.count = count + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, count, *args, **kwargs): # noqa: E501 + """ExternalLineItemCapping202110 - a model defined in OpenAPI + + Args: + type (str): + count (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.count = count + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page202110.py new file mode 100644 index 00000000..d4f2f641 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page202110.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 + globals()['ExternalLineItemPageCategory202110'] = ExternalLineItemPageCategory202110 + + +class ExternalLineItemPage202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('page_type',): { + 'SEARCH': "search", + 'HOME': "home", + 'CHECKOUT': "checkout", + 'CATEGORY': "category", + 'PRODUCTDETAIL': "productDetail", + 'CONFIRMATION': "confirmation", + 'MERCHANDISING': "merchandising", + 'DEALS': "deals", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'page_type': (str,), # noqa: E501 + 'categories': ([ExternalLineItemPageCategory202110],), # noqa: E501 + 'search_keywords': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'page_type': 'pageType', # noqa: E501 + 'categories': 'categories', # noqa: E501 + 'search_keywords': 'searchKeywords', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, page_type, *args, **kwargs): # noqa: E501 + """ExternalLineItemPage202110 - a model defined in OpenAPI + + Args: + page_type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + categories ([ExternalLineItemPageCategory202110]): [optional] # noqa: E501 + search_keywords ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.page_type = page_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, page_type, *args, **kwargs): # noqa: E501 + """ExternalLineItemPage202110 - a model defined in OpenAPI + + Args: + page_type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + categories ([ExternalLineItemPageCategory202110]): [optional] # noqa: E501 + search_keywords ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.page_type = page_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page_category202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page_category202110.py new file mode 100644 index 00000000..06746f74 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_line_item_page_category202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalLineItemPageCategory202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'category_id': (str,), # noqa: E501 + 'include_children': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'category_id': 'categoryId', # noqa: E501 + 'include_children': 'includeChildren', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, category_id, *args, **kwargs): # noqa: E501 + """ExternalLineItemPageCategory202110 - a model defined in OpenAPI + + Args: + category_id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + include_children (bool): [optional] if omitted the server will use the default value of True # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.category_id = category_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, category_id, *args, **kwargs): # noqa: E501 + """ExternalLineItemPageCategory202110 - a model defined in OpenAPI + + Args: + category_id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + include_children (bool): [optional] if omitted the server will use the default value of True # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.category_id = category_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item202110.py new file mode 100644 index 00000000..fcaffc60 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item202110.py @@ -0,0 +1,373 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 + from criteo_api_retailmedia_v2023_07.model.external_line_item_page202110 import ExternalLineItemPage202110 + globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 + globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 + + +class ExternalPreferredLineItem202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + ('pacing',): { + 'UNKNOWN': "unknown", + 'STANDARD': "standard", + 'ACCELERATED': "accelerated", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'pacing': (str,), # noqa: E501 + 'page': (ExternalLineItemPage202110,), # noqa: E501 + 'target_retailer_id': (str,), # noqa: E501 + 'budget': (float,), # noqa: E501 + 'campaign_id': (str,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'capping': (ExternalLineItemCapping202110,), # noqa: E501 + 'budget_spent': (float,), # noqa: E501 + 'budget_remaining': (float,), # noqa: E501 + 'creative_id': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'pacing': 'pacing', # noqa: E501 + 'page': 'page', # noqa: E501 + 'target_retailer_id': 'targetRetailerId', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'campaign_id': 'campaignId', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'capping': 'capping', # noqa: E501 + 'budget_spent': 'budgetSpent', # noqa: E501 + 'budget_remaining': 'budgetRemaining', # noqa: E501 + 'creative_id': 'creativeId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, start_date, end_date, status, pacing, page, target_retailer_id, budget, campaign_id, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalPreferredLineItem202110 - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + pacing (str): + page (ExternalLineItemPage202110): + target_retailer_id (str): + budget (float): + campaign_id (str): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + capping (ExternalLineItemCapping202110): [optional] # noqa: E501 + budget_spent (float): [optional] # noqa: E501 + budget_remaining (float): [optional] # noqa: E501 + creative_id (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.end_date = end_date + self.status = status + self.pacing = pacing + self.page = page + self.target_retailer_id = target_retailer_id + self.budget = budget + self.campaign_id = campaign_id + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, start_date, end_date, status, pacing, page, target_retailer_id, budget, campaign_id, created_at, updated_at, *args, **kwargs): # noqa: E501 + """ExternalPreferredLineItem202110 - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + pacing (str): + page (ExternalLineItemPage202110): + target_retailer_id (str): + budget (float): + campaign_id (str): + created_at (datetime): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + capping (ExternalLineItemCapping202110): [optional] # noqa: E501 + budget_spent (float): [optional] # noqa: E501 + budget_remaining (float): [optional] # noqa: E501 + creative_id (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.end_date = end_date + self.status = status + self.pacing = pacing + self.page = page + self.target_retailer_id = target_retailer_id + self.budget = budget + self.campaign_id = campaign_id + self.created_at = created_at + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_create_model202110.py new file mode 100644 index 00000000..67c8bf44 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_create_model202110.py @@ -0,0 +1,345 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 + from criteo_api_retailmedia_v2023_07.model.external_line_item_page202110 import ExternalLineItemPage202110 + globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 + globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 + + +class ExternalPreferredLineItemCreateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('pacing',): { + 'UNKNOWN': "unknown", + 'STANDARD': "standard", + 'ACCELERATED': "accelerated", + }, + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'pacing': (str,), # noqa: E501 + 'page': (ExternalLineItemPage202110,), # noqa: E501 + 'target_retailer_id': (str,), # noqa: E501 + 'budget': (float,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'capping': (ExternalLineItemCapping202110,), # noqa: E501 + 'creative_id': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'pacing': 'pacing', # noqa: E501 + 'page': 'page', # noqa: E501 + 'target_retailer_id': 'targetRetailerId', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'status': 'status', # noqa: E501 + 'capping': 'capping', # noqa: E501 + 'creative_id': 'creativeId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, start_date, end_date, pacing, page, target_retailer_id, budget, *args, **kwargs): # noqa: E501 + """ExternalPreferredLineItemCreateModel202110 - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + pacing (str): + page (ExternalLineItemPage202110): + target_retailer_id (str): + budget (float): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + capping (ExternalLineItemCapping202110): [optional] # noqa: E501 + creative_id (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.end_date = end_date + self.pacing = pacing + self.page = page + self.target_retailer_id = target_retailer_id + self.budget = budget + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, start_date, end_date, pacing, page, target_retailer_id, budget, *args, **kwargs): # noqa: E501 + """ExternalPreferredLineItemCreateModel202110 - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + pacing (str): + page (ExternalLineItemPage202110): + target_retailer_id (str): + budget (float): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + capping (ExternalLineItemCapping202110): [optional] # noqa: E501 + creative_id (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.end_date = end_date + self.pacing = pacing + self.page = page + self.target_retailer_id = target_retailer_id + self.budget = budget + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_update_model202110.py new file mode 100644 index 00000000..8c600ae7 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_preferred_line_item_update_model202110.py @@ -0,0 +1,335 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 + from criteo_api_retailmedia_v2023_07.model.external_line_item_page202110 import ExternalLineItemPage202110 + globals()['ExternalLineItemCapping202110'] = ExternalLineItemCapping202110 + globals()['ExternalLineItemPage202110'] = ExternalLineItemPage202110 + + +class ExternalPreferredLineItemUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'ACTIVE': "active", + 'SCHEDULED': "scheduled", + 'DRAFT': "draft", + 'PAUSED': "paused", + 'BUDGETHIT': "budgetHit", + 'ENDED': "ended", + 'ARCHIVED': "archived", + 'NOFUNDS': "noFunds", + }, + ('pacing',): { + 'UNKNOWN': "unknown", + 'STANDARD': "standard", + 'ACCELERATED': "accelerated", + }, + } + + validations = { + ('name',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'name': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'pacing': (str,), # noqa: E501 + 'capping': (ExternalLineItemCapping202110,), # noqa: E501 + 'page': (ExternalLineItemPage202110,), # noqa: E501 + 'budget': (float,), # noqa: E501 + 'creative_id': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'pacing': 'pacing', # noqa: E501 + 'capping': 'capping', # noqa: E501 + 'page': 'page', # noqa: E501 + 'budget': 'budget', # noqa: E501 + 'creative_id': 'creativeId', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, start_date, end_date, status, *args, **kwargs): # noqa: E501 + """ExternalPreferredLineItemUpdateModel202110 - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + pacing (str): [optional] if omitted the server will use the default value of "accelerated" # noqa: E501 + capping (ExternalLineItemCapping202110): [optional] # noqa: E501 + page (ExternalLineItemPage202110): [optional] # noqa: E501 + budget (float): [optional] # noqa: E501 + creative_id (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.end_date = end_date + self.status = status + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, start_date, end_date, status, *args, **kwargs): # noqa: E501 + """ExternalPreferredLineItemUpdateModel202110 - a model defined in OpenAPI + + Args: + name (str): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + pacing (str): [optional] if omitted the server will use the default value of "accelerated" # noqa: E501 + capping (ExternalLineItemCapping202110): [optional] # noqa: E501 + page (ExternalLineItemPage202110): [optional] # noqa: E501 + budget (float): [optional] # noqa: E501 + creative_id (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.start_date = start_date + self.end_date = end_date + self.status = status + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_promoted_product202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_promoted_product202110.py new file mode 100644 index 00000000..767c6ac9 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_promoted_product202110.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalPromotedProduct202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'bid_override': (float, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'bid_override': 'bidOverride', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ExternalPromotedProduct202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_override (float, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ExternalPromotedProduct202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bid_override (float, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer.py new file mode 100644 index 00000000..7307c044 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalRetailer(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('campaign_eligibilities',): { + 'UNKNOWN': "unknown", + 'AUCTION': "auction", + 'PREFERRED': "preferred", + }, + } + + validations = { + ('name',): { + 'max_length': 100, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'campaign_eligibilities': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'campaign_eligibilities': 'campaignEligibilities', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + """ExternalRetailer - a model defined in OpenAPI + + Args: + name (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_eligibilities ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, *args, **kwargs): # noqa: E501 + """ExternalRetailer - a model defined in OpenAPI + + Args: + name (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_eligibilities ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer_pages202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer_pages202110.py new file mode 100644 index 00000000..9bbff881 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_retailer_pages202110.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalRetailerPages202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'page_types': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'page_types': 'pageTypes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ExternalRetailerPages202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + page_types ([str]): List of valid pages for a retailer. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ExternalRetailerPages202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + page_types ([str]): List of valid pages for a retailer. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_ids_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_ids_update_model202110.py new file mode 100644 index 00000000..e31d8891 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_ids_update_model202110.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalStoreIdsUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'store_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'store_ids': 'storeIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, store_ids, *args, **kwargs): # noqa: E501 + """ExternalStoreIdsUpdateModel202110 - a model defined in OpenAPI + + Args: + store_ids ([str]): Store ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.store_ids = store_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, store_ids, *args, **kwargs): # noqa: E501 + """ExternalStoreIdsUpdateModel202110 - a model defined in OpenAPI + + Args: + store_ids ([str]): Store ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.store_ids = store_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_target202110.py new file mode 100644 index 00000000..b84063d0 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/external_store_target202110.py @@ -0,0 +1,280 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ExternalStoreTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('scope',): { + 'UNKNOWN': "unknown", + 'INCLUDE': "include", + 'EXCLUDE': "exclude", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'scope': (str,), # noqa: E501 + 'store_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'scope': 'scope', # noqa: E501 + 'store_ids': 'storeIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, scope, store_ids, *args, **kwargs): # noqa: E501 + """ExternalStoreTarget202110 - a model defined in OpenAPI + + Args: + scope (str): Scope of the store target + store_ids ([str]): Store ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.scope = scope + self.store_ids = store_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, scope, store_ids, *args, **kwargs): # noqa: E501 + """ExternalStoreTarget202110 - a model defined in OpenAPI + + Args: + scope (str): Scope of the store target + store_ids ([str]): Store ids that should be targeted + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.scope = scope + self.store_ids = store_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variable_value.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variable_value.py new file mode 100644 index 00000000..b47ce7f4 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variable_value.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class FilesVariableValue(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('asset_ids',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'asset_ids': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'asset_ids': 'assetIds', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, asset_ids, *args, **kwargs): # noqa: E501 + """FilesVariableValue - a model defined in OpenAPI + + Args: + asset_ids ([str]): The assets representing the images to be displayed + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.asset_ids = asset_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, asset_ids, *args, **kwargs): # noqa: E501 + """FilesVariableValue - a model defined in OpenAPI + + Args: + asset_ids ([str]): The assets representing the images to be displayed + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.asset_ids = asset_ids + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variables_specification.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variables_specification.py new file mode 100644 index 00000000..94575228 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/files_variables_specification.py @@ -0,0 +1,290 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class FilesVariablesSpecification(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('extensions',): { + 'UNKNOWN': "Unknown", + 'JPEG': "Jpeg", + 'PNG': "Png", + 'GIF': "Gif", + 'PDF': "Pdf", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'extensions': ([str],), # noqa: E501 + 'min_files': (int, none_type,), # noqa: E501 + 'max_bytes': (int, none_type,), # noqa: E501 + 'max_file': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'extensions': 'extensions', # noqa: E501 + 'min_files': 'minFiles', # noqa: E501 + 'max_bytes': 'maxBytes', # noqa: E501 + 'max_file': 'maxFile', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, extensions, min_files, *args, **kwargs): # noqa: E501 + """FilesVariablesSpecification - a model defined in OpenAPI + + Args: + extensions ([str]): The accepted file extensions + min_files (int, none_type): The minimum amount of files requires + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + max_bytes (int, none_type): The maximum amount of bytes per file. [optional] # noqa: E501 + max_file (int, none_type): The maximum amount of files required. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.extensions = extensions + self.min_files = min_files + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, extensions, min_files, *args, **kwargs): # noqa: E501 + """FilesVariablesSpecification - a model defined in OpenAPI + + Args: + extensions ([str]): The accepted file extensions + min_files (int, none_type): The minimum amount of files requires + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + max_bytes (int, none_type): The maximum amount of bytes per file. [optional] # noqa: E501 + max_file (int, none_type): The maximum amount of files required. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.extensions = extensions + self.min_files = min_files + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py new file mode 100644 index 00000000..985e0665 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py @@ -0,0 +1,295 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.retail_media_audience import RetailMediaAudience + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['PageMetadata'] = PageMetadata + globals()['RetailMediaAudience'] = RetailMediaAudience + + +class GetPageOfAudiencesByAccountIdResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([RetailMediaAudience],), # noqa: E501 + 'metadata': (PageMetadata,), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'data', # noqa: E501 + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501 + """GetPageOfAudiencesByAccountIdResponse - a model defined in OpenAPI + + Args: + data ([RetailMediaAudience]): data + metadata (PageMetadata): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): errors. [optional] # noqa: E501 + warnings ([CommonWarning]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.metadata = metadata + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, metadata, *args, **kwargs): # noqa: E501 + """GetPageOfAudiencesByAccountIdResponse - a model defined in OpenAPI + + metadata (PageMetadata): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): errors. [optional] # noqa: E501 + warnings ([CommonWarning]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.metadata = metadata + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/hyperlink_variable_value.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/hyperlink_variable_value.py new file mode 100644 index 00000000..178a50e0 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/hyperlink_variable_value.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class HyperlinkVariableValue(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'url': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'url': 'url', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, url, *args, **kwargs): # noqa: E501 + """HyperlinkVariableValue - a model defined in OpenAPI + + Args: + url (str): The url to redirect to + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, url, *args, **kwargs): # noqa: E501 + """HyperlinkVariableValue - a model defined in OpenAPI + + Args: + url (str): The url to redirect to + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.url = url + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_auction_line_item_create_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_auction_line_item_create_model.py new file mode 100644 index 00000000..553eb0ac --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_auction_line_item_create_model.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel + globals()['ExternalAuctionLineItemCreateModel'] = ExternalAuctionLineItemCreateModel + + +class InputResourceOfAuctionLineItemCreateModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAuctionLineItemCreateModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InputResourceOfAuctionLineItemCreateModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAuctionLineItemCreateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InputResourceOfAuctionLineItemCreateModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAuctionLineItemCreateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_preferred_line_item_create_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_preferred_line_item_create_model202110.py new file mode 100644 index 00000000..2a8ce454 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/input_resource_of_preferred_line_item_create_model202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 + globals()['ExternalPreferredLineItemCreateModel202110'] = ExternalPreferredLineItemCreateModel202110 + + +class InputResourceOfPreferredLineItemCreateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalPreferredLineItemCreateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """InputResourceOfPreferredLineItemCreateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalPreferredLineItemCreateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """InputResourceOfPreferredLineItemCreateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalPreferredLineItemCreateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py new file mode 100644 index 00000000..03f41784 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 + globals()['EditableCampaignAttributesV202301'] = EditableCampaignAttributesV202301 + + +class JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (EditableCampaignAttributesV202301,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (EditableCampaignAttributesV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (EditableCampaignAttributesV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_account_and_account.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_account_and_account.py new file mode 100644 index 00000000..1264fc76 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_account import ExternalAccount + globals()['ExternalAccount'] = ExternalAccount + + +class JsonApiBodyWithIdOfInt64AndAccountAndAccount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAccount,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndAccountAndAccount - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalAccount): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndAccountAndAccount - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalAccount): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py new file mode 100644 index 00000000..d40bec2f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_brand import ExternalBrand + globals()['ExternalBrand'] = ExternalBrand + + +class JsonApiBodyWithIdOfInt64AndBrandAndBrand(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalBrand,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndBrandAndBrand - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalBrand): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndBrandAndBrand - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalBrand): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py new file mode 100644 index 00000000..de63708b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.campaign_v202301 import CampaignV202301 + globals()['CampaignV202301'] = CampaignV202301 + + +class JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (CampaignV202301,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CampaignV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CampaignV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py new file mode 100644 index 00000000..c0a908ad --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_catalog_status import ExternalCatalogStatus + globals()['ExternalCatalogStatus'] = ExternalCatalogStatus + + +class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalCatalogStatus,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalCatalogStatus): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalCatalogStatus): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py new file mode 100644 index 00000000..266e6bb0 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers import LineItemBidMultipliers + globals()['LineItemBidMultipliers'] = LineItemBidMultipliers + + +class JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (LineItemBidMultipliers,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (LineItemBidMultipliers): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (LineItemBidMultipliers): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py new file mode 100644 index 00000000..64cf2bf0 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_retailer import ExternalRetailer + globals()['ExternalRetailer'] = ExternalRetailer + + +class JsonApiBodyWithIdOfInt64AndRetailerAndRetailer(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalRetailer,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndRetailerAndRetailer - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalRetailer): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithIdOfInt64AndRetailerAndRetailer - a model defined in OpenAPI + + Args: + id (str): + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalRetailer): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py new file mode 100644 index 00000000..7453ee45 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.campaign_attributes_v202301 import CampaignAttributesV202301 + globals()['CampaignAttributesV202301'] = CampaignAttributesV202301 + + +class JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (CampaignAttributesV202301,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CampaignAttributesV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (CampaignAttributesV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py new file mode 100644 index 00000000..03fa334a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_catalog_request import ExternalCatalogRequest + globals()['ExternalCatalogRequest'] = ExternalCatalogRequest + + +class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalCatalogRequest,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalCatalogRequest): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, *args, **kwargs): # noqa: E501 + """JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalCatalogRequest): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py new file mode 100644 index 00000000..12108302 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndAccountAndAccount'] = JsonApiBodyWithIdOfInt64AndAccountAndAccount + globals()['PageMetadata'] = PageMetadata + + +class JsonApiPageResponseOfAccount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([JsonApiBodyWithIdOfInt64AndAccountAndAccount],), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + 'metadata': (PageMetadata,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfAccount - a model defined in OpenAPI + + Args: + data ([JsonApiBodyWithIdOfInt64AndAccountAndAccount]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + metadata (PageMetadata): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfAccount - a model defined in OpenAPI + + Args: + data ([JsonApiBodyWithIdOfInt64AndAccountAndAccount]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + metadata (PageMetadata): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py new file mode 100644 index 00000000..86a96b1e --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndBrandAndBrand'] = JsonApiBodyWithIdOfInt64AndBrandAndBrand + globals()['PageMetadata'] = PageMetadata + + +class JsonApiPageResponseOfBrand(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([JsonApiBodyWithIdOfInt64AndBrandAndBrand],), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + 'metadata': (PageMetadata,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfBrand - a model defined in OpenAPI + + Args: + data ([JsonApiBodyWithIdOfInt64AndBrandAndBrand]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + metadata (PageMetadata): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfBrand - a model defined in OpenAPI + + Args: + data ([JsonApiBodyWithIdOfInt64AndBrandAndBrand]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + metadata (PageMetadata): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_campaign_v202301.py new file mode 100644 index 00000000..e6d62029 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_campaign_v202301.py @@ -0,0 +1,295 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301 import JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301'] = JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 + globals()['PageMetadata'] = PageMetadata + + +class JsonApiPageResponseOfCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301],), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, metadata, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfCampaignV202301 - a model defined in OpenAPI + + Args: + metadata (PageMetadata): + data ([JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.metadata = metadata + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, metadata, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfCampaignV202301 - a model defined in OpenAPI + + Args: + metadata (PageMetadata): + data ([JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.metadata = metadata + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py new file mode 100644 index 00000000..b2d60ba8 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndRetailerAndRetailer'] = JsonApiBodyWithIdOfInt64AndRetailerAndRetailer + globals()['PageMetadata'] = PageMetadata + + +class JsonApiPageResponseOfRetailer(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([JsonApiBodyWithIdOfInt64AndRetailerAndRetailer],), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + 'metadata': (PageMetadata,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfRetailer - a model defined in OpenAPI + + Args: + data ([JsonApiBodyWithIdOfInt64AndRetailerAndRetailer]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + metadata (PageMetadata): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiPageResponseOfRetailer - a model defined in OpenAPI + + Args: + data ([JsonApiBodyWithIdOfInt64AndRetailerAndRetailer]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + metadata (PageMetadata): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_request_of_catalog_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_request_of_catalog_request.py new file mode 100644 index 00000000..96e8b136 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_request_of_catalog_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest + globals()['JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest'] = JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest + + +class JsonApiRequestOfCatalogRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """JsonApiRequestOfCatalogRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """JsonApiRequestOfCatalogRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_campaign_v202301.py new file mode 100644 index 00000000..2db9760c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_campaign_v202301.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301 import JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301'] = JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 + + +class JsonApiSingleResponseOfCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301,), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiSingleResponseOfCampaignV202301 - a model defined in OpenAPI + + Args: + data (JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiSingleResponseOfCampaignV202301 - a model defined in OpenAPI + + Args: + data (JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_catalog_status.py new file mode 100644 index 00000000..88f6759a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_catalog_status.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus'] = JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus + + +class JsonApiSingleResponseOfCatalogStatus(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus,), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiSingleResponseOfCatalogStatus - a model defined in OpenAPI + + Args: + data (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiSingleResponseOfCatalogStatus - a model defined in OpenAPI + + Args: + data (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_line_item_bid_multipliers.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_line_item_bid_multipliers.py new file mode 100644 index 00000000..634e2ff5 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_line_item_bid_multipliers.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_error import CommonError + from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers import JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers + globals()['CommonError'] = CommonError + globals()['CommonWarning'] = CommonWarning + globals()['JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers'] = JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers + + +class JsonApiSingleResponseOfLineItemBidMultipliers(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers,), # noqa: E501 + 'errors': ([CommonError],), # noqa: E501 + 'warnings': ([CommonWarning],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 + """JsonApiSingleResponseOfLineItemBidMultipliers - a model defined in OpenAPI + + Args: + data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, data, *args, **kwargs): # noqa: E501 + """JsonApiSingleResponseOfLineItemBidMultipliers - a model defined in OpenAPI + + Args: + data (JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonError]): [optional] # noqa: E501 + warnings ([CommonWarning]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_request.py new file mode 100644 index 00000000..8953f8bd --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 + globals()['ValueTypeResourceOfKeywordTarget202110'] = ValueTypeResourceOfKeywordTarget202110 + + +class KeywordTarget202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfKeywordTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """KeywordTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfKeywordTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """KeywordTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfKeywordTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_response.py new file mode 100644 index 00000000..db1b1c98 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/keyword_target202110_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 + globals()['ProblemDetails'] = ProblemDetails + globals()['ValueTypeResourceOfKeywordTarget202110'] = ValueTypeResourceOfKeywordTarget202110 + + +class KeywordTarget202110Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfKeywordTarget202110,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """KeywordTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfKeywordTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """KeywordTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfKeywordTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers.py new file mode 100644 index 00000000..42b55dc2 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class LineItemBidMultipliers(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'search': (float,), # noqa: E501 + 'homepage': (float,), # noqa: E501 + 'categories': (float,), # noqa: E501 + 'product_detail': (float,), # noqa: E501 + 'confirmation': (float,), # noqa: E501 + 'merchandising': (float,), # noqa: E501 + 'deals': (float,), # noqa: E501 + 'checkout': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'search': 'search', # noqa: E501 + 'homepage': 'homepage', # noqa: E501 + 'categories': 'categories', # noqa: E501 + 'product_detail': 'productDetail', # noqa: E501 + 'confirmation': 'confirmation', # noqa: E501 + 'merchandising': 'merchandising', # noqa: E501 + 'deals': 'deals', # noqa: E501 + 'checkout': 'checkout', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LineItemBidMultipliers - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + search (float): [optional] # noqa: E501 + homepage (float): [optional] # noqa: E501 + categories (float): [optional] # noqa: E501 + product_detail (float): [optional] # noqa: E501 + confirmation (float): [optional] # noqa: E501 + merchandising (float): [optional] # noqa: E501 + deals (float): [optional] # noqa: E501 + checkout (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LineItemBidMultipliers - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + search (float): [optional] # noqa: E501 + homepage (float): [optional] # noqa: E501 + categories (float): [optional] # noqa: E501 + product_detail (float): [optional] # noqa: E501 + confirmation (float): [optional] # noqa: E501 + merchandising (float): [optional] # noqa: E501 + deals (float): [optional] # noqa: E501 + checkout (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_request.py new file mode 100644 index 00000000..f5c9bd4c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers + globals()['ResourceOfLineItemBidMultipliers'] = ResourceOfLineItemBidMultipliers + + +class LineItemBidMultipliersRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfLineItemBidMultipliers,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LineItemBidMultipliersRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LineItemBidMultipliersRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_response.py new file mode 100644 index 00000000..94f81a5c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfLineItemBidMultipliers'] = ResourceOfLineItemBidMultipliers + + +class LineItemBidMultipliersResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfLineItemBidMultipliers,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LineItemBidMultipliersResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LineItemBidMultipliersResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfLineItemBidMultipliers): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report.py new file mode 100644 index 00000000..a727c04b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report.py @@ -0,0 +1,383 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class LineItemReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('report_type',): { + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + }, + ('metrics',): { + 'IMPRESSIONS': "impressions", + 'CLICKS': "clicks", + 'SPEND': "spend", + 'ATTRIBUTEDSALES': "attributedSales", + 'ATTRIBUTEDUNITS': "attributedUnits", + 'ATTRIBUTEDORDERS': "attributedOrders", + 'CTR': "ctr", + 'CPC': "cpc", + 'CPO': "cpo", + 'ROAS': "roas", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", + 'UNIQUEVISITORS': "uniqueVisitors", + 'FREQUENCY': "frequency", + }, + ('dimensions',): { + 'DATE': "date", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'LINEITEMID': "lineItemId", + 'LINEITEMNAME': "lineItemName", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", + 'KEYWORD': "keyword", + 'PAGETYPENAME': "pageTypeName", + 'SALESCHANNEL': "salesChannel", + }, + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('campaign_type',): { + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_id': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'report_type': (str,), # noqa: E501 + 'line_item_ids': ([str],), # noqa: E501 + 'campaign_ids': ([str],), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_id': 'accountId', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'line_item_ids': 'lineItemIds', # noqa: E501 + 'campaign_ids': 'campaignIds', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): # noqa: E501 + """LineItemReport - a model defined in OpenAPI + + Args: + account_id (str): + start_date (datetime): + end_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 + line_item_ids ([str]): [optional] # noqa: E501 + campaign_ids ([str]): [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: E501 + """LineItemReport - a model defined in OpenAPI + + Args: + account_id (str): + start_date (datetime): + end_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 + line_item_ids ([str]): [optional] # noqa: E501 + campaign_ids ([str]): [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_request.py new file mode 100644 index 00000000..1b77884d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.line_item_report_resource import LineItemReportResource + globals()['LineItemReportResource'] = LineItemReportResource + + +class LineItemReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (LineItemReportResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LineItemReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (LineItemReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LineItemReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (LineItemReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_resource.py new file mode 100644 index 00000000..ac519043 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/line_item_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.line_item_report import LineItemReport + globals()['LineItemReport'] = LineItemReport + + +class LineItemReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (LineItemReport,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LineItemReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (LineItemReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LineItemReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (LineItemReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_metadata.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_metadata.py new file mode 100644 index 00000000..1740b192 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_metadata.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class PageMetadata(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'current_page_size': (int,), # noqa: E501 + 'current_page_index': (int,), # noqa: E501 + 'total_items_across_all_pages': (int, none_type,), # noqa: E501 + 'total_pages': (int, none_type,), # noqa: E501 + 'next_page': (str,), # noqa: E501 + 'previous_page': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'current_page_size': 'currentPageSize', # noqa: E501 + 'current_page_index': 'currentPageIndex', # noqa: E501 + 'total_items_across_all_pages': 'totalItemsAcrossAllPages', # noqa: E501 + 'total_pages': 'totalPages', # noqa: E501 + 'next_page': 'nextPage', # noqa: E501 + 'previous_page': 'previousPage', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, current_page_size, current_page_index, *args, **kwargs): # noqa: E501 + """PageMetadata - a model defined in OpenAPI + + Args: + current_page_size (int): + current_page_index (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + total_items_across_all_pages (int, none_type): [optional] # noqa: E501 + total_pages (int, none_type): [optional] # noqa: E501 + next_page (str): [optional] # noqa: E501 + previous_page (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.current_page_size = current_page_size + self.current_page_index = current_page_index + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, current_page_size, current_page_index, *args, **kwargs): # noqa: E501 + """PageMetadata - a model defined in OpenAPI + + Args: + current_page_size (int): + current_page_index (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + total_items_across_all_pages (int, none_type): [optional] # noqa: E501 + total_pages (int, none_type): [optional] # noqa: E501 + next_page (str): [optional] # noqa: E501 + previous_page (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.current_page_size = current_page_size + self.current_page_index = current_page_index + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_type_environment.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_type_environment.py new file mode 100644 index 00000000..df204cc5 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/page_type_environment.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class PageTypeEnvironment(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('page_type',): { + 'SEARCH': "Search", + 'HOME': "Home", + 'BROWSE': "Browse", + 'CHECKOUT': "Checkout", + 'CATEGORY': "Category", + 'PRODUCTDETAIL': "ProductDetail", + 'CONFIRMATION': "Confirmation", + 'MERCHANDISING': "Merchandising", + 'DEALS': "Deals", + }, + ('environments',): { + 'WEB': "Web", + 'MOBILE': "Mobile", + 'APP': "App", + 'LOCKOUT': "Lockout", + 'MIXED': "Mixed", + 'IOS': "iOS", + 'ANDROID': "Android", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'page_type': (str,), # noqa: E501 + 'environments': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'page_type': 'pageType', # noqa: E501 + 'environments': 'environments', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PageTypeEnvironment - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + page_type (str): Creative PageType. [optional] # noqa: E501 + environments ([str]): List of environments per PageType. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PageTypeEnvironment - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + page_type (str): Creative PageType. [optional] # noqa: E501 + environments ([str]): List of environments per PageType. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/post_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/post_campaign_v202301.py new file mode 100644 index 00000000..61292e9f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/post_campaign_v202301.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 + globals()['JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301'] = JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 + + +class PostCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PostCampaignV202301 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PostCampaignV202301 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_paged_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_paged_list_response.py new file mode 100644 index 00000000..e68ba628 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 + globals()['PageMetadata'] = PageMetadata + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfPreferredLineItem202110'] = ResourceOfPreferredLineItem202110 + + +class PreferredLineItem202110PagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfPreferredLineItem202110],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PreferredLineItem202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfPreferredLineItem202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PreferredLineItem202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfPreferredLineItem202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_response.py new file mode 100644 index 00000000..1b318de8 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item202110_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfPreferredLineItem202110'] = ResourceOfPreferredLineItem202110 + + +class PreferredLineItem202110Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfPreferredLineItem202110,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PreferredLineItem202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfPreferredLineItem202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PreferredLineItem202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfPreferredLineItem202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_create_model202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_create_model202110_request.py new file mode 100644 index 00000000..d0f76b38 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_create_model202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 + globals()['InputResourceOfPreferredLineItemCreateModel202110'] = InputResourceOfPreferredLineItemCreateModel202110 + + +class PreferredLineItemCreateModel202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (InputResourceOfPreferredLineItemCreateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PreferredLineItemCreateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (InputResourceOfPreferredLineItemCreateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PreferredLineItemCreateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (InputResourceOfPreferredLineItemCreateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_update_model202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_update_model202110_request.py new file mode 100644 index 00000000..1dd74623 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/preferred_line_item_update_model202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 + globals()['ResourceOfPreferredLineItemUpdateModel202110'] = ResourceOfPreferredLineItemUpdateModel202110 + + +class PreferredLineItemUpdateModel202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfPreferredLineItemUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PreferredLineItemUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfPreferredLineItemUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PreferredLineItemUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfPreferredLineItemUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/problem_details.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/problem_details.py new file mode 100644 index 00000000..50267102 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/problem_details.py @@ -0,0 +1,305 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ProblemDetails(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'UNKNOWN': "unknown", + 'ACCESS-CONTROL': "access-control", + 'AUTHENTICATION': "authentication", + 'AUTHORIZATION': "authorization", + 'AVAILABILITY': "availability", + 'DEPRECATION': "deprecation", + 'QUOTA': "quota", + 'VALIDATION': "validation", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_id': (str,), # noqa: E501 + 'trace_identifier': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_id': 'traceId', # noqa: E501 + 'trace_identifier': 'traceIdentifier', # noqa: E501 + 'type': 'type', # noqa: E501 + 'code': 'code', # noqa: E501 + 'instance': 'instance', # noqa: E501 + 'title': 'title', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ProblemDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): The problem's category.. [optional] # noqa: E501 + code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): Technical information, only used in non-prod environments. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ProblemDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_id (str): The request correlation ID this problem comes from.. [optional] # noqa: E501 + trace_identifier (str): The request correlation ID this problem comes from. (deprecated, use traceId instead). [optional] # noqa: E501 + type (str): The problem's category.. [optional] # noqa: E501 + code (str): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501 + instance (str): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501 + title (str): A short human-readable description of the problem type. [optional] # noqa: E501 + detail (str): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501 + source ({str: (str,)}): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501 + stack_trace (str): Technical information, only used in non-prod environments. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_list_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_list_request.py new file mode 100644 index 00000000..b40ed3be --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_list_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 + globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 + + +class PromotedProduct202110ListRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ResourceOfPromotedProduct202110],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PromotedProduct202110ListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PromotedProduct202110ListRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_paged_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_paged_list_response.py new file mode 100644 index 00000000..5118e07a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/promoted_product202110_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 + globals()['PageMetadata'] = PageMetadata + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfPromotedProduct202110'] = ResourceOfPromotedProduct202110 + + +class PromotedProduct202110PagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfPromotedProduct202110],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PromotedProduct202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PromotedProduct202110PagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfPromotedProduct202110]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/put_campaign_v202301.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/put_campaign_v202301.py new file mode 100644 index 00000000..fd2f08fc --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/put_campaign_v202301.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 + globals()['JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301'] = JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 + + +class PutCampaignV202301(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PutCampaignV202301 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PutCampaignV202301 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_data_response_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_data_response_resource.py new file mode 100644 index 00000000..aa391a22 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_data_response_resource.py @@ -0,0 +1,267 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ReportDataResponseResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'type': (str,), # noqa: E501 + 'attributes': ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReportDataResponseResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReportDataResponseResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_outcome.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_outcome.py new file mode 100644 index 00000000..90b2ddbb --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_outcome.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + globals()['CommonProblem'] = CommonProblem + + +class ReportOutcome(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReportOutcome - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReportOutcome - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_response.py new file mode 100644 index 00000000..24dfa809 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/report_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_07.model.export_report_meta_data import ExportReportMetaData + from criteo_api_retailmedia_v2023_07.model.report_data_response_resource import ReportDataResponseResource + globals()['CommonProblem'] = CommonProblem + globals()['ExportReportMetaData'] = ExportReportMetaData + globals()['ReportDataResponseResource'] = ReportDataResponseResource + + +class ReportResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'meta': (ExportReportMetaData,), # noqa: E501 + 'data': (ReportDataResponseResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'meta': 'meta', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ReportResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + meta (ExportReportMetaData): [optional] # noqa: E501 + data (ReportDataResponseResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ReportResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + meta (ExportReportMetaData): [optional] # noqa: E501 + data (ReportDataResponseResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item.py new file mode 100644 index 00000000..2e3bb0d2 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_auction_line_item import ExternalAuctionLineItem + globals()['ExternalAuctionLineItem'] = ExternalAuctionLineItem + + +class ResourceOfAuctionLineItem(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAuctionLineItem,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfAuctionLineItem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalAuctionLineItem): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfAuctionLineItem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalAuctionLineItem): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item_update_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item_update_model.py new file mode 100644 index 00000000..d34e0f5b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_auction_line_item_update_model.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel + globals()['ExternalAuctionLineItemUpdateModel'] = ExternalAuctionLineItemUpdateModel + + +class ResourceOfAuctionLineItemUpdateModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAuctionLineItemUpdateModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfAuctionLineItemUpdateModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalAuctionLineItemUpdateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfAuctionLineItemUpdateModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalAuctionLineItemUpdateModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance202110.py new file mode 100644 index 00000000..23189475 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance202110.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_balance202110 import ExternalBalance202110 + globals()['ExternalBalance202110'] = ExternalBalance202110 + + +class ResourceOfBalance202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalBalance202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfBalance202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalBalance202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfBalance202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalBalance202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance_campaign202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance_campaign202110.py new file mode 100644 index 00000000..e75ce65e --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_balance_campaign202110.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class ResourceOfBalanceCampaign202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfBalanceCampaign202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Campaigns related to the balance. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfBalanceCampaign202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Campaigns related to the balance. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_category202204.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_category202204.py new file mode 100644 index 00000000..e65c1c6f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_category202204.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.category202204 import Category202204 + globals()['Category202204'] = Category202204 + + +class ResourceOfCategory202204(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Category202204,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfCategory202204 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Category202204): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfCategory202204 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Category202204): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_common_line_item.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_common_line_item.py new file mode 100644 index 00000000..991e85e1 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_common_line_item.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_common_line_item import ExternalCommonLineItem + globals()['ExternalCommonLineItem'] = ExternalCommonLineItem + + +class ResourceOfCommonLineItem(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalCommonLineItem,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfCommonLineItem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalCommonLineItem): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfCommonLineItem - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalCommonLineItem): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202110.py new file mode 100644 index 00000000..e25e8a1c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202110.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.creative202110 import Creative202110 + globals()['Creative202110'] = Creative202110 + + +class ResourceOfCreative202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (Creative202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfCreative202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (Creative202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfCreative202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (Creative202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202210.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202210.py new file mode 100644 index 00000000..1b704509 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_creative202210.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.creative202210 import Creative202210 + globals()['Creative202210'] = Creative202210 + + +class ResourceOfCreative202210(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Creative202210,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfCreative202210 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Creative202210): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfCreative202210 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Creative202210): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_line_item_bid_multipliers.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_line_item_bid_multipliers.py new file mode 100644 index 00000000..a8307eda --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_line_item_bid_multipliers.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers import LineItemBidMultipliers + globals()['LineItemBidMultipliers'] = LineItemBidMultipliers + + +class ResourceOfLineItemBidMultipliers(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (LineItemBidMultipliers,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfLineItemBidMultipliers - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (LineItemBidMultipliers): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfLineItemBidMultipliers - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (LineItemBidMultipliers): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item202110.py new file mode 100644 index 00000000..f381282d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item202110.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 + globals()['ExternalPreferredLineItem202110'] = ExternalPreferredLineItem202110 + + +class ResourceOfPreferredLineItem202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalPreferredLineItem202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfPreferredLineItem202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalPreferredLineItem202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfPreferredLineItem202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalPreferredLineItem202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item_update_model202110.py new file mode 100644 index 00000000..a0a21d54 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_preferred_line_item_update_model202110.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 + globals()['ExternalPreferredLineItemUpdateModel202110'] = ExternalPreferredLineItemUpdateModel202110 + + +class ResourceOfPreferredLineItemUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalPreferredLineItemUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfPreferredLineItemUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalPreferredLineItemUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfPreferredLineItemUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalPreferredLineItemUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_promoted_product202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_promoted_product202110.py new file mode 100644 index 00000000..a335247e --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_promoted_product202110.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_promoted_product202110 import ExternalPromotedProduct202110 + globals()['ExternalPromotedProduct202110'] = ExternalPromotedProduct202110 + + +class ResourceOfPromotedProduct202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (ExternalPromotedProduct202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfPromotedProduct202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalPromotedProduct202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfPromotedProduct202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + attributes (ExternalPromotedProduct202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_template.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_template.py new file mode 100644 index 00000000..58e49cb4 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/resource_of_template.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.template import Template + globals()['Template'] = Template + + +class ResourceOfTemplate(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (Template,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfTemplate - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Template): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfTemplate - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (Template): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience.py new file mode 100644 index 00000000..5e404325 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience.py @@ -0,0 +1,297 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_audience_attributes import RetailMediaAudienceAttributes + globals()['RetailMediaAudienceAttributes'] = RetailMediaAudienceAttributes + + +class RetailMediaAudience(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('audience_type',): { + 'CUSTOMERLIST': "customerList", + 'USERBEHAVIOR': "userBehavior", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'audience_type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'attributes': (RetailMediaAudienceAttributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'audience_type': 'audienceType', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, audience_type, id, type, attributes, *args, **kwargs): # noqa: E501 + """RetailMediaAudience - a model defined in OpenAPI + + Args: + audience_type (str): Type of the audience + id (str): Unique ID of this audience. + type (str): Name of the entity i.e. RetailMediaAudienceSummary + attributes (RetailMediaAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.audience_type = audience_type + self.id = id + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, audience_type, id, type, attributes, *args, **kwargs): # noqa: E501 + """RetailMediaAudience - a model defined in OpenAPI + + Args: + audience_type (str): Type of the audience + id (str): Unique ID of this audience. + type (str): Name of the entity i.e. RetailMediaAudienceSummary + attributes (RetailMediaAudienceAttributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.audience_type = audience_type + self.id = id + self.type = type + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_attributes.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_attributes.py new file mode 100644 index 00000000..51822dff --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_attributes.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.customer_list_details import CustomerListDetails + from criteo_api_retailmedia_v2023_07.model.user_behavior_details import UserBehaviorDetails + globals()['CustomerListDetails'] = CustomerListDetails + globals()['UserBehaviorDetails'] = UserBehaviorDetails + + +class RetailMediaAudienceAttributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'retailer_id': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'user_behavior_details': (UserBehaviorDetails,), # noqa: E501 + 'customer_list_details': (CustomerListDetails,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'retailer_id': 'retailerId', # noqa: E501 + 'name': 'name', # noqa: E501 + 'user_behavior_details': 'userBehaviorDetails', # noqa: E501 + 'customer_list_details': 'customerListDetails', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceAttributes - a model defined in OpenAPI + + Args: + retailer_id (str): ID of the retailer associated with this audience + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + user_behavior_details (UserBehaviorDetails): [optional] # noqa: E501 + customer_list_details (CustomerListDetails): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceAttributes - a model defined in OpenAPI + + Args: + retailer_id (str): ID of the retailer associated with this audience + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + user_behavior_details (UserBehaviorDetails): [optional] # noqa: E501 + customer_list_details (CustomerListDetails): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2.py new file mode 100644 index 00000000..bba013b5 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes + globals()['RetailMediaAudienceV2Attributes'] = RetailMediaAudienceV2Attributes + + +class RetailMediaAudienceV2(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'CUSTOMERLIST': "customerList", + 'USERBEHAVIOR': "userBehavior", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (RetailMediaAudienceV2Attributes,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, id, attributes, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2 - a model defined in OpenAPI + + Args: + type (str): Type of the audience + id (str): Unique ID of this audience. + attributes (RetailMediaAudienceV2Attributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.id = id + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, id, attributes, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2 - a model defined in OpenAPI + + Args: + type (str): Type of the audience + id (str): Unique ID of this audience. + attributes (RetailMediaAudienceV2Attributes): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + self.id = id + self.attributes = attributes + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_attributes.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_attributes.py new file mode 100644 index 00000000..07c39ffb --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_attributes.py @@ -0,0 +1,291 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.customer_list_details import CustomerListDetails + from criteo_api_retailmedia_v2023_07.model.user_behavior_details_v2 import UserBehaviorDetailsV2 + globals()['CustomerListDetails'] = CustomerListDetails + globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2 + + +class RetailMediaAudienceV2Attributes(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'retailer_id': (int,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 + 'customer_list_details': (CustomerListDetails,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'retailer_id': 'retailerId', # noqa: E501 + 'name': 'name', # noqa: E501 + 'user_behavior_details': 'userBehaviorDetails', # noqa: E501 + 'customer_list_details': 'customerListDetails', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2Attributes - a model defined in OpenAPI + + Args: + retailer_id (int): ID of the retailer associated with this audience + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501 + customer_list_details (CustomerListDetails): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2Attributes - a model defined in OpenAPI + + Args: + retailer_id (int): ID of the retailer associated with this audience + name (str): Name of the audience. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501 + customer_list_details (CustomerListDetails): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.retailer_id = retailer_id + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_list_response.py new file mode 100644 index 00000000..dc6ff1f2 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_list_response.py @@ -0,0 +1,293 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata + from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2 import RetailMediaAudienceV2 + globals()['CommonProblem'] = CommonProblem + globals()['PageMetadata'] = PageMetadata + globals()['RetailMediaAudienceV2'] = RetailMediaAudienceV2 + + +class RetailMediaAudienceV2ListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([RetailMediaAudienceV2],), # noqa: E501 + 'metadata': (PageMetadata,), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'metadata': 'metadata', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'data', # noqa: E501 + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, data, metadata, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI + + Args: + data ([RetailMediaAudienceV2]): data + metadata (PageMetadata): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonProblem]): errors. [optional] # noqa: E501 + warnings ([CommonProblem]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.data = data + self.metadata = metadata + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, metadata, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2ListResponse - a model defined in OpenAPI + + metadata (PageMetadata): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([CommonProblem]): errors. [optional] # noqa: E501 + warnings ([CommonProblem]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.metadata = metadata + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_response.py new file mode 100644 index 00000000..532e2f55 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_audience_v2_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem + from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2 + globals()['CommonProblem'] = CommonProblem + globals()['CreateRetailMediaAudienceV2'] = CreateRetailMediaAudienceV2 + + +class RetailMediaAudienceV2Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (CreateRetailMediaAudienceV2,), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateRetailMediaAudienceV2): [optional] # noqa: E501 + errors ([CommonProblem]): errors. [optional] # noqa: E501 + warnings ([CommonProblem]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaAudienceV2Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (CreateRetailMediaAudienceV2): [optional] # noqa: E501 + errors ([CommonProblem]): errors. [optional] # noqa: E501 + warnings ([CommonProblem]): warnings. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keyword_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keyword_model.py new file mode 100644 index 00000000..bb916a81 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keyword_model.py @@ -0,0 +1,280 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class RetailMediaExternalv1AddRemoveKeywordModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('match_type',): { + 'POSITIVEEXACTMATCH': "PositiveExactMatch", + 'NEGATIVEEXACTMATCH': "NegativeExactMatch", + 'NEGATIVEBROADMATCH': "NegativeBroadMatch", + }, + } + + validations = { + ('phrase',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'phrase': (str,), # noqa: E501 + 'match_type': (str,), # noqa: E501 + 'is_deleted': (bool,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'phrase': 'phrase', # noqa: E501 + 'match_type': 'matchType', # noqa: E501 + 'is_deleted': 'isDeleted', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + phrase (str): [optional] # noqa: E501 + match_type (str): [optional] # noqa: E501 + is_deleted (bool): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + phrase (str): [optional] # noqa: E501 + match_type (str): [optional] # noqa: E501 + is_deleted (bool): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model.py new file mode 100644 index 00000000..3178e94b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel + globals()['RetailMediaExternalv1AddRemoveKeywordModel'] = RetailMediaExternalv1AddRemoveKeywordModel + + +class RetailMediaExternalv1AddRemoveKeywordsModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('keywords',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'keywords': ([RetailMediaExternalv1AddRemoveKeywordModel],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'keywords': 'keywords', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + keywords ([RetailMediaExternalv1AddRemoveKeywordModel]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + keywords ([RetailMediaExternalv1AddRemoveKeywordModel]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_request.py new file mode 100644 index 00000000..2050a43d --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model_resource import RetailMediaExternalv1AddRemoveKeywordsModelResource + globals()['RetailMediaExternalv1AddRemoveKeywordsModelResource'] = RetailMediaExternalv1AddRemoveKeywordsModelResource + + +class RetailMediaExternalv1AddRemoveKeywordsModelRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (RetailMediaExternalv1AddRemoveKeywordsModelResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordsModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1AddRemoveKeywordsModelResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordsModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1AddRemoveKeywordsModelResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_resource.py new file mode 100644 index 00000000..a9b76a79 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_add_remove_keywords_model_resource.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel + globals()['RetailMediaExternalv1AddRemoveKeywordsModel'] = RetailMediaExternalv1AddRemoveKeywordsModel + + +class RetailMediaExternalv1AddRemoveKeywordsModelResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (RetailMediaExternalv1AddRemoveKeywordsModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordsModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1AddRemoveKeywordsModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1AddRemoveKeywordsModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1AddRemoveKeywordsModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_input_keywords_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_input_keywords_model.py new file mode 100644 index 00000000..3bf4c14c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_input_keywords_model.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class RetailMediaExternalv1InputKeywordsModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('negative_broad',): { + }, + ('negative_exact',): { + }, + ('positive_exact',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'negative_broad': ([str],), # noqa: E501 + 'negative_exact': ([str],), # noqa: E501 + 'positive_exact': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'negative_broad': 'negativeBroad', # noqa: E501 + 'negative_exact': 'negativeExact', # noqa: E501 + 'positive_exact': 'positiveExact', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1InputKeywordsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + negative_broad ([str]): [optional] # noqa: E501 + negative_exact ([str]): [optional] # noqa: E501 + positive_exact ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1InputKeywordsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + negative_broad ([str]): [optional] # noqa: E501 + negative_exact ([str]): [optional] # noqa: E501 + positive_exact ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keyword_data_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keyword_data_model.py new file mode 100644 index 00000000..f45e36c2 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keyword_data_model.py @@ -0,0 +1,302 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_input_keywords_model import RetailMediaExternalv1InputKeywordsModel + globals()['RetailMediaExternalv1InputKeywordsModel'] = RetailMediaExternalv1InputKeywordsModel + + +class RetailMediaExternalv1KeywordDataModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('review_state',): { + 'INREVIEW': "InReview", + 'RECOMMENDED': "Recommended", + 'APPROVED': "Approved", + 'AUTOAPPROVED': "AutoApproved", + 'REJECTED': "Rejected", + 'AUTOREJECTED': "AutoRejected", + }, + ('match_type',): { + 'POSITIVEEXACTMATCH': "PositiveExactMatch", + 'NEGATIVEEXACTMATCH': "NegativeExactMatch", + 'NEGATIVEBROADMATCH': "NegativeBroadMatch", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'review_state': (str,), # noqa: E501 + 'match_type': (str,), # noqa: E501 + 'bid': (float,), # noqa: E501 + 'input_keywords': (RetailMediaExternalv1InputKeywordsModel,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'review_state': 'reviewState', # noqa: E501 + 'match_type': 'matchType', # noqa: E501 + 'bid': 'bid', # noqa: E501 + 'input_keywords': 'inputKeywords', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordDataModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + review_state (str): [optional] # noqa: E501 + match_type (str): [optional] # noqa: E501 + bid (float): [optional] # noqa: E501 + input_keywords (RetailMediaExternalv1InputKeywordsModel): [optional] # noqa: E501 + created_at (datetime): [optional] # noqa: E501 + updated_at (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordDataModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + review_state (str): [optional] # noqa: E501 + match_type (str): [optional] # noqa: E501 + bid (float): [optional] # noqa: E501 + input_keywords (RetailMediaExternalv1InputKeywordsModel): [optional] # noqa: E501 + created_at (datetime): [optional] # noqa: E501 + updated_at (datetime): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model.py new file mode 100644 index 00000000..55224d5b --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model.py @@ -0,0 +1,275 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keyword_data_model import RetailMediaExternalv1KeywordDataModel + globals()['RetailMediaExternalv1KeywordDataModel'] = RetailMediaExternalv1KeywordDataModel + + +class RetailMediaExternalv1KeywordsModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('rank',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'keywords': (RetailMediaExternalv1KeywordDataModel,), # noqa: E501 + 'rank': ([str],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'keywords': 'keywords', # noqa: E501 + 'rank': 'rank', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + keywords (RetailMediaExternalv1KeywordDataModel): [optional] # noqa: E501 + rank ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + keywords (RetailMediaExternalv1KeywordDataModel): [optional] # noqa: E501 + rank ([str]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_resource.py new file mode 100644 index 00000000..5db6b287 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_resource.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model import RetailMediaExternalv1KeywordsModel + globals()['RetailMediaExternalv1KeywordsModel'] = RetailMediaExternalv1KeywordsModel + + +class RetailMediaExternalv1KeywordsModelResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (RetailMediaExternalv1KeywordsModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordsModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1KeywordsModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordsModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1KeywordsModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_response.py new file mode 100644 index 00000000..df3067f5 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_keywords_model_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model_resource import RetailMediaExternalv1KeywordsModelResource + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails + globals()['RetailMediaExternalv1KeywordsModelResource'] = RetailMediaExternalv1KeywordsModelResource + globals()['RetailMediaExternalv1ProblemDetails'] = RetailMediaExternalv1ProblemDetails + + +class RetailMediaExternalv1KeywordsModelResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('errors',): { + }, + ('warnings',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (RetailMediaExternalv1KeywordsModelResource,), # noqa: E501 + 'errors': ([RetailMediaExternalv1ProblemDetails],), # noqa: E501 + 'warnings': ([RetailMediaExternalv1ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordsModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1KeywordsModelResource): [optional] # noqa: E501 + errors ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1KeywordsModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1KeywordsModelResource): [optional] # noqa: E501 + errors ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_problem_details.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_problem_details.py new file mode 100644 index 00000000..c90a67e6 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_problem_details.py @@ -0,0 +1,295 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class RetailMediaExternalv1ProblemDetails(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'trace_identifier': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'source': ({str: (str,)},), # noqa: E501 + 'stack_trace': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'title': (str,), # noqa: E501 + 'status': (int,), # noqa: E501 + 'detail': (str,), # noqa: E501 + 'instance': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'trace_identifier': 'traceIdentifier', # noqa: E501 + 'code': 'code', # noqa: E501 + 'source': 'source', # noqa: E501 + 'stack_trace': 'stackTrace', # noqa: E501 + 'type': 'type', # noqa: E501 + 'title': 'title', # noqa: E501 + 'status': 'status', # noqa: E501 + 'detail': 'detail', # noqa: E501 + 'instance': 'instance', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProblemDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_identifier (str): [optional] # noqa: E501 + code (str): [optional] # noqa: E501 + source ({str: (str,)}): [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + status (int): [optional] # noqa: E501 + detail (str): [optional] # noqa: E501 + instance (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProblemDetails - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + trace_identifier (str): [optional] # noqa: E501 + code (str): [optional] # noqa: E501 + source ({str: (str,)}): [optional] # noqa: E501 + stack_trace (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + title (str): [optional] # noqa: E501 + status (int): [optional] # noqa: E501 + detail (str): [optional] # noqa: E501 + instance (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_status_attributes.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model.py similarity index 79% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_status_attributes.py rename to sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model.py index 80df09df..9ca73b79 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_status_attributes.py +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model.py @@ -1,9 +1,9 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 - The version of the OpenAPI document: Preview + The version of the OpenAPI document: 2023-07 Generated by: https://openapi-generator.tech """ @@ -11,7 +11,7 @@ import re # noqa: F401 import sys # noqa: F401 -from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, @@ -26,11 +26,11 @@ validate_get_composed_info, OpenApiModel ) -from criteo_api_retailmedia_preview.exceptions import ApiAttributeError +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError -class ReportStatusAttributes(ModelNormal): +class RetailMediaExternalv1ProposalStatusModel(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,11 +55,24 @@ class ReportStatusAttributes(ModelNormal): """ allowed_values = { - ('status',): { - 'PENDING': "pending", - 'SUCCESS': "success", - 'FAILURE': "failure", - 'EXPIRED': "expired", + ('negotiation_state',): { + 'INVALID': "Invalid", + 'MODIFIED': "Modified", + 'SUBMITTED': "Submitted", + 'REVIEWED': "Reviewed", + 'APPROVED': "Approved", + }, + ('booking_status',): { + 'NOTSUBMITTED': "NotSubmitted", + 'SUBMITTED': "Submitted", + 'REJECTED': "Rejected", + 'APPROVED': "Approved", + }, + ('runnable_status',): { + 'NOTSUBMITTED': "NotSubmitted", + 'SUBMITTED': "Submitted", + 'REJECTED': "Rejected", + 'APPROVED': "Approved", }, } @@ -87,13 +100,12 @@ def openapi_types(): and the value is attribute type. """ return { - 'status': (str,), # noqa: E501 + 'negotiation_state': (str,), # noqa: E501 + 'booking_status': (str,), # noqa: E501 + 'runnable_status': (str,), # noqa: E501 + 'comment': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 - 'expires_at': (datetime,), # noqa: E501 - 'file_size_bytes': (int,), # noqa: E501 - 'md5_checksum': (str,), # noqa: E501 - 'message': (str,), # noqa: E501 - 'row_count': (int,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 } @cached_property @@ -102,13 +114,12 @@ def discriminator(): attribute_map = { - 'status': 'status', # noqa: E501 + 'negotiation_state': 'negotiationState', # noqa: E501 + 'booking_status': 'bookingStatus', # noqa: E501 + 'runnable_status': 'runnableStatus', # noqa: E501 + 'comment': 'comment', # noqa: E501 'created_at': 'createdAt', # noqa: E501 - 'expires_at': 'expiresAt', # noqa: E501 - 'file_size_bytes': 'fileSizeBytes', # noqa: E501 - 'md5_checksum': 'md5Checksum', # noqa: E501 - 'message': 'message', # noqa: E501 - 'row_count': 'rowCount', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 } read_only_vars = { @@ -118,11 +129,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 - """ReportStatusAttributes - a model defined in OpenAPI + def _from_openapi_data(cls, negotiation_state, booking_status, runnable_status, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModel - a model defined in OpenAPI Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" + negotiation_state (str): + booking_status (str): + runnable_status (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -155,12 +168,9 @@ def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - created_at (datetime): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int): Rows of data in report, only populated on success. [optional] # noqa: E501 + comment (str): [optional] # noqa: E501 + created_at (datetime): [optional] # noqa: E501 + updated_at (datetime): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -192,7 +202,9 @@ def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.status = status + self.negotiation_state = negotiation_state + self.booking_status = booking_status + self.runnable_status = runnable_status for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -213,11 +225,13 @@ def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, status, *args, **kwargs): # noqa: E501 - """ReportStatusAttributes - a model defined in OpenAPI + def __init__(self, negotiation_state, booking_status, runnable_status, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModel - a model defined in OpenAPI Args: - status (str): One of \"pending\", \"success\", \"failure\", or \"expired\" + negotiation_state (str): + booking_status (str): + runnable_status (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -250,12 +264,9 @@ def __init__(self, status, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - created_at (datetime): Timestamp when the report started to execute. [optional] # noqa: E501 - expires_at (datetime): Timestamp when the cached report will expire. [optional] # noqa: E501 - file_size_bytes (int): Total size of file, only populated on success. [optional] # noqa: E501 - md5_checksum (str): The MD5 checksum of the content, only populated on success. [optional] # noqa: E501 - message (str): Failure message, only populated on failure. [optional] # noqa: E501 - row_count (int): Rows of data in report, only populated on success. [optional] # noqa: E501 + comment (str): [optional] # noqa: E501 + created_at (datetime): [optional] # noqa: E501 + updated_at (datetime): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -285,7 +296,9 @@ def __init__(self, status, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.status = status + self.negotiation_state = negotiation_state + self.booking_status = booking_status + self.runnable_status = runnable_status for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_resource.py new file mode 100644 index 00000000..2237b7da --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_resource.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model import RetailMediaExternalv1ProposalStatusModel + globals()['RetailMediaExternalv1ProposalStatusModel'] = RetailMediaExternalv1ProposalStatusModel + + +class RetailMediaExternalv1ProposalStatusModelResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (RetailMediaExternalv1ProposalStatusModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1ProposalStatusModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1ProposalStatusModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_response.py new file mode 100644 index 00000000..1459746f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_proposal_status_model_response.py @@ -0,0 +1,285 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model_resource import RetailMediaExternalv1ProposalStatusModelResource + globals()['RetailMediaExternalv1ProblemDetails'] = RetailMediaExternalv1ProblemDetails + globals()['RetailMediaExternalv1ProposalStatusModelResource'] = RetailMediaExternalv1ProposalStatusModelResource + + +class RetailMediaExternalv1ProposalStatusModelResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('errors',): { + }, + ('warnings',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (RetailMediaExternalv1ProposalStatusModelResource,), # noqa: E501 + 'errors': ([RetailMediaExternalv1ProblemDetails],), # noqa: E501 + 'warnings': ([RetailMediaExternalv1ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1ProposalStatusModelResource): [optional] # noqa: E501 + errors ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ProposalStatusModelResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1ProposalStatusModelResource): [optional] # noqa: E501 + errors ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_resource_outcome.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_resource_outcome.py new file mode 100644 index 00000000..0e56c80c --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_resource_outcome.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails + globals()['RetailMediaExternalv1ProblemDetails'] = RetailMediaExternalv1ProblemDetails + + +class RetailMediaExternalv1ResourceOutcome(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('errors',): { + }, + ('warnings',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'errors': ([RetailMediaExternalv1ProblemDetails],), # noqa: E501 + 'warnings': ([RetailMediaExternalv1ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'errors': 'errors', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + } + + read_only_vars = { + 'errors', # noqa: E501 + 'warnings', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ResourceOutcome - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1ResourceOutcome - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + errors ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + warnings ([RetailMediaExternalv1ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bid_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bid_model.py new file mode 100644 index 00000000..3e089731 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bid_model.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class RetailMediaExternalv1SetBidModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('phrase',): { + 'max_length': 255, + 'min_length': 0, + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'phrase': (str,), # noqa: E501 + 'bid': (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'phrase': 'phrase', # noqa: E501 + 'bid': 'bid', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + phrase (str): [optional] # noqa: E501 + bid (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + phrase (str): [optional] # noqa: E501 + bid (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model.py new file mode 100644 index 00000000..95be5d55 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model.py @@ -0,0 +1,271 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bid_model import RetailMediaExternalv1SetBidModel + globals()['RetailMediaExternalv1SetBidModel'] = RetailMediaExternalv1SetBidModel + + +class RetailMediaExternalv1SetBidsModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + ('keywords',): { + }, + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'keywords': ([RetailMediaExternalv1SetBidModel],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'keywords': 'keywords', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + keywords ([RetailMediaExternalv1SetBidModel]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidsModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + keywords ([RetailMediaExternalv1SetBidModel]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_request.py new file mode 100644 index 00000000..3afbcbae --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource + globals()['RetailMediaExternalv1SetBidsModelResource'] = RetailMediaExternalv1SetBidsModelResource + + +class RetailMediaExternalv1SetBidsModelRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (RetailMediaExternalv1SetBidsModelResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidsModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1SetBidsModelResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidsModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (RetailMediaExternalv1SetBidsModelResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_resource.py new file mode 100644 index 00000000..fe3d8978 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/retail_media_externalv1_set_bids_model_resource.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel + globals()['RetailMediaExternalv1SetBidsModel'] = RetailMediaExternalv1SetBidsModel + + +class RetailMediaExternalv1SetBidsModelResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'attributes': (RetailMediaExternalv1SetBidsModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'id': 'id', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidsModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1SetBidsModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, type, *args, **kwargs): # noqa: E501 + """RetailMediaExternalv1SetBidsModelResource - a model defined in OpenAPI + + Args: + type (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + id (str): [optional] # noqa: E501 + attributes (RetailMediaExternalv1SetBidsModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/section.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/section.py new file mode 100644 index 00000000..b7e8c025 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/section.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.template_variable import TemplateVariable + globals()['TemplateVariable'] = TemplateVariable + + +class Section(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'title': (str,), # noqa: E501 + 'template_variables': ([TemplateVariable],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'title': 'title', # noqa: E501 + 'template_variables': 'templateVariables', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, title, template_variables, *args, **kwargs): # noqa: E501 + """Section - a model defined in OpenAPI + + Args: + title (str): + template_variables ([TemplateVariable]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.title = title + self.template_variables = template_variables + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, title, template_variables, *args, **kwargs): # noqa: E501 + """Section - a model defined in OpenAPI + + Args: + title (str): + template_variables ([TemplateVariable]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.title = title + self.template_variables = template_variables + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response.py new file mode 100644 index 00000000..a858edb8 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response.py @@ -0,0 +1,297 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class StatusResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'PENDING': "pending", + 'SUCCESS': "success", + 'FAILURE': "failure", + 'EXPIRED': "expired", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'status': (str,), # noqa: E501 + 'row_count': (int,), # noqa: E501 + 'file_size_bytes': (int,), # noqa: E501 + 'md5_check_sum': (str,), # noqa: E501 + 'created_at': (str,), # noqa: E501 + 'expires_at': (str,), # noqa: E501 + 'message': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status': 'status', # noqa: E501 + 'row_count': 'rowCount', # noqa: E501 + 'file_size_bytes': 'fileSizeBytes', # noqa: E501 + 'md5_check_sum': 'md5CheckSum', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'expires_at': 'expiresAt', # noqa: E501 + 'message': 'message', # noqa: E501 + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StatusResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + row_count (int): [optional] # noqa: E501 + file_size_bytes (int): [optional] # noqa: E501 + md5_check_sum (str): [optional] # noqa: E501 + created_at (str): [optional] # noqa: E501 + expires_at (str): [optional] # noqa: E501 + message (str): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StatusResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + row_count (int): [optional] # noqa: E501 + file_size_bytes (int): [optional] # noqa: E501 + md5_check_sum (str): [optional] # noqa: E501 + created_at (str): [optional] # noqa: E501 + expires_at (str): [optional] # noqa: E501 + message (str): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response_resource.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response_resource.py new file mode 100644 index 00000000..2a0de538 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/status_response_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.status_response import StatusResponse + globals()['StatusResponse'] = StatusResponse + + +class StatusResponseResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (StatusResponse,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StatusResponseResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (StatusResponse): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StatusResponseResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (StatusResponse): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_ids_update_model202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_ids_update_model202110_request.py new file mode 100644 index 00000000..5535c91a --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_ids_update_model202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 + globals()['ValueTypeResourceOfStoreIdsUpdateModel202110'] = ValueTypeResourceOfStoreIdsUpdateModel202110 + + +class StoreIdsUpdateModel202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfStoreIdsUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StoreIdsUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfStoreIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StoreIdsUpdateModel202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfStoreIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_request.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_request.py new file mode 100644 index 00000000..0d0fb5e1 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 + globals()['ValueTypeResourceOfStoreTarget202110'] = ValueTypeResourceOfStoreTarget202110 + + +class StoreTarget202110Request(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfStoreTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StoreTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfStoreTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StoreTarget202110Request - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfStoreTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_response.py new file mode 100644 index 00000000..92cf5a0e --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/store_target202110_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 + globals()['ProblemDetails'] = ProblemDetails + globals()['ValueTypeResourceOfStoreTarget202110'] = ValueTypeResourceOfStoreTarget202110 + + +class StoreTarget202110Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ValueTypeResourceOfStoreTarget202110,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StoreTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfStoreTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StoreTarget202110Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ValueTypeResourceOfStoreTarget202110): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template.py new file mode 100644 index 00000000..104f9711 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template.py @@ -0,0 +1,345 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.section import Section + globals()['Section'] = Section + + +class Template(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('creative_format',): { + 'UNKNOWN': "Unknown", + 'FLAGSHIP': "FlagShip", + 'SHOWCASE': "Showcase", + 'SPONSOREDPRODUCTS': "SponsoredProducts", + 'BUTTERFLY': "Butterfly", + 'BUNDLEBOOST': "BundleBoost", + 'IAB': "IAB", + 'CUSTOM': "CUSTOM", + 'DISPLAYPANEL': "DisplayPanel", + 'DIGITALSHELFTALKER': "DigitalShelfTalker", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'creative_format': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'sku_collection_min': (int,), # noqa: E501 + 'sku_per_collection_min': (int,), # noqa: E501 + 'all_collections_mandatory': (bool,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'sections': ([Section],), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 + 'sku_collection_max': (int, none_type,), # noqa: E501 + 'sku_per_collection_max': (int, none_type,), # noqa: E501 + 'displayable_skus_max': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'creative_format': 'creativeFormat', # noqa: E501 + 'name': 'name', # noqa: E501 + 'sku_collection_min': 'skuCollectionMin', # noqa: E501 + 'sku_per_collection_min': 'skuPerCollectionMin', # noqa: E501 + 'all_collections_mandatory': 'allCollectionsMandatory', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'sections': 'sections', # noqa: E501 + 'retailer_id': 'retailerId', # noqa: E501 + 'sku_collection_max': 'skuCollectionMax', # noqa: E501 + 'sku_per_collection_max': 'skuPerCollectionMax', # noqa: E501 + 'displayable_skus_max': 'displayableSkusMax', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, creative_format, name, sku_collection_min, sku_per_collection_min, all_collections_mandatory, created_at, updated_at, sections, *args, **kwargs): # noqa: E501 + """Template - a model defined in OpenAPI + + Args: + creative_format (str): The kind of creative this template can be used to build. + name (str): The name of the template + sku_collection_min (int): TODO: what is it ? + sku_per_collection_min (int): TODO: what is it ? + all_collections_mandatory (bool): TODO: what is it ? + created_at (datetime): The time at which the template was created + updated_at (datetime): The time at which the template was updated + sections ([Section]): The sections holding various template variables + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + retailer_id (int): The retailer associated to the template. [optional] # noqa: E501 + sku_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501 + sku_per_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501 + displayable_skus_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.creative_format = creative_format + self.name = name + self.sku_collection_min = sku_collection_min + self.sku_per_collection_min = sku_per_collection_min + self.all_collections_mandatory = all_collections_mandatory + self.created_at = created_at + self.updated_at = updated_at + self.sections = sections + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, creative_format, name, sku_collection_min, sku_per_collection_min, all_collections_mandatory, created_at, updated_at, sections, *args, **kwargs): # noqa: E501 + """Template - a model defined in OpenAPI + + Args: + creative_format (str): The kind of creative this template can be used to build. + name (str): The name of the template + sku_collection_min (int): TODO: what is it ? + sku_per_collection_min (int): TODO: what is it ? + all_collections_mandatory (bool): TODO: what is it ? + created_at (datetime): The time at which the template was created + updated_at (datetime): The time at which the template was updated + sections ([Section]): The sections holding various template variables + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + retailer_id (int): The retailer associated to the template. [optional] # noqa: E501 + sku_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501 + sku_per_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501 + displayable_skus_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.creative_format = creative_format + self.name = name + self.sku_collection_min = sku_collection_min + self.sku_per_collection_min = sku_per_collection_min + self.all_collections_mandatory = all_collections_mandatory + self.created_at = created_at + self.updated_at = updated_at + self.sections = sections + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_list_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_list_response.py new file mode 100644 index 00000000..7aa3e85f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_list_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_template import ResourceOfTemplate + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfTemplate'] = ResourceOfTemplate + + +class TemplateListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': ([ResourceOfTemplate],), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TemplateListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfTemplate]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """TemplateListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data ([ResourceOfTemplate]): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_response.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_response.py new file mode 100644 index 00000000..c70aaf89 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails + from criteo_api_retailmedia_v2023_07.model.resource_of_template import ResourceOfTemplate + globals()['ProblemDetails'] = ProblemDetails + globals()['ResourceOfTemplate'] = ResourceOfTemplate + + +class TemplateResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfTemplate,), # noqa: E501 + 'warnings': ([ProblemDetails],), # noqa: E501 + 'errors': ([ProblemDetails],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TemplateResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfTemplate): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """TemplateResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfTemplate): [optional] # noqa: E501 + warnings ([ProblemDetails]): [optional] # noqa: E501 + errors ([ProblemDetails]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable.py new file mode 100644 index 00000000..ad0bf811 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable.py @@ -0,0 +1,310 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.choice_variable_specification import ChoiceVariableSpecification + from criteo_api_retailmedia_v2023_07.model.files_variables_specification import FilesVariablesSpecification + from criteo_api_retailmedia_v2023_07.model.text_variable_specification import TextVariableSpecification + globals()['ChoiceVariableSpecification'] = ChoiceVariableSpecification + globals()['FilesVariablesSpecification'] = FilesVariablesSpecification + globals()['TextVariableSpecification'] = TextVariableSpecification + + +class TemplateVariable(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('type',): { + 'TEXT': "Text", + 'CHOICE': "Choice", + 'COLOR': "Color", + 'FILES': "Files", + 'HYPERLINK': "Hyperlink", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'required': (bool,), # noqa: E501 + 'type': (str,), # noqa: E501 + 'choice_variable_specification': (ChoiceVariableSpecification,), # noqa: E501 + 'text_variable_specification': (TextVariableSpecification,), # noqa: E501 + 'files_variables_specification': (FilesVariablesSpecification,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'required': 'required', # noqa: E501 + 'type': 'type', # noqa: E501 + 'choice_variable_specification': 'choiceVariableSpecification', # noqa: E501 + 'text_variable_specification': 'textVariableSpecification', # noqa: E501 + 'files_variables_specification': 'filesVariablesSpecification', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, required, type, *args, **kwargs): # noqa: E501 + """TemplateVariable - a model defined in OpenAPI + + Args: + id (str): The id of the variable + required (bool): Whether the variable is required + type (str): The type of the variable + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + choice_variable_specification (ChoiceVariableSpecification): [optional] # noqa: E501 + text_variable_specification (TextVariableSpecification): [optional] # noqa: E501 + files_variables_specification (FilesVariablesSpecification): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.required = required + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, required, type, *args, **kwargs): # noqa: E501 + """TemplateVariable - a model defined in OpenAPI + + Args: + id (str): The id of the variable + required (bool): Whether the variable is required + type (str): The type of the variable + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + choice_variable_specification (ChoiceVariableSpecification): [optional] # noqa: E501 + text_variable_specification (TextVariableSpecification): [optional] # noqa: E501 + files_variables_specification (FilesVariablesSpecification): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.required = required + self.type = type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable_value.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable_value.py new file mode 100644 index 00000000..d4b50c11 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/template_variable_value.py @@ -0,0 +1,303 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.choice_variable_value import ChoiceVariableValue + from criteo_api_retailmedia_v2023_07.model.color_variable_value import ColorVariableValue + from criteo_api_retailmedia_v2023_07.model.files_variable_value import FilesVariableValue + from criteo_api_retailmedia_v2023_07.model.hyperlink_variable_value import HyperlinkVariableValue + from criteo_api_retailmedia_v2023_07.model.text_variable_value import TextVariableValue + globals()['ChoiceVariableValue'] = ChoiceVariableValue + globals()['ColorVariableValue'] = ColorVariableValue + globals()['FilesVariableValue'] = FilesVariableValue + globals()['HyperlinkVariableValue'] = HyperlinkVariableValue + globals()['TextVariableValue'] = TextVariableValue + + +class TemplateVariableValue(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'text_variable_value': (TextVariableValue,), # noqa: E501 + 'choice_variable_value': (ChoiceVariableValue,), # noqa: E501 + 'color_variable_value': (ColorVariableValue,), # noqa: E501 + 'files_variable_value': (FilesVariableValue,), # noqa: E501 + 'hyperlink_variable_value': (HyperlinkVariableValue,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'text_variable_value': 'textVariableValue', # noqa: E501 + 'choice_variable_value': 'choiceVariableValue', # noqa: E501 + 'color_variable_value': 'colorVariableValue', # noqa: E501 + 'files_variable_value': 'filesVariableValue', # noqa: E501 + 'hyperlink_variable_value': 'hyperlinkVariableValue', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """TemplateVariableValue - a model defined in OpenAPI + + Args: + id (str): The id of the template variable the value is applied to + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + text_variable_value (TextVariableValue): [optional] # noqa: E501 + choice_variable_value (ChoiceVariableValue): [optional] # noqa: E501 + color_variable_value (ColorVariableValue): [optional] # noqa: E501 + files_variable_value (FilesVariableValue): [optional] # noqa: E501 + hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """TemplateVariableValue - a model defined in OpenAPI + + Args: + id (str): The id of the template variable the value is applied to + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + text_variable_value (TextVariableValue): [optional] # noqa: E501 + choice_variable_value (ChoiceVariableValue): [optional] # noqa: E501 + color_variable_value (ColorVariableValue): [optional] # noqa: E501 + files_variable_value (FilesVariableValue): [optional] # noqa: E501 + hyperlink_variable_value (HyperlinkVariableValue): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_specification.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_specification.py new file mode 100644 index 00000000..bccb3b48 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_specification.py @@ -0,0 +1,263 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class TextVariableSpecification(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'max_chars': (int, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'max_chars': 'maxChars', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TextVariableSpecification - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + max_chars (int, none_type): The maximum amount of characters accepted for the text. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """TextVariableSpecification - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + max_chars (int, none_type): The maximum amount of characters accepted for the text. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_value.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_value.py new file mode 100644 index 00000000..80a2e0fe --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/text_variable_value.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class TextVariableValue(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'text': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'text': 'text', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, text, *args, **kwargs): # noqa: E501 + """TextVariableValue - a model defined in OpenAPI + + Args: + text (str): The displayed text + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.text = text + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, text, *args, **kwargs): # noqa: E501 + """TextVariableValue - a model defined in OpenAPI + + Args: + text (str): The displayed text + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.text = text + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details.py new file mode 100644 index 00000000..ab0fd0da --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details.py @@ -0,0 +1,306 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + + +class UserBehaviorDetails(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('target_type',): { + 'BRAND': "brand", + 'CATEGORY': "category", + }, + ('lookback_window',): { + 'P7D': "P7D", + 'P14D': "P14D", + 'P30D': "P30D", + 'P45D': "P45D", + 'P60D': "P60D", + 'P90D': "P90D", + 'P120D': "P120D", + 'P150D': "P150D", + 'P180D': "P180D", + }, + ('user_type',): { + 'VIEWER': "viewer", + 'BUYER': "buyer", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'target_type': (str,), # noqa: E501 + 'target_ids': ([str],), # noqa: E501 + 'lookback_window': (str,), # noqa: E501 + 'user_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'target_type': 'targetType', # noqa: E501 + 'target_ids': 'targetIds', # noqa: E501 + 'lookback_window': 'lookbackWindow', # noqa: E501 + 'user_type': 'userType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, target_type, target_ids, lookback_window, user_type, *args, **kwargs): # noqa: E501 + """UserBehaviorDetails - a model defined in OpenAPI + + Args: + target_type (str): Type of target + target_ids ([str]): ist of ids for the target type + lookback_window (str): Length of lookback window + user_type (str): Type of the user + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.target_type = target_type + self.target_ids = target_ids + self.lookback_window = lookback_window + self.user_type = user_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, target_type, target_ids, lookback_window, user_type, *args, **kwargs): # noqa: E501 + """UserBehaviorDetails - a model defined in OpenAPI + + Args: + target_type (str): Type of target + target_ids ([str]): ist of ids for the target type + lookback_window (str): Length of lookback window + user_type (str): Type of the user + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.target_type = target_type + self.target_ids = target_ids + self.lookback_window = lookback_window + self.user_type = user_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details_v2.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details_v2.py new file mode 100644 index 00000000..db6ea8bc --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/user_behavior_details_v2.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2 + globals()['CreateUserBehaviorSegmentV2'] = CreateUserBehaviorSegmentV2 + + +class UserBehaviorDetailsV2(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'inclusive_segment': (CreateUserBehaviorSegmentV2,), # noqa: E501 + 'exclusive_segment': (CreateUserBehaviorSegmentV2,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'inclusive_segment': 'inclusiveSegment', # noqa: E501 + 'exclusive_segment': 'exclusiveSegment', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, inclusive_segment, *args, **kwargs): # noqa: E501 + """UserBehaviorDetailsV2 - a model defined in OpenAPI + + Args: + inclusive_segment (CreateUserBehaviorSegmentV2): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + exclusive_segment (CreateUserBehaviorSegmentV2): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.inclusive_segment = inclusive_segment + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, inclusive_segment, *args, **kwargs): # noqa: E501 + """UserBehaviorDetailsV2 - a model defined in OpenAPI + + Args: + inclusive_segment (CreateUserBehaviorSegmentV2): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + exclusive_segment (CreateUserBehaviorSegmentV2): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.inclusive_segment = inclusive_segment + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py new file mode 100644 index 00000000..5cd7e737 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 + globals()['ExternalAddToBasketIdsUpdateModel202110'] = ExternalAddToBasketIdsUpdateModel202110 + + +class ValueTypeResourceOfAddToBasketIdsUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAddToBasketIdsUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAddToBasketIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAddToBasketIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAddToBasketIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAddToBasketIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_target202110.py new file mode 100644 index 00000000..3d977ac6 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_add_to_basket_target202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 + globals()['ExternalAddToBasketTarget202110'] = ExternalAddToBasketTarget202110 + + +class ValueTypeResourceOfAddToBasketTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAddToBasketTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAddToBasketTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAddToBasketTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAddToBasketTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAddToBasketTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_ids_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_ids_update_model202110.py new file mode 100644 index 00000000..1d6822e5 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_ids_update_model202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 + globals()['ExternalAudienceIdsUpdateModel202110'] = ExternalAudienceIdsUpdateModel202110 + + +class ValueTypeResourceOfAudienceIdsUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAudienceIdsUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAudienceIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAudienceIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAudienceIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAudienceIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_target202110.py new file mode 100644 index 00000000..392f172f --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_audience_target202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_audience_target202110 import ExternalAudienceTarget202110 + globals()['ExternalAudienceTarget202110'] = ExternalAudienceTarget202110 + + +class ValueTypeResourceOfAudienceTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalAudienceTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAudienceTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAudienceTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfAudienceTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalAudienceTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_keyword_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_keyword_target202110.py new file mode 100644 index 00000000..52bc9915 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_keyword_target202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_keyword_target202110 import ExternalKeywordTarget202110 + globals()['ExternalKeywordTarget202110'] = ExternalKeywordTarget202110 + + +class ValueTypeResourceOfKeywordTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalKeywordTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfKeywordTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalKeywordTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfKeywordTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalKeywordTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_ids_update_model202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_ids_update_model202110.py new file mode 100644 index 00000000..c3870a92 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_ids_update_model202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 + globals()['ExternalStoreIdsUpdateModel202110'] = ExternalStoreIdsUpdateModel202110 + + +class ValueTypeResourceOfStoreIdsUpdateModel202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalStoreIdsUpdateModel202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfStoreIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalStoreIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfStoreIdsUpdateModel202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalStoreIdsUpdateModel202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_target202110.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_target202110.py new file mode 100644 index 00000000..f423ff17 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_target202110.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_v2023_07.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_v2023_07.model.external_store_target202110 import ExternalStoreTarget202110 + globals()['ExternalStoreTarget202110'] = ExternalStoreTarget202110 + + +class ValueTypeResourceOfStoreTarget202110(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (ExternalStoreTarget202110,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfStoreTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalStoreTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ValueTypeResourceOfStoreTarget202110 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (ExternalStoreTarget202110): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model_utils.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model_utils.py new file mode 100644 index 00000000..f67eac14 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/model_utils.py @@ -0,0 +1,2058 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +from datetime import date, datetime # noqa: F401 +from copy import deepcopy +import inspect +import io +import os +import pprint +import re +import tempfile +import uuid + +from dateutil.parser import parse + +from criteo_api_retailmedia_v2023_07.exceptions import ( + ApiKeyError, + ApiAttributeError, + ApiTypeError, + ApiValueError, +) + +none_type = type(None) +file_type = io.IOBase + + +def convert_js_args_to_python_args(fn): + from functools import wraps + @wraps(fn) + def wrapped_init(_self, *args, **kwargs): + """ + An attribute named `self` received from the api will conflicts with the reserved `self` + parameter of a class method. During generation, `self` attributes are mapped + to `_self` in models. Here, we name `_self` instead of `self` to avoid conflicts. + """ + spec_property_naming = kwargs.get('_spec_property_naming', False) + if spec_property_naming: + kwargs = change_keys_js_to_python( + kwargs, _self if isinstance( + _self, type) else _self.__class__) + return fn(_self, *args, **kwargs) + return wrapped_init + + +class cached_property(object): + # this caches the result of the function call for fn with no inputs + # use this as a decorator on function methods that you want converted + # into cached properties + result_key = '_results' + + def __init__(self, fn): + self._fn = fn + + def __get__(self, instance, cls=None): + if self.result_key in vars(self): + return vars(self)[self.result_key] + else: + result = self._fn() + setattr(self, self.result_key, result) + return result + + +PRIMITIVE_TYPES = (list, float, int, bool, datetime, date, str, file_type) + + +def allows_single_value_input(cls): + """ + This function returns True if the input composed schema model or any + descendant model allows a value only input + This is true for cases where oneOf contains items like: + oneOf: + - float + - NumberWithValidation + - StringEnum + - ArrayModel + - null + TODO: lru_cache this + """ + if ( + issubclass(cls, ModelSimple) or + cls in PRIMITIVE_TYPES + ): + return True + elif issubclass(cls, ModelComposed): + if not cls._composed_schemas['oneOf']: + return False + return any(allows_single_value_input(c) for c in cls._composed_schemas['oneOf']) + return False + + +def composed_model_input_classes(cls): + """ + This function returns a list of the possible models that can be accepted as + inputs. + TODO: lru_cache this + """ + if issubclass(cls, ModelSimple) or cls in PRIMITIVE_TYPES: + return [cls] + elif issubclass(cls, ModelNormal): + if cls.discriminator is None: + return [cls] + else: + return get_discriminated_classes(cls) + elif issubclass(cls, ModelComposed): + if not cls._composed_schemas['oneOf']: + return [] + if cls.discriminator is None: + input_classes = [] + for c in cls._composed_schemas['oneOf']: + input_classes.extend(composed_model_input_classes(c)) + return input_classes + else: + return get_discriminated_classes(cls) + return [] + + +class OpenApiModel(object): + """The base class for all OpenAPIModels""" + + def set_attribute(self, name, value): + # this is only used to set properties on self + + path_to_item = [] + if self._path_to_item: + path_to_item.extend(self._path_to_item) + path_to_item.append(name) + + if name in self.openapi_types: + required_types_mixed = self.openapi_types[name] + elif self.additional_properties_type is None: + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + path_to_item + ) + elif self.additional_properties_type is not None: + required_types_mixed = self.additional_properties_type + + if get_simple_class(name) != str: + error_msg = type_error_message( + var_name=name, + var_value=name, + valid_classes=(str,), + key_type=True + ) + raise ApiTypeError( + error_msg, + path_to_item=path_to_item, + valid_classes=(str,), + key_type=True + ) + + if self._check_type: + value = validate_and_convert_types( + value, required_types_mixed, path_to_item, self._spec_property_naming, + self._check_type, configuration=self._configuration) + if (name,) in self.allowed_values: + check_allowed_values( + self.allowed_values, + (name,), + value + ) + if (name,) in self.validations: + check_validations( + self.validations, + (name,), + value, + self._configuration + ) + self.__dict__['_data_store'][name] = value + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other + + def __setattr__(self, attr, value): + """set the value of an attribute using dot notation: `instance.attr = val`""" + self[attr] = value + + def __getattr__(self, attr): + """get the value of an attribute using dot notation: `instance.attr`""" + return self.__getitem__(attr) + + def __copy__(self): + cls = self.__class__ + if self.get("_spec_property_naming", False): + return cls._new_from_openapi_data(**self.__dict__) + else: + return cls.__new__(cls, **self.__dict__) + + def __deepcopy__(self, memo): + cls = self.__class__ + + if self.get("_spec_property_naming", False): + new_inst = cls._new_from_openapi_data() + else: + new_inst = cls.__new__(cls, **self.__dict__) + + for k, v in self.__dict__.items(): + setattr(new_inst, k, deepcopy(v, memo)) + return new_inst + + + def __new__(cls, *args, **kwargs): + # this function uses the discriminator to + # pick a new schema/class to instantiate because a discriminator + # propertyName value was passed in + + if len(args) == 1: + arg = args[0] + if arg is None and is_type_nullable(cls): + # The input data is the 'null' value and the type is nullable. + return None + + if issubclass(cls, ModelComposed) and allows_single_value_input(cls): + model_kwargs = {} + oneof_instance = get_oneof_instance(cls, model_kwargs, kwargs, model_arg=arg) + return oneof_instance + + visited_composed_classes = kwargs.get('_visited_composed_classes', ()) + if ( + cls.discriminator is None or + cls in visited_composed_classes + ): + # Use case 1: this openapi schema (cls) does not have a discriminator + # Use case 2: we have already visited this class before and are sure that we + # want to instantiate it this time. We have visited this class deserializing + # a payload with a discriminator. During that process we traveled through + # this class but did not make an instance of it. Now we are making an + # instance of a composed class which contains cls in it, so this time make an instance of cls. + # + # Here's an example of use case 2: If Animal has a discriminator + # petType and we pass in "Dog", and the class Dog + # allOf includes Animal, we move through Animal + # once using the discriminator, and pick Dog. + # Then in the composed schema dog Dog, we will make an instance of the + # Animal class (because Dal has allOf: Animal) but this time we won't travel + # through Animal's discriminator because we passed in + # _visited_composed_classes = (Animal,) + + return super(OpenApiModel, cls).__new__(cls) + + # Get the name and value of the discriminator property. + # The discriminator name is obtained from the discriminator meta-data + # and the discriminator value is obtained from the input data. + discr_propertyname_py = list(cls.discriminator.keys())[0] + discr_propertyname_js = cls.attribute_map[discr_propertyname_py] + if discr_propertyname_js in kwargs: + discr_value = kwargs[discr_propertyname_js] + elif discr_propertyname_py in kwargs: + discr_value = kwargs[discr_propertyname_py] + else: + # The input data does not contain the discriminator property. + path_to_item = kwargs.get('_path_to_item', ()) + raise ApiValueError( + "Cannot deserialize input data due to missing discriminator. " + "The discriminator property '%s' is missing at path: %s" % + (discr_propertyname_js, path_to_item) + ) + + # Implementation note: the last argument to get_discriminator_class + # is a list of visited classes. get_discriminator_class may recursively + # call itself and update the list of visited classes, and the initial + # value must be an empty list. Hence not using 'visited_composed_classes' + new_cls = get_discriminator_class( + cls, discr_propertyname_py, discr_value, []) + if new_cls is None: + path_to_item = kwargs.get('_path_to_item', ()) + disc_prop_value = kwargs.get( + discr_propertyname_js, kwargs.get(discr_propertyname_py)) + raise ApiValueError( + "Cannot deserialize input data due to invalid discriminator " + "value. The OpenAPI document has no mapping for discriminator " + "property '%s'='%s' at path: %s" % + (discr_propertyname_js, disc_prop_value, path_to_item) + ) + + if new_cls in visited_composed_classes: + # if we are making an instance of a composed schema Descendent + # which allOf includes Ancestor, then Ancestor contains + # a discriminator that includes Descendent. + # So if we make an instance of Descendent, we have to make an + # instance of Ancestor to hold the allOf properties. + # This code detects that use case and makes the instance of Ancestor + # For example: + # When making an instance of Dog, _visited_composed_classes = (Dog,) + # then we make an instance of Animal to include in dog._composed_instances + # so when we are here, cls is Animal + # cls.discriminator != None + # cls not in _visited_composed_classes + # new_cls = Dog + # but we know we know that we already have Dog + # because it is in visited_composed_classes + # so make Animal here + return super(OpenApiModel, cls).__new__(cls) + + # Build a list containing all oneOf and anyOf descendants. + oneof_anyof_classes = None + if cls._composed_schemas is not None: + oneof_anyof_classes = ( + cls._composed_schemas.get('oneOf', ()) + + cls._composed_schemas.get('anyOf', ())) + oneof_anyof_child = new_cls in oneof_anyof_classes + kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,) + + if cls._composed_schemas.get('allOf') and oneof_anyof_child: + # Validate that we can make self because when we make the + # new_cls it will not include the allOf validations in self + self_inst = super(OpenApiModel, cls).__new__(cls) + self_inst.__init__(*args, **kwargs) + + if kwargs.get("_spec_property_naming", False): + # when true, implies new is from deserialization + new_inst = new_cls._new_from_openapi_data(*args, **kwargs) + else: + new_inst = new_cls.__new__(new_cls, *args, **kwargs) + new_inst.__init__(*args, **kwargs) + + return new_inst + + @classmethod + @convert_js_args_to_python_args + def _new_from_openapi_data(cls, *args, **kwargs): + # this function uses the discriminator to + # pick a new schema/class to instantiate because a discriminator + # propertyName value was passed in + + if len(args) == 1: + arg = args[0] + if arg is None and is_type_nullable(cls): + # The input data is the 'null' value and the type is nullable. + return None + + if issubclass(cls, ModelComposed) and allows_single_value_input(cls): + model_kwargs = {} + oneof_instance = get_oneof_instance(cls, model_kwargs, kwargs, model_arg=arg) + return oneof_instance + + visited_composed_classes = kwargs.get('_visited_composed_classes', ()) + if ( + cls.discriminator is None or + cls in visited_composed_classes + ): + # Use case 1: this openapi schema (cls) does not have a discriminator + # Use case 2: we have already visited this class before and are sure that we + # want to instantiate it this time. We have visited this class deserializing + # a payload with a discriminator. During that process we traveled through + # this class but did not make an instance of it. Now we are making an + # instance of a composed class which contains cls in it, so this time make an instance of cls. + # + # Here's an example of use case 2: If Animal has a discriminator + # petType and we pass in "Dog", and the class Dog + # allOf includes Animal, we move through Animal + # once using the discriminator, and pick Dog. + # Then in the composed schema dog Dog, we will make an instance of the + # Animal class (because Dal has allOf: Animal) but this time we won't travel + # through Animal's discriminator because we passed in + # _visited_composed_classes = (Animal,) + + return cls._from_openapi_data(*args, **kwargs) + + # Get the name and value of the discriminator property. + # The discriminator name is obtained from the discriminator meta-data + # and the discriminator value is obtained from the input data. + discr_propertyname_py = list(cls.discriminator.keys())[0] + discr_propertyname_js = cls.attribute_map[discr_propertyname_py] + if discr_propertyname_js in kwargs: + discr_value = kwargs[discr_propertyname_js] + elif discr_propertyname_py in kwargs: + discr_value = kwargs[discr_propertyname_py] + else: + # The input data does not contain the discriminator property. + path_to_item = kwargs.get('_path_to_item', ()) + raise ApiValueError( + "Cannot deserialize input data due to missing discriminator. " + "The discriminator property '%s' is missing at path: %s" % + (discr_propertyname_js, path_to_item) + ) + + # Implementation note: the last argument to get_discriminator_class + # is a list of visited classes. get_discriminator_class may recursively + # call itself and update the list of visited classes, and the initial + # value must be an empty list. Hence not using 'visited_composed_classes' + new_cls = get_discriminator_class( + cls, discr_propertyname_py, discr_value, []) + if new_cls is None: + path_to_item = kwargs.get('_path_to_item', ()) + disc_prop_value = kwargs.get( + discr_propertyname_js, kwargs.get(discr_propertyname_py)) + raise ApiValueError( + "Cannot deserialize input data due to invalid discriminator " + "value. The OpenAPI document has no mapping for discriminator " + "property '%s'='%s' at path: %s" % + (discr_propertyname_js, disc_prop_value, path_to_item) + ) + + if new_cls in visited_composed_classes: + # if we are making an instance of a composed schema Descendent + # which allOf includes Ancestor, then Ancestor contains + # a discriminator that includes Descendent. + # So if we make an instance of Descendent, we have to make an + # instance of Ancestor to hold the allOf properties. + # This code detects that use case and makes the instance of Ancestor + # For example: + # When making an instance of Dog, _visited_composed_classes = (Dog,) + # then we make an instance of Animal to include in dog._composed_instances + # so when we are here, cls is Animal + # cls.discriminator != None + # cls not in _visited_composed_classes + # new_cls = Dog + # but we know we know that we already have Dog + # because it is in visited_composed_classes + # so make Animal here + return cls._from_openapi_data(*args, **kwargs) + + # Build a list containing all oneOf and anyOf descendants. + oneof_anyof_classes = None + if cls._composed_schemas is not None: + oneof_anyof_classes = ( + cls._composed_schemas.get('oneOf', ()) + + cls._composed_schemas.get('anyOf', ())) + oneof_anyof_child = new_cls in oneof_anyof_classes + kwargs['_visited_composed_classes'] = visited_composed_classes + (cls,) + + if cls._composed_schemas.get('allOf') and oneof_anyof_child: + # Validate that we can make self because when we make the + # new_cls it will not include the allOf validations in self + self_inst = cls._from_openapi_data(*args, **kwargs) + + new_inst = new_cls._new_from_openapi_data(*args, **kwargs) + return new_inst + + +class ModelSimple(OpenApiModel): + """the parent class of models whose type != object in their + swagger/openapi""" + + def __setitem__(self, name, value): + """set the value of an attribute using square-bracket notation: `instance[attr] = val`""" + if name in self.required_properties: + self.__dict__[name] = value + return + + self.set_attribute(name, value) + + def get(self, name, default=None): + """returns the value of an attribute or some default value if the attribute was not set""" + if name in self.required_properties: + return self.__dict__[name] + + return self.__dict__['_data_store'].get(name, default) + + def __getitem__(self, name): + """get the value of an attribute using square-bracket notation: `instance[attr]`""" + if name in self: + return self.get(name) + + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + + def __contains__(self, name): + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" + if name in self.required_properties: + return name in self.__dict__ + + return name in self.__dict__['_data_store'] + + def to_str(self): + """Returns the string representation of the model""" + return str(self.value) + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, self.__class__): + return False + + this_val = self._data_store['value'] + that_val = other._data_store['value'] + types = set() + types.add(this_val.__class__) + types.add(that_val.__class__) + vals_equal = this_val == that_val + return vals_equal + + +class ModelNormal(OpenApiModel): + """the parent class of models whose type == object in their + swagger/openapi""" + + def __setitem__(self, name, value): + """set the value of an attribute using square-bracket notation: `instance[attr] = val`""" + if name in self.required_properties: + self.__dict__[name] = value + return + + self.set_attribute(name, value) + + def get(self, name, default=None): + """returns the value of an attribute or some default value if the attribute was not set""" + if name in self.required_properties: + return self.__dict__[name] + + return self.__dict__['_data_store'].get(name, default) + + def __getitem__(self, name): + """get the value of an attribute using square-bracket notation: `instance[attr]`""" + if name in self: + return self.get(name) + + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + + def __contains__(self, name): + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" + if name in self.required_properties: + return name in self.__dict__ + + return name in self.__dict__['_data_store'] + + def to_dict(self): + """Returns the model properties as a dict""" + return model_to_dict(self, serialize=False) + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, self.__class__): + return False + + if not set(self._data_store.keys()) == set(other._data_store.keys()): + return False + for _var_name, this_val in self._data_store.items(): + that_val = other._data_store[_var_name] + types = set() + types.add(this_val.__class__) + types.add(that_val.__class__) + vals_equal = this_val == that_val + if not vals_equal: + return False + return True + + +class ModelComposed(OpenApiModel): + """the parent class of models whose type == object in their + swagger/openapi and have oneOf/allOf/anyOf + + When one sets a property we use var_name_to_model_instances to store the value in + the correct class instances + run any type checking + validation code. + When one gets a property we use var_name_to_model_instances to get the value + from the correct class instances. + This allows multiple composed schemas to contain the same property with additive + constraints on the value. + + _composed_schemas (dict) stores the anyOf/allOf/oneOf classes + key (str): allOf/oneOf/anyOf + value (list): the classes in the XOf definition. + Note: none_type can be included when the openapi document version >= 3.1.0 + _composed_instances (list): stores a list of instances of the composed schemas + defined in _composed_schemas. When properties are accessed in the self instance, + they are returned from the self._data_store or the data stores in the instances + in self._composed_schemas + _var_name_to_model_instances (dict): maps between a variable name on self and + the composed instances (self included) which contain that data + key (str): property name + value (list): list of class instances, self or instances in _composed_instances + which contain the value that the key is referring to. + """ + + def __setitem__(self, name, value): + """set the value of an attribute using square-bracket notation: `instance[attr] = val`""" + if name in self.required_properties: + self.__dict__[name] = value + return + + """ + Use cases: + 1. additional_properties_type is None (additionalProperties == False in spec) + Check for property presence in self.openapi_types + if not present then throw an error + if present set in self, set attribute + always set on composed schemas + 2. additional_properties_type exists + set attribute on self + always set on composed schemas + """ + if self.additional_properties_type is None: + """ + For an attribute to exist on a composed schema it must: + - fulfill schema_requirements in the self composed schema not considering oneOf/anyOf/allOf schemas AND + - fulfill schema_requirements in each oneOf/anyOf/allOf schemas + + schema_requirements: + For an attribute to exist on a schema it must: + - be present in properties at the schema OR + - have additionalProperties unset (defaults additionalProperties = any type) OR + - have additionalProperties set + """ + if name not in self.openapi_types: + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + # attribute must be set on self and composed instances + self.set_attribute(name, value) + for model_instance in self._composed_instances: + setattr(model_instance, name, value) + if name not in self._var_name_to_model_instances: + # we assigned an additional property + self.__dict__['_var_name_to_model_instances'][name] = self._composed_instances + [self] + return None + + __unset_attribute_value__ = object() + + def get(self, name, default=None): + """returns the value of an attribute or some default value if the attribute was not set""" + if name in self.required_properties: + return self.__dict__[name] + + # get the attribute from the correct instance + model_instances = self._var_name_to_model_instances.get(name) + values = [] + # A composed model stores self and child (oneof/anyOf/allOf) models under + # self._var_name_to_model_instances. + # Any property must exist in self and all model instances + # The value stored in all model instances must be the same + if model_instances: + for model_instance in model_instances: + if name in model_instance._data_store: + v = model_instance._data_store[name] + if v not in values: + values.append(v) + len_values = len(values) + if len_values == 0: + return default + elif len_values == 1: + return values[0] + elif len_values > 1: + raise ApiValueError( + "Values stored for property {0} in {1} differ when looking " + "at self and self's composed instances. All values must be " + "the same".format(name, type(self).__name__), + [e for e in [self._path_to_item, name] if e] + ) + + def __getitem__(self, name): + """get the value of an attribute using square-bracket notation: `instance[attr]`""" + value = self.get(name, self.__unset_attribute_value__) + if value is self.__unset_attribute_value__: + raise ApiAttributeError( + "{0} has no attribute '{1}'".format( + type(self).__name__, name), + [e for e in [self._path_to_item, name] if e] + ) + return value + + def __contains__(self, name): + """used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`""" + + if name in self.required_properties: + return name in self.__dict__ + + model_instances = self._var_name_to_model_instances.get( + name, self._additional_properties_model_instances) + + if model_instances: + for model_instance in model_instances: + if name in model_instance._data_store: + return True + + return False + + def to_dict(self): + """Returns the model properties as a dict""" + return model_to_dict(self, serialize=False) + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, self.__class__): + return False + + if not set(self._data_store.keys()) == set(other._data_store.keys()): + return False + for _var_name, this_val in self._data_store.items(): + that_val = other._data_store[_var_name] + types = set() + types.add(this_val.__class__) + types.add(that_val.__class__) + vals_equal = this_val == that_val + if not vals_equal: + return False + return True + + +COERCION_INDEX_BY_TYPE = { + ModelComposed: 0, + ModelNormal: 1, + ModelSimple: 2, + none_type: 3, # The type of 'None'. + list: 4, + dict: 5, + float: 6, + int: 7, + bool: 8, + datetime: 9, + date: 10, + str: 11, + file_type: 12, # 'file_type' is an alias for the built-in 'file' or 'io.IOBase' type. +} + +# these are used to limit what type conversions we try to do +# when we have a valid type already and we want to try converting +# to another type +UPCONVERSION_TYPE_PAIRS = ( + (str, datetime), + (str, date), + # A float may be serialized as an integer, e.g. '3' is a valid serialized float. + (int, float), + (list, ModelComposed), + (dict, ModelComposed), + (str, ModelComposed), + (int, ModelComposed), + (float, ModelComposed), + (list, ModelComposed), + (list, ModelNormal), + (dict, ModelNormal), + (str, ModelSimple), + (int, ModelSimple), + (float, ModelSimple), + (list, ModelSimple), +) + +COERCIBLE_TYPE_PAIRS = { + False: ( # client instantiation of a model with client data + # (dict, ModelComposed), + # (list, ModelComposed), + # (dict, ModelNormal), + # (list, ModelNormal), + # (str, ModelSimple), + # (int, ModelSimple), + # (float, ModelSimple), + # (list, ModelSimple), + # (str, int), + # (str, float), + # (str, datetime), + # (str, date), + # (int, str), + # (float, str), + ), + True: ( # server -> client data + (dict, ModelComposed), + (list, ModelComposed), + (dict, ModelNormal), + (list, ModelNormal), + (str, ModelSimple), + (int, ModelSimple), + (float, ModelSimple), + (list, ModelSimple), + # (str, int), + # (str, float), + (str, datetime), + (str, date), + # (int, str), + # (float, str), + (str, file_type) + ), +} + + +def get_simple_class(input_value): + """Returns an input_value's simple class that we will use for type checking + Python2: + float and int will return int, where int is the python3 int backport + str and unicode will return str, where str is the python3 str backport + Note: float and int ARE both instances of int backport + Note: str_py2 and unicode_py2 are NOT both instances of str backport + + Args: + input_value (class/class_instance): the item for which we will return + the simple class + """ + if isinstance(input_value, type): + # input_value is a class + return input_value + elif isinstance(input_value, tuple): + return tuple + elif isinstance(input_value, list): + return list + elif isinstance(input_value, dict): + return dict + elif isinstance(input_value, none_type): + return none_type + elif isinstance(input_value, file_type): + return file_type + elif isinstance(input_value, bool): + # this must be higher than the int check because + # isinstance(True, int) == True + return bool + elif isinstance(input_value, int): + return int + elif isinstance(input_value, datetime): + # this must be higher than the date check because + # isinstance(datetime_instance, date) == True + return datetime + elif isinstance(input_value, date): + return date + elif isinstance(input_value, str): + return str + return type(input_value) + + +def check_allowed_values(allowed_values, input_variable_path, input_values): + """Raises an exception if the input_values are not allowed + + Args: + allowed_values (dict): the allowed_values dict + input_variable_path (tuple): the path to the input variable + input_values (list/str/int/float/date/datetime): the values that we + are checking to see if they are in allowed_values + """ + these_allowed_values = list(allowed_values[input_variable_path].values()) + if (isinstance(input_values, list) + and not set(input_values).issubset( + set(these_allowed_values))): + invalid_values = ", ".join( + map(str, set(input_values) - set(these_allowed_values))), + raise ApiValueError( + "Invalid values for `%s` [%s], must be a subset of [%s]" % + ( + input_variable_path[0], + invalid_values, + ", ".join(map(str, these_allowed_values)) + ) + ) + elif (isinstance(input_values, dict) + and not set( + input_values.keys()).issubset(set(these_allowed_values))): + invalid_values = ", ".join( + map(str, set(input_values.keys()) - set(these_allowed_values))) + raise ApiValueError( + "Invalid keys in `%s` [%s], must be a subset of [%s]" % + ( + input_variable_path[0], + invalid_values, + ", ".join(map(str, these_allowed_values)) + ) + ) + elif (not isinstance(input_values, (list, dict)) + and input_values not in these_allowed_values): + raise ApiValueError( + "Invalid value for `%s` (%s), must be one of %s" % + ( + input_variable_path[0], + input_values, + these_allowed_values + ) + ) + + +def is_json_validation_enabled(schema_keyword, configuration=None): + """Returns true if JSON schema validation is enabled for the specified + validation keyword. This can be used to skip JSON schema structural validation + as requested in the configuration. + + Args: + schema_keyword (string): the name of a JSON schema validation keyword. + configuration (Configuration): the configuration class. + """ + + return (configuration is None or + not hasattr(configuration, '_disabled_client_side_validations') or + schema_keyword not in configuration._disabled_client_side_validations) + + +def check_validations( + validations, input_variable_path, input_values, + configuration=None): + """Raises an exception if the input_values are invalid + + Args: + validations (dict): the validation dictionary. + input_variable_path (tuple): the path to the input variable. + input_values (list/str/int/float/date/datetime): the values that we + are checking. + configuration (Configuration): the configuration class. + """ + + if input_values is None: + return + + current_validations = validations[input_variable_path] + if (is_json_validation_enabled('multipleOf', configuration) and + 'multiple_of' in current_validations and + isinstance(input_values, (int, float)) and + not (float(input_values) / current_validations['multiple_of']).is_integer()): + # Note 'multipleOf' will be as good as the floating point arithmetic. + raise ApiValueError( + "Invalid value for `%s`, value must be a multiple of " + "`%s`" % ( + input_variable_path[0], + current_validations['multiple_of'] + ) + ) + + if (is_json_validation_enabled('maxLength', configuration) and + 'max_length' in current_validations and + len(input_values) > current_validations['max_length']): + raise ApiValueError( + "Invalid value for `%s`, length must be less than or equal to " + "`%s`" % ( + input_variable_path[0], + current_validations['max_length'] + ) + ) + + if (is_json_validation_enabled('minLength', configuration) and + 'min_length' in current_validations and + len(input_values) < current_validations['min_length']): + raise ApiValueError( + "Invalid value for `%s`, length must be greater than or equal to " + "`%s`" % ( + input_variable_path[0], + current_validations['min_length'] + ) + ) + + if (is_json_validation_enabled('maxItems', configuration) and + 'max_items' in current_validations and + len(input_values) > current_validations['max_items']): + raise ApiValueError( + "Invalid value for `%s`, number of items must be less than or " + "equal to `%s`" % ( + input_variable_path[0], + current_validations['max_items'] + ) + ) + + if (is_json_validation_enabled('minItems', configuration) and + 'min_items' in current_validations and + len(input_values) < current_validations['min_items']): + raise ValueError( + "Invalid value for `%s`, number of items must be greater than or " + "equal to `%s`" % ( + input_variable_path[0], + current_validations['min_items'] + ) + ) + + items = ('exclusive_maximum', 'inclusive_maximum', 'exclusive_minimum', + 'inclusive_minimum') + if (any(item in current_validations for item in items)): + if isinstance(input_values, list): + max_val = max(input_values) + min_val = min(input_values) + elif isinstance(input_values, dict): + max_val = max(input_values.values()) + min_val = min(input_values.values()) + else: + max_val = input_values + min_val = input_values + + if (is_json_validation_enabled('exclusiveMaximum', configuration) and + 'exclusive_maximum' in current_validations and + max_val >= current_validations['exclusive_maximum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value less than `%s`" % ( + input_variable_path[0], + current_validations['exclusive_maximum'] + ) + ) + + if (is_json_validation_enabled('maximum', configuration) and + 'inclusive_maximum' in current_validations and + max_val > current_validations['inclusive_maximum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value less than or equal to " + "`%s`" % ( + input_variable_path[0], + current_validations['inclusive_maximum'] + ) + ) + + if (is_json_validation_enabled('exclusiveMinimum', configuration) and + 'exclusive_minimum' in current_validations and + min_val <= current_validations['exclusive_minimum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value greater than `%s`" % + ( + input_variable_path[0], + current_validations['exclusive_maximum'] + ) + ) + + if (is_json_validation_enabled('minimum', configuration) and + 'inclusive_minimum' in current_validations and + min_val < current_validations['inclusive_minimum']): + raise ApiValueError( + "Invalid value for `%s`, must be a value greater than or equal " + "to `%s`" % ( + input_variable_path[0], + current_validations['inclusive_minimum'] + ) + ) + flags = current_validations.get('regex', {}).get('flags', 0) + if (is_json_validation_enabled('pattern', configuration) and + 'regex' in current_validations and + not re.search(current_validations['regex']['pattern'], + input_values, flags=flags)): + err_msg = r"Invalid value for `%s`, must match regular expression `%s`" % ( + input_variable_path[0], + current_validations['regex']['pattern'] + ) + if flags != 0: + # Don't print the regex flags if the flags are not + # specified in the OAS document. + err_msg = r"%s with flags=`%s`" % (err_msg, flags) + raise ApiValueError(err_msg) + + +def order_response_types(required_types): + """Returns the required types sorted in coercion order + + Args: + required_types (list/tuple): collection of classes or instance of + list or dict with class information inside it. + + Returns: + (list): coercion order sorted collection of classes or instance + of list or dict with class information inside it. + """ + + def index_getter(class_or_instance): + if isinstance(class_or_instance, list): + return COERCION_INDEX_BY_TYPE[list] + elif isinstance(class_or_instance, dict): + return COERCION_INDEX_BY_TYPE[dict] + elif (inspect.isclass(class_or_instance) + and issubclass(class_or_instance, ModelComposed)): + return COERCION_INDEX_BY_TYPE[ModelComposed] + elif (inspect.isclass(class_or_instance) + and issubclass(class_or_instance, ModelNormal)): + return COERCION_INDEX_BY_TYPE[ModelNormal] + elif (inspect.isclass(class_or_instance) + and issubclass(class_or_instance, ModelSimple)): + return COERCION_INDEX_BY_TYPE[ModelSimple] + elif class_or_instance in COERCION_INDEX_BY_TYPE: + return COERCION_INDEX_BY_TYPE[class_or_instance] + raise ApiValueError("Unsupported type: %s" % class_or_instance) + + sorted_types = sorted( + required_types, + key=lambda class_or_instance: index_getter(class_or_instance) + ) + return sorted_types + + +def remove_uncoercible(required_types_classes, current_item, spec_property_naming, + must_convert=True): + """Only keeps the type conversions that are possible + + Args: + required_types_classes (tuple): tuple of classes that are required + these should be ordered by COERCION_INDEX_BY_TYPE + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + current_item (any): the current item (input data) to be converted + + Keyword Args: + must_convert (bool): if True the item to convert is of the wrong + type and we want a big list of coercibles + if False, we want a limited list of coercibles + + Returns: + (list): the remaining coercible required types, classes only + """ + current_type_simple = get_simple_class(current_item) + + results_classes = [] + for required_type_class in required_types_classes: + # convert our models to OpenApiModel + required_type_class_simplified = required_type_class + if isinstance(required_type_class_simplified, type): + if issubclass(required_type_class_simplified, ModelComposed): + required_type_class_simplified = ModelComposed + elif issubclass(required_type_class_simplified, ModelNormal): + required_type_class_simplified = ModelNormal + elif issubclass(required_type_class_simplified, ModelSimple): + required_type_class_simplified = ModelSimple + + if required_type_class_simplified == current_type_simple: + # don't consider converting to one's own class + continue + + class_pair = (current_type_simple, required_type_class_simplified) + if must_convert and class_pair in COERCIBLE_TYPE_PAIRS[spec_property_naming]: + results_classes.append(required_type_class) + elif class_pair in UPCONVERSION_TYPE_PAIRS: + results_classes.append(required_type_class) + return results_classes + + +def get_discriminated_classes(cls): + """ + Returns all the classes that a discriminator converts to + TODO: lru_cache this + """ + possible_classes = [] + key = list(cls.discriminator.keys())[0] + if is_type_nullable(cls): + possible_classes.append(cls) + for discr_cls in cls.discriminator[key].values(): + if hasattr(discr_cls, 'discriminator') and discr_cls.discriminator is not None: + possible_classes.extend(get_discriminated_classes(discr_cls)) + else: + possible_classes.append(discr_cls) + return possible_classes + + +def get_possible_classes(cls, from_server_context): + # TODO: lru_cache this + possible_classes = [cls] + if from_server_context: + return possible_classes + if hasattr(cls, 'discriminator') and cls.discriminator is not None: + possible_classes = [] + possible_classes.extend(get_discriminated_classes(cls)) + elif issubclass(cls, ModelComposed): + possible_classes.extend(composed_model_input_classes(cls)) + return possible_classes + + +def get_required_type_classes(required_types_mixed, spec_property_naming): + """Converts the tuple required_types into a tuple and a dict described + below + + Args: + required_types_mixed (tuple/list): will contain either classes or + instance of list or dict + spec_property_naming (bool): if True these values came from the + server, and we use the data types in our endpoints. + If False, we are client side and we need to include + oneOf and discriminator classes inside the data types in our endpoints + + Returns: + (valid_classes, dict_valid_class_to_child_types_mixed): + valid_classes (tuple): the valid classes that the current item + should be + dict_valid_class_to_child_types_mixed (dict): + valid_class (class): this is the key + child_types_mixed (list/dict/tuple): describes the valid child + types + """ + valid_classes = [] + child_req_types_by_current_type = {} + for required_type in required_types_mixed: + if isinstance(required_type, list): + valid_classes.append(list) + child_req_types_by_current_type[list] = required_type + elif isinstance(required_type, tuple): + valid_classes.append(tuple) + child_req_types_by_current_type[tuple] = required_type + elif isinstance(required_type, dict): + valid_classes.append(dict) + child_req_types_by_current_type[dict] = required_type[str] + else: + valid_classes.extend(get_possible_classes(required_type, spec_property_naming)) + return tuple(valid_classes), child_req_types_by_current_type + + +def change_keys_js_to_python(input_dict, model_class): + """ + Converts from javascript_key keys in the input_dict to python_keys in + the output dict using the mapping in model_class. + If the input_dict contains a key which does not declared in the model_class, + the key is added to the output dict as is. The assumption is the model_class + may have undeclared properties (additionalProperties attribute in the OAS + document). + """ + + if getattr(model_class, 'attribute_map', None) is None: + return input_dict + output_dict = {} + reversed_attr_map = {value: key for key, value in + model_class.attribute_map.items()} + for javascript_key, value in input_dict.items(): + python_key = reversed_attr_map.get(javascript_key) + if python_key is None: + # if the key is unknown, it is in error or it is an + # additionalProperties variable + python_key = javascript_key + output_dict[python_key] = value + return output_dict + + +def get_type_error(var_value, path_to_item, valid_classes, key_type=False): + error_msg = type_error_message( + var_name=path_to_item[-1], + var_value=var_value, + valid_classes=valid_classes, + key_type=key_type + ) + return ApiTypeError( + error_msg, + path_to_item=path_to_item, + valid_classes=valid_classes, + key_type=key_type + ) + + +def deserialize_primitive(data, klass, path_to_item): + """Deserializes string to primitive type. + + :param data: str/int/float + :param klass: str/class the class to convert to + + :return: int, float, str, bool, date, datetime + """ + additional_message = "" + try: + if klass in {datetime, date}: + additional_message = ( + "If you need your parameter to have a fallback " + "string value, please set its type as `type: {}` in your " + "spec. That allows the value to be any type. " + ) + if klass == datetime: + if len(data) < 8: + raise ValueError("This is not a datetime") + # The string should be in iso8601 datetime format. + parsed_datetime = parse(data) + date_only = ( + parsed_datetime.hour == 0 and + parsed_datetime.minute == 0 and + parsed_datetime.second == 0 and + parsed_datetime.tzinfo is None and + 8 <= len(data) <= 10 + ) + if date_only: + raise ValueError("This is a date, not a datetime") + return parsed_datetime + elif klass == date: + if len(data) < 8: + raise ValueError("This is not a date") + return parse(data).date() + else: + converted_value = klass(data) + if isinstance(data, str) and klass == float: + if str(converted_value) != data: + # '7' -> 7.0 -> '7.0' != '7' + raise ValueError('This is not a float') + return converted_value + except (OverflowError, ValueError) as ex: + # parse can raise OverflowError + raise ApiValueError( + "{0}Failed to parse {1} as {2}".format( + additional_message, repr(data), klass.__name__ + ), + path_to_item=path_to_item + ) from ex + + +def get_discriminator_class(model_class, + discr_name, + discr_value, cls_visited): + """Returns the child class specified by the discriminator. + + Args: + model_class (OpenApiModel): the model class. + discr_name (string): the name of the discriminator property. + discr_value (any): the discriminator value. + cls_visited (list): list of model classes that have been visited. + Used to determine the discriminator class without + visiting circular references indefinitely. + + Returns: + used_model_class (class/None): the chosen child class that will be used + to deserialize the data, for example dog.Dog. + If a class is not found, None is returned. + """ + + if model_class in cls_visited: + # The class has already been visited and no suitable class was found. + return None + cls_visited.append(model_class) + used_model_class = None + if discr_name in model_class.discriminator: + class_name_to_discr_class = model_class.discriminator[discr_name] + used_model_class = class_name_to_discr_class.get(discr_value) + if used_model_class is None: + # We didn't find a discriminated class in class_name_to_discr_class. + # So look in the ancestor or descendant discriminators + # The discriminator mapping may exist in a descendant (anyOf, oneOf) + # or ancestor (allOf). + # Ancestor example: in the GrandparentAnimal -> ParentPet -> ChildCat + # hierarchy, the discriminator mappings may be defined at any level + # in the hierarchy. + # Descendant example: mammal -> whale/zebra/Pig -> BasquePig/DanishPig + # if we try to make BasquePig from mammal, we need to travel through + # the oneOf descendant discriminators to find BasquePig + descendant_classes = model_class._composed_schemas.get('oneOf', ()) + \ + model_class._composed_schemas.get('anyOf', ()) + ancestor_classes = model_class._composed_schemas.get('allOf', ()) + possible_classes = descendant_classes + ancestor_classes + for cls in possible_classes: + # Check if the schema has inherited discriminators. + if hasattr(cls, 'discriminator') and cls.discriminator is not None: + used_model_class = get_discriminator_class( + cls, discr_name, discr_value, cls_visited) + if used_model_class is not None: + return used_model_class + return used_model_class + + +def deserialize_model(model_data, model_class, path_to_item, check_type, + configuration, spec_property_naming): + """Deserializes model_data to model instance. + + Args: + model_data (int/str/float/bool/none_type/list/dict): data to instantiate the model + model_class (OpenApiModel): the model class + path_to_item (list): path to the model in the received data + check_type (bool): whether to check the data tupe for the values in + the model + configuration (Configuration): the instance to use to convert files + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + + Returns: + model instance + + Raise: + ApiTypeError + ApiValueError + ApiKeyError + """ + + kw_args = dict(_check_type=check_type, + _path_to_item=path_to_item, + _configuration=configuration, + _spec_property_naming=spec_property_naming) + + if issubclass(model_class, ModelSimple): + return model_class._new_from_openapi_data(model_data, **kw_args) + elif isinstance(model_data, list): + return model_class._new_from_openapi_data(*model_data, **kw_args) + if isinstance(model_data, dict): + kw_args.update(model_data) + return model_class._new_from_openapi_data(**kw_args) + elif isinstance(model_data, PRIMITIVE_TYPES): + return model_class._new_from_openapi_data(model_data, **kw_args) + + +def deserialize_file(response_data, configuration, content_disposition=None): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + Args: + param response_data (str): the file data to write + configuration (Configuration): the instance to use to convert files + + Keyword Args: + content_disposition (str): the value of the Content-Disposition + header + + Returns: + (file_type): the deserialized file which is open + The user is responsible for closing and reading the file + """ + fd, path = tempfile.mkstemp(dir=configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition, + flags=re.I) + if filename is not None: + filename = filename.group(1) + else: + filename = "default_" + str(uuid.uuid4()) + + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + if isinstance(response_data, str): + # change str to bytes so we can write it + response_data = response_data.encode('utf-8') + f.write(response_data) + + f = open(path, "rb") + return f + + +def attempt_convert_item(input_value, valid_classes, path_to_item, + configuration, spec_property_naming, key_type=False, + must_convert=False, check_type=True): + """ + Args: + input_value (any): the data to convert + valid_classes (any): the classes that are valid + path_to_item (list): the path to the item to convert + configuration (Configuration): the instance to use to convert files + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + key_type (bool): if True we need to convert a key type (not supported) + must_convert (bool): if True we must convert + check_type (bool): if True we check the type or the returned data in + ModelComposed/ModelNormal/ModelSimple instances + + Returns: + instance (any) the fixed item + + Raises: + ApiTypeError + ApiValueError + ApiKeyError + """ + valid_classes_ordered = order_response_types(valid_classes) + valid_classes_coercible = remove_uncoercible( + valid_classes_ordered, input_value, spec_property_naming) + if not valid_classes_coercible or key_type: + # we do not handle keytype errors, json will take care + # of this for us + if configuration is None or not configuration.discard_unknown_keys: + raise get_type_error(input_value, path_to_item, valid_classes, + key_type=key_type) + for valid_class in valid_classes_coercible: + try: + if issubclass(valid_class, OpenApiModel): + return deserialize_model(input_value, valid_class, + path_to_item, check_type, + configuration, spec_property_naming) + elif valid_class == file_type: + return deserialize_file(input_value, configuration) + return deserialize_primitive(input_value, valid_class, + path_to_item) + except (ApiTypeError, ApiValueError, ApiKeyError) as conversion_exc: + if must_convert: + raise conversion_exc + # if we have conversion errors when must_convert == False + # we ignore the exception and move on to the next class + continue + # we were unable to convert, must_convert == False + return input_value + + +def is_type_nullable(input_type): + """ + Returns true if None is an allowed value for the specified input_type. + + A type is nullable if at least one of the following conditions is true: + 1. The OAS 'nullable' attribute has been specified, + 1. The type is the 'null' type, + 1. The type is a anyOf/oneOf composed schema, and a child schema is + the 'null' type. + Args: + input_type (type): the class of the input_value that we are + checking + Returns: + bool + """ + if input_type is none_type: + return True + if issubclass(input_type, OpenApiModel) and input_type._nullable: + return True + if issubclass(input_type, ModelComposed): + # If oneOf/anyOf, check if the 'null' type is one of the allowed types. + for t in input_type._composed_schemas.get('oneOf', ()): + if is_type_nullable(t): + return True + for t in input_type._composed_schemas.get('anyOf', ()): + if is_type_nullable(t): + return True + return False + + +def is_valid_type(input_class_simple, valid_classes): + """ + Args: + input_class_simple (class): the class of the input_value that we are + checking + valid_classes (tuple): the valid classes that the current item + should be + Returns: + bool + """ + if issubclass(input_class_simple, OpenApiModel) and \ + valid_classes == (bool, date, datetime, dict, float, int, list, str, none_type,): + return True + valid_type = input_class_simple in valid_classes + if not valid_type and ( + issubclass(input_class_simple, OpenApiModel) or + input_class_simple is none_type): + for valid_class in valid_classes: + if input_class_simple is none_type and is_type_nullable(valid_class): + # Schema is oneOf/anyOf and the 'null' type is one of the allowed types. + return True + if not (issubclass(valid_class, OpenApiModel) and valid_class.discriminator): + continue + discr_propertyname_py = list(valid_class.discriminator.keys())[0] + discriminator_classes = ( + valid_class.discriminator[discr_propertyname_py].values() + ) + valid_type = is_valid_type(input_class_simple, discriminator_classes) + if valid_type: + return True + return valid_type + + +def validate_and_convert_types(input_value, required_types_mixed, path_to_item, + spec_property_naming, _check_type, configuration=None): + """Raises a TypeError is there is a problem, otherwise returns value + + Args: + input_value (any): the data to validate/convert + required_types_mixed (list/dict/tuple): A list of + valid classes, or a list tuples of valid classes, or a dict where + the value is a tuple of value classes + path_to_item: (list) the path to the data being validated + this stores a list of keys or indices to get to the data being + validated + spec_property_naming (bool): True if the variable names in the input + data are serialized names as specified in the OpenAPI document. + False if the variables names in the input data are python + variable names in PEP-8 snake case. + _check_type: (boolean) if true, type will be checked and conversion + will be attempted. + configuration: (Configuration): the configuration class to use + when converting file_type items. + If passed, conversion will be attempted when possible + If not passed, no conversions will be attempted and + exceptions will be raised + + Returns: + the correctly typed value + + Raises: + ApiTypeError + """ + results = get_required_type_classes(required_types_mixed, spec_property_naming) + valid_classes, child_req_types_by_current_type = results + + input_class_simple = get_simple_class(input_value) + valid_type = is_valid_type(input_class_simple, valid_classes) + if not valid_type: + if (configuration + or (input_class_simple == dict + and dict not in valid_classes)): + # if input_value is not valid_type try to convert it + converted_instance = attempt_convert_item( + input_value, + valid_classes, + path_to_item, + configuration, + spec_property_naming, + key_type=False, + must_convert=True, + check_type=_check_type + ) + return converted_instance + else: + raise get_type_error(input_value, path_to_item, valid_classes, + key_type=False) + + # input_value's type is in valid_classes + if len(valid_classes) > 1 and configuration: + # there are valid classes which are not the current class + valid_classes_coercible = remove_uncoercible( + valid_classes, input_value, spec_property_naming, must_convert=False) + if valid_classes_coercible: + converted_instance = attempt_convert_item( + input_value, + valid_classes_coercible, + path_to_item, + configuration, + spec_property_naming, + key_type=False, + must_convert=False, + check_type=_check_type + ) + return converted_instance + + if child_req_types_by_current_type == {}: + # all types are of the required types and there are no more inner + # variables left to look at + return input_value + inner_required_types = child_req_types_by_current_type.get( + type(input_value) + ) + if inner_required_types is None: + # for this type, there are not more inner variables left to look at + return input_value + if isinstance(input_value, list): + if input_value == []: + # allow an empty list + return input_value + for index, inner_value in enumerate(input_value): + inner_path = list(path_to_item) + inner_path.append(index) + input_value[index] = validate_and_convert_types( + inner_value, + inner_required_types, + inner_path, + spec_property_naming, + _check_type, + configuration=configuration + ) + elif isinstance(input_value, dict): + if input_value == {}: + # allow an empty dict + return input_value + for inner_key, inner_val in input_value.items(): + inner_path = list(path_to_item) + inner_path.append(inner_key) + if get_simple_class(inner_key) != str: + raise get_type_error(inner_key, inner_path, valid_classes, + key_type=True) + input_value[inner_key] = validate_and_convert_types( + inner_val, + inner_required_types, + inner_path, + spec_property_naming, + _check_type, + configuration=configuration + ) + return input_value + + +def model_to_dict(model_instance, serialize=True): + """Returns the model properties as a dict + + Args: + model_instance (one of your model instances): the model instance that + will be converted to a dict. + + Keyword Args: + serialize (bool): if True, the keys in the dict will be values from + attribute_map + """ + result = {} + + def extract_item(item): return ( + item[0], model_to_dict( + item[1], serialize=serialize)) if hasattr( + item[1], '_data_store') else item + + model_instances = [model_instance] + if model_instance._composed_schemas: + model_instances.extend(model_instance._composed_instances) + seen_json_attribute_names = set() + used_fallback_python_attribute_names = set() + py_to_json_map = {} + for model_instance in model_instances: + for attr, value in model_instance._data_store.items(): + if serialize: + # we use get here because additional property key names do not + # exist in attribute_map + try: + attr = model_instance.attribute_map[attr] + py_to_json_map.update(model_instance.attribute_map) + seen_json_attribute_names.add(attr) + except KeyError: + used_fallback_python_attribute_names.add(attr) + if isinstance(value, list): + if not value: + # empty list or None + result[attr] = value + else: + res = [] + for v in value: + if isinstance(v, PRIMITIVE_TYPES) or v is None: + res.append(v) + elif isinstance(v, ModelSimple): + res.append(v.value) + elif isinstance(v, dict): + res.append(dict(map( + extract_item, + v.items() + ))) + else: + res.append(model_to_dict(v, serialize=serialize)) + result[attr] = res + elif isinstance(value, dict): + result[attr] = dict(map( + extract_item, + value.items() + )) + elif isinstance(value, ModelSimple): + result[attr] = value.value + elif hasattr(value, '_data_store'): + result[attr] = model_to_dict(value, serialize=serialize) + else: + result[attr] = value + if serialize: + for python_key in used_fallback_python_attribute_names: + json_key = py_to_json_map.get(python_key) + if json_key is None: + continue + if python_key == json_key: + continue + json_key_assigned_no_need_for_python_key = json_key in seen_json_attribute_names + if json_key_assigned_no_need_for_python_key: + del result[python_key] + + return result + + +def type_error_message(var_value=None, var_name=None, valid_classes=None, + key_type=None): + """ + Keyword Args: + var_value (any): the variable which has the type_error + var_name (str): the name of the variable which has the typ error + valid_classes (tuple): the accepted classes for current_item's + value + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + """ + key_or_value = 'value' + if key_type: + key_or_value = 'key' + valid_classes_phrase = get_valid_classes_phrase(valid_classes) + msg = ( + "Invalid type for variable '{0}'. Required {1} type {2} and " + "passed type was {3}".format( + var_name, + key_or_value, + valid_classes_phrase, + type(var_value).__name__, + ) + ) + return msg + + +def get_valid_classes_phrase(input_classes): + """Returns a string phrase describing what types are allowed + """ + all_classes = list(input_classes) + all_classes = sorted(all_classes, key=lambda cls: cls.__name__) + all_class_names = [cls.__name__ for cls in all_classes] + if len(all_class_names) == 1: + return 'is {0}'.format(all_class_names[0]) + return "is one of [{0}]".format(", ".join(all_class_names)) + + +def get_allof_instances(self, model_args, constant_args): + """ + Args: + self: the class we are handling + model_args (dict): var_name to var_value + used to make instances + constant_args (dict): + metadata arguments: + _check_type + _path_to_item + _spec_property_naming + _configuration + _visited_composed_classes + + Returns + composed_instances (list) + """ + composed_instances = [] + for allof_class in self._composed_schemas['allOf']: + + try: + if constant_args.get('_spec_property_naming'): + allof_instance = allof_class._from_openapi_data(**model_args, **constant_args) + else: + allof_instance = allof_class(**model_args, **constant_args) + composed_instances.append(allof_instance) + except Exception as ex: + raise ApiValueError( + "Invalid inputs given to generate an instance of '%s'. The " + "input data was invalid for the allOf schema '%s' in the composed " + "schema '%s'. Error=%s" % ( + allof_class.__name__, + allof_class.__name__, + self.__class__.__name__, + str(ex) + ) + ) from ex + return composed_instances + + +def get_oneof_instance(cls, model_kwargs, constant_kwargs, model_arg=None): + """ + Find the oneOf schema that matches the input data (e.g. payload). + If exactly one schema matches the input data, an instance of that schema + is returned. + If zero or more than one schema match the input data, an exception is raised. + In OAS 3.x, the payload MUST, by validation, match exactly one of the + schemas described by oneOf. + + Args: + cls: the class we are handling + model_kwargs (dict): var_name to var_value + The input data, e.g. the payload that must match a oneOf schema + in the OpenAPI document. + constant_kwargs (dict): var_name to var_value + args that every model requires, including configuration, server + and path to item. + + Kwargs: + model_arg: (int, float, bool, str, date, datetime, ModelSimple, None): + the value to assign to a primitive class or ModelSimple class + Notes: + - this is only passed in when oneOf includes types which are not object + - None is used to suppress handling of model_arg, nullable models are handled in __new__ + + Returns + oneof_instance (instance) + """ + if len(cls._composed_schemas['oneOf']) == 0: + return None + + oneof_instances = [] + # Iterate over each oneOf schema and determine if the input data + # matches the oneOf schemas. + for oneof_class in cls._composed_schemas['oneOf']: + # The composed oneOf schema allows the 'null' type and the input data + # is the null value. This is a OAS >= 3.1 feature. + if oneof_class is none_type: + # skip none_types because we are deserializing dict data. + # none_type deserialization is handled in the __new__ method + continue + + single_value_input = allows_single_value_input(oneof_class) + + try: + if not single_value_input: + if constant_kwargs.get('_spec_property_naming'): + oneof_instance = oneof_class._from_openapi_data( + **model_kwargs, **constant_kwargs) + else: + oneof_instance = oneof_class(**model_kwargs, **constant_kwargs) + else: + if issubclass(oneof_class, ModelSimple): + if constant_kwargs.get('_spec_property_naming'): + oneof_instance = oneof_class._from_openapi_data( + model_arg, **constant_kwargs) + else: + oneof_instance = oneof_class(model_arg, **constant_kwargs) + elif oneof_class in PRIMITIVE_TYPES: + oneof_instance = validate_and_convert_types( + model_arg, + (oneof_class,), + constant_kwargs['_path_to_item'], + constant_kwargs['_spec_property_naming'], + constant_kwargs['_check_type'], + configuration=constant_kwargs['_configuration'] + ) + oneof_instances.append(oneof_instance) + except Exception: + pass + if len(oneof_instances) == 0: + raise ApiValueError( + "Invalid inputs given to generate an instance of %s. None " + "of the oneOf schemas matched the input data." % + cls.__name__ + ) + elif len(oneof_instances) > 1: + raise ApiValueError( + "Invalid inputs given to generate an instance of %s. Multiple " + "oneOf schemas matched the inputs, but a max of one is allowed." % + cls.__name__ + ) + return oneof_instances[0] + + +def get_anyof_instances(self, model_args, constant_args): + """ + Args: + self: the class we are handling + model_args (dict): var_name to var_value + The input data, e.g. the payload that must match at least one + anyOf child schema in the OpenAPI document. + constant_args (dict): var_name to var_value + args that every model requires, including configuration, server + and path to item. + + Returns + anyof_instances (list) + """ + anyof_instances = [] + if len(self._composed_schemas['anyOf']) == 0: + return anyof_instances + + for anyof_class in self._composed_schemas['anyOf']: + # The composed oneOf schema allows the 'null' type and the input data + # is the null value. This is a OAS >= 3.1 feature. + if anyof_class is none_type: + # skip none_types because we are deserializing dict data. + # none_type deserialization is handled in the __new__ method + continue + + try: + if constant_args.get('_spec_property_naming'): + anyof_instance = anyof_class._from_openapi_data(**model_args, **constant_args) + else: + anyof_instance = anyof_class(**model_args, **constant_args) + anyof_instances.append(anyof_instance) + except Exception: + pass + if len(anyof_instances) == 0: + raise ApiValueError( + "Invalid inputs given to generate an instance of %s. None of the " + "anyOf schemas matched the inputs." % + self.__class__.__name__ + ) + return anyof_instances + + +def get_discarded_args(self, composed_instances, model_args): + """ + Gathers the args that were discarded by configuration.discard_unknown_keys + """ + model_arg_keys = model_args.keys() + discarded_args = set() + # arguments passed to self were already converted to python names + # before __init__ was called + for instance in composed_instances: + if instance.__class__ in self._composed_schemas['allOf']: + try: + keys = instance.to_dict().keys() + discarded_keys = model_args - keys + discarded_args.update(discarded_keys) + except Exception: + # allOf integer schema will throw exception + pass + else: + try: + all_keys = set(model_to_dict(instance, serialize=False).keys()) + js_keys = model_to_dict(instance, serialize=True).keys() + all_keys.update(js_keys) + discarded_keys = model_arg_keys - all_keys + discarded_args.update(discarded_keys) + except Exception: + # allOf integer schema will throw exception + pass + return discarded_args + + +def validate_get_composed_info(constant_args, model_args, self): + """ + For composed schemas, generate schema instances for + all schemas in the oneOf/anyOf/allOf definition. If additional + properties are allowed, also assign those properties on + all matched schemas that contain additionalProperties. + Openapi schemas are python classes. + + Exceptions are raised if: + - 0 or > 1 oneOf schema matches the model_args input data + - no anyOf schema matches the model_args input data + - any of the allOf schemas do not match the model_args input data + + Args: + constant_args (dict): these are the args that every model requires + model_args (dict): these are the required and optional spec args that + were passed in to make this model + self (class): the class that we are instantiating + This class contains self._composed_schemas + + Returns: + composed_info (list): length three + composed_instances (list): the composed instances which are not + self + var_name_to_model_instances (dict): a dict going from var_name + to the model_instance which holds that var_name + the model_instance may be self or an instance of one of the + classes in self.composed_instances() + additional_properties_model_instances (list): a list of the + model instances which have the property + additional_properties_type. This list can include self + """ + # create composed_instances + composed_instances = [] + allof_instances = get_allof_instances(self, model_args, constant_args) + composed_instances.extend(allof_instances) + oneof_instance = get_oneof_instance(self.__class__, model_args, constant_args) + if oneof_instance is not None: + composed_instances.append(oneof_instance) + anyof_instances = get_anyof_instances(self, model_args, constant_args) + composed_instances.extend(anyof_instances) + """ + set additional_properties_model_instances + additional properties must be evaluated at the schema level + so self's additional properties are most important + If self is a composed schema with: + - no properties defined in self + - additionalProperties: False + Then for object payloads every property is an additional property + and they are not allowed, so only empty dict is allowed + + Properties must be set on all matching schemas + so when a property is assigned toa composed instance, it must be set on all + composed instances regardless of additionalProperties presence + keeping it to prevent breaking changes in v5.0.1 + TODO remove cls._additional_properties_model_instances in 6.0.0 + """ + additional_properties_model_instances = [] + if self.additional_properties_type is not None: + additional_properties_model_instances = [self] + + """ + no need to set properties on self in here, they will be set in __init__ + By here all composed schema oneOf/anyOf/allOf instances have their properties set using + model_args + """ + discarded_args = get_discarded_args(self, composed_instances, model_args) + + # map variable names to composed_instances + var_name_to_model_instances = {} + for prop_name in model_args: + if prop_name not in discarded_args: + var_name_to_model_instances[prop_name] = [self] + list( + filter( + lambda x: prop_name in x.openapi_types, composed_instances)) + + return [ + composed_instances, + var_name_to_model_instances, + additional_properties_model_instances, + discarded_args + ] diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/models/__init__.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/models/__init__.py new file mode 100644 index 00000000..54378f73 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/models/__init__.py @@ -0,0 +1,198 @@ +# flake8: noqa + +# import all models into this package +# if you have many models here with many references from one model to another this may +# raise a RecursionError +# to avoid this, import only the models that you directly need like: +# from criteo_api_retailmedia_v2023_07.model.pet import Pet +# or import this package, but before doing it, use: +# import sys +# sys.setrecursionlimit(n) + +from criteo_api_retailmedia_v2023_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from criteo_api_retailmedia_v2023_07.model.application_summary_model import ApplicationSummaryModel +from criteo_api_retailmedia_v2023_07.model.application_summary_model_resource import ApplicationSummaryModelResource +from criteo_api_retailmedia_v2023_07.model.application_summary_model_response import ApplicationSummaryModelResponse +from criteo_api_retailmedia_v2023_07.model.asset import Asset +from criteo_api_retailmedia_v2023_07.model.asset_resource import AssetResource +from criteo_api_retailmedia_v2023_07.model.asset_response import AssetResponse +from criteo_api_retailmedia_v2023_07.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest +from criteo_api_retailmedia_v2023_07.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_response import AuctionLineItemResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest +from criteo_api_retailmedia_v2023_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.audience_target202110_request import AudienceTarget202110Request +from criteo_api_retailmedia_v2023_07.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_07.model.balance202110_paged_list_response import Balance202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.campaign_attributes_v202301 import CampaignAttributesV202301 +from criteo_api_retailmedia_v2023_07.model.campaign_report import CampaignReport +from criteo_api_retailmedia_v2023_07.model.campaign_report_request import CampaignReportRequest +from criteo_api_retailmedia_v2023_07.model.campaign_report_resource import CampaignReportResource +from criteo_api_retailmedia_v2023_07.model.campaign_v202301 import CampaignV202301 +from criteo_api_retailmedia_v2023_07.model.category202204 import Category202204 +from criteo_api_retailmedia_v2023_07.model.category202204_list_response import Category202204ListResponse +from criteo_api_retailmedia_v2023_07.model.choice_option import ChoiceOption +from criteo_api_retailmedia_v2023_07.model.choice_variable_specification import ChoiceVariableSpecification +from criteo_api_retailmedia_v2023_07.model.choice_variable_value import ChoiceVariableValue +from criteo_api_retailmedia_v2023_07.model.color_variable_value import ColorVariableValue +from criteo_api_retailmedia_v2023_07.model.common_error import CommonError +from criteo_api_retailmedia_v2023_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse +from criteo_api_retailmedia_v2023_07.model.common_line_item_response import CommonLineItemResponse +from criteo_api_retailmedia_v2023_07.model.common_problem import CommonProblem +from criteo_api_retailmedia_v2023_07.model.common_status_code_response import CommonStatusCodeResponse +from criteo_api_retailmedia_v2023_07.model.common_warning import CommonWarning +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience import CreateRetailMediaAudience +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2 import CreateRetailMediaAudienceV2 +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_data import CreateRetailMediaAudienceV2Data +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request +from criteo_api_retailmedia_v2023_07.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2 +from criteo_api_retailmedia_v2023_07.model.creative202110 import Creative202110 +from criteo_api_retailmedia_v2023_07.model.creative202110_list_response import Creative202110ListResponse +from criteo_api_retailmedia_v2023_07.model.creative202210 import Creative202210 +from criteo_api_retailmedia_v2023_07.model.creative202210_list_response import Creative202210ListResponse +from criteo_api_retailmedia_v2023_07.model.creative202210_response import Creative202210Response +from criteo_api_retailmedia_v2023_07.model.creative_create_model202207 import CreativeCreateModel202207 +from criteo_api_retailmedia_v2023_07.model.creative_update_model202207 import CreativeUpdateModel202207 +from criteo_api_retailmedia_v2023_07.model.customer_list_details import CustomerListDetails +from criteo_api_retailmedia_v2023_07.model.editable_campaign_attributes_v202301 import EditableCampaignAttributesV202301 +from criteo_api_retailmedia_v2023_07.model.export_report_column import ExportReportColumn +from criteo_api_retailmedia_v2023_07.model.export_report_meta_data import ExportReportMetaData +from criteo_api_retailmedia_v2023_07.model.external_account import ExternalAccount +from criteo_api_retailmedia_v2023_07.model.external_add_to_basket_ids_update_model202110 import ExternalAddToBasketIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.external_add_to_basket_target202110 import ExternalAddToBasketTarget202110 +from criteo_api_retailmedia_v2023_07.model.external_auction_line_item import ExternalAuctionLineItem +from criteo_api_retailmedia_v2023_07.model.external_auction_line_item_create_model import ExternalAuctionLineItemCreateModel +from criteo_api_retailmedia_v2023_07.model.external_auction_line_item_update_model import ExternalAuctionLineItemUpdateModel +from criteo_api_retailmedia_v2023_07.model.external_audience_ids_update_model202110 import ExternalAudienceIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.external_audience_target202110 import ExternalAudienceTarget202110 +from criteo_api_retailmedia_v2023_07.model.external_balance202110 import ExternalBalance202110 +from criteo_api_retailmedia_v2023_07.model.external_brand import ExternalBrand +from criteo_api_retailmedia_v2023_07.model.external_catalog_request import ExternalCatalogRequest +from criteo_api_retailmedia_v2023_07.model.external_catalog_status import ExternalCatalogStatus +from criteo_api_retailmedia_v2023_07.model.external_common_line_item import ExternalCommonLineItem +from criteo_api_retailmedia_v2023_07.model.external_keyword_target202110 import ExternalKeywordTarget202110 +from criteo_api_retailmedia_v2023_07.model.external_line_item_capping202110 import ExternalLineItemCapping202110 +from criteo_api_retailmedia_v2023_07.model.external_line_item_page202110 import ExternalLineItemPage202110 +from criteo_api_retailmedia_v2023_07.model.external_line_item_page_category202110 import ExternalLineItemPageCategory202110 +from criteo_api_retailmedia_v2023_07.model.external_preferred_line_item202110 import ExternalPreferredLineItem202110 +from criteo_api_retailmedia_v2023_07.model.external_preferred_line_item_create_model202110 import ExternalPreferredLineItemCreateModel202110 +from criteo_api_retailmedia_v2023_07.model.external_preferred_line_item_update_model202110 import ExternalPreferredLineItemUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.external_promoted_product202110 import ExternalPromotedProduct202110 +from criteo_api_retailmedia_v2023_07.model.external_retailer import ExternalRetailer +from criteo_api_retailmedia_v2023_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 +from criteo_api_retailmedia_v2023_07.model.external_store_ids_update_model202110 import ExternalStoreIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.external_store_target202110 import ExternalStoreTarget202110 +from criteo_api_retailmedia_v2023_07.model.files_variable_value import FilesVariableValue +from criteo_api_retailmedia_v2023_07.model.files_variables_specification import FilesVariablesSpecification +from criteo_api_retailmedia_v2023_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse +from criteo_api_retailmedia_v2023_07.model.hyperlink_variable_value import HyperlinkVariableValue +from criteo_api_retailmedia_v2023_07.model.input_resource_of_auction_line_item_create_model import InputResourceOfAuctionLineItemCreateModel +from criteo_api_retailmedia_v2023_07.model.input_resource_of_preferred_line_item_create_model202110 import InputResourceOfPreferredLineItemCreateModel202110 +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_external_id_of_editable_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_campaign_v202301_and_campaign_v202301 import JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers import JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers +from criteo_api_retailmedia_v2023_07.model.json_api_body_with_id_of_int64_and_retailer_and_retailer import JsonApiBodyWithIdOfInt64AndRetailerAndRetailer +from criteo_api_retailmedia_v2023_07.model.json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301 import JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_body_without_id_of_catalog_request_and_catalog_request import JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_campaign_v202301 import JsonApiPageResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer +from criteo_api_retailmedia_v2023_07.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_line_item_bid_multipliers import JsonApiSingleResponseOfLineItemBidMultipliers +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_request import KeywordTarget202110Request +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers import LineItemBidMultipliers +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse +from criteo_api_retailmedia_v2023_07.model.line_item_report import LineItemReport +from criteo_api_retailmedia_v2023_07.model.line_item_report_request import LineItemReportRequest +from criteo_api_retailmedia_v2023_07.model.line_item_report_resource import LineItemReportResource +from criteo_api_retailmedia_v2023_07.model.page_metadata import PageMetadata +from criteo_api_retailmedia_v2023_07.model.page_type_environment import PageTypeEnvironment +from criteo_api_retailmedia_v2023_07.model.post_campaign_v202301 import PostCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +from criteo_api_retailmedia_v2023_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2023_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.problem_details import ProblemDetails +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.put_campaign_v202301 import PutCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.report_data_response_resource import ReportDataResponseResource +from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_07.model.report_response import ReportResponse +from criteo_api_retailmedia_v2023_07.model.resource_of_auction_line_item import ResourceOfAuctionLineItem +from criteo_api_retailmedia_v2023_07.model.resource_of_auction_line_item_update_model import ResourceOfAuctionLineItemUpdateModel +from criteo_api_retailmedia_v2023_07.model.resource_of_balance202110 import ResourceOfBalance202110 +from criteo_api_retailmedia_v2023_07.model.resource_of_balance_campaign202110 import ResourceOfBalanceCampaign202110 +from criteo_api_retailmedia_v2023_07.model.resource_of_category202204 import ResourceOfCategory202204 +from criteo_api_retailmedia_v2023_07.model.resource_of_common_line_item import ResourceOfCommonLineItem +from criteo_api_retailmedia_v2023_07.model.resource_of_creative202110 import ResourceOfCreative202110 +from criteo_api_retailmedia_v2023_07.model.resource_of_creative202210 import ResourceOfCreative202210 +from criteo_api_retailmedia_v2023_07.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers +from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item202110 import ResourceOfPreferredLineItem202110 +from criteo_api_retailmedia_v2023_07.model.resource_of_preferred_line_item_update_model202110 import ResourceOfPreferredLineItemUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.resource_of_promoted_product202110 import ResourceOfPromotedProduct202110 +from criteo_api_retailmedia_v2023_07.model.resource_of_template import ResourceOfTemplate +from criteo_api_retailmedia_v2023_07.model.retail_media_audience import RetailMediaAudience +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_attributes import RetailMediaAudienceAttributes +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2 import RetailMediaAudienceV2 +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model_resource import RetailMediaExternalv1AddRemoveKeywordsModelResource +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_input_keywords_model import RetailMediaExternalv1InputKeywordsModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keyword_data_model import RetailMediaExternalv1KeywordDataModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model import RetailMediaExternalv1KeywordsModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model_resource import RetailMediaExternalv1KeywordsModelResource +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model_response import RetailMediaExternalv1KeywordsModelResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_problem_details import RetailMediaExternalv1ProblemDetails +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model import RetailMediaExternalv1ProposalStatusModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model_resource import RetailMediaExternalv1ProposalStatusModelResource +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bid_model import RetailMediaExternalv1SetBidModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource +from criteo_api_retailmedia_v2023_07.model.section import Section +from criteo_api_retailmedia_v2023_07.model.status_response import StatusResponse +from criteo_api_retailmedia_v2023_07.model.status_response_resource import StatusResponseResource +from criteo_api_retailmedia_v2023_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.store_target202110_request import StoreTarget202110Request +from criteo_api_retailmedia_v2023_07.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_07.model.template import Template +from criteo_api_retailmedia_v2023_07.model.template_list_response import TemplateListResponse +from criteo_api_retailmedia_v2023_07.model.template_response import TemplateResponse +from criteo_api_retailmedia_v2023_07.model.template_variable import TemplateVariable +from criteo_api_retailmedia_v2023_07.model.template_variable_value import TemplateVariableValue +from criteo_api_retailmedia_v2023_07.model.text_variable_specification import TextVariableSpecification +from criteo_api_retailmedia_v2023_07.model.text_variable_value import TextVariableValue +from criteo_api_retailmedia_v2023_07.model.user_behavior_details import UserBehaviorDetails +from criteo_api_retailmedia_v2023_07.model.user_behavior_details_v2 import UserBehaviorDetailsV2 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_ids_update_model202110 import ValueTypeResourceOfAddToBasketIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_add_to_basket_target202110 import ValueTypeResourceOfAddToBasketTarget202110 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_audience_ids_update_model202110 import ValueTypeResourceOfAudienceIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_audience_target202110 import ValueTypeResourceOfAudienceTarget202110 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_keyword_target202110 import ValueTypeResourceOfKeywordTarget202110 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_store_ids_update_model202110 import ValueTypeResourceOfStoreIdsUpdateModel202110 +from criteo_api_retailmedia_v2023_07.model.value_type_resource_of_store_target202110 import ValueTypeResourceOfStoreTarget202110 diff --git a/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/rest.py b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/rest.py new file mode 100644 index 00000000..223d5158 --- /dev/null +++ b/sdks/retailmedia_2023-07/criteo_api_retailmedia_v2023_07/rest.py @@ -0,0 +1,352 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: 2023-07 + Generated by: https://openapi-generator.tech +""" + + +import io +import json +import logging +import re +import ssl +from urllib.parse import urlencode +from urllib.parse import urlparse +from urllib.request import proxy_bypass_environment +import urllib3 +import ipaddress + +from criteo_api_retailmedia_v2023_07.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + + if configuration.socket_options is not None: + addition_pool_args['socket_options'] = configuration.socket_options + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy and not should_bypass_proxies( + configuration.host, no_proxy=configuration.no_proxy or ''): + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=configuration.ssl_ca_cert, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=configuration.ssl_ca_cert, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, float)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + # Only set a default Content-Type for POST, PUT, PATCH and OPTIONS requests + if (method != 'DELETE') and ('Content-Type' not in headers): + headers['Content-Type'] = 'application/json' + if query_params: + url += '?' + urlencode(query_params) + if ('Content-Type' not in headers) or (re.search('json', + headers['Content-Type'], re.IGNORECASE)): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str) or isinstance(body, bytes): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + if r.status == 401: + raise UnauthorizedException(http_resp=r) + + if r.status == 403: + raise ForbiddenException(http_resp=r) + + if r.status == 404: + raise NotFoundException(http_resp=r) + + if 500 <= r.status <= 599: + raise ServiceException(http_resp=r) + + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + +# end of class RESTClientObject + + +def is_ipv4(target): + """ Test if IPv4 address or not + """ + try: + chk = ipaddress.IPv4Address(target) + return True + except ipaddress.AddressValueError: + return False + + +def in_ipv4net(target, net): + """ Test if target belongs to given IPv4 network + """ + try: + nw = ipaddress.IPv4Network(net) + ip = ipaddress.IPv4Address(target) + if ip in nw: + return True + return False + except ipaddress.AddressValueError: + return False + except ipaddress.NetmaskValueError: + return False + + +def should_bypass_proxies(url, no_proxy=None): + """ Yet another requests.should_bypass_proxies + Test if proxies should not be used for a particular url. + """ + + parsed = urlparse(url) + + # special cases + if parsed.hostname in [None, '']: + return True + + # special cases + if no_proxy in [None, '']: + return False + if no_proxy == '*': + return True + + no_proxy = no_proxy.lower().replace(' ', ''); + entries = ( + host for host in no_proxy.split(',') if host + ) + + if is_ipv4(parsed.hostname): + for item in entries: + if in_ipv4net(parsed.hostname, item): + return True + return proxy_bypass_environment(parsed.hostname, {'no': no_proxy}) diff --git a/sdks/retailmedia_2023-07/docs/AddToBasketIdsUpdateModel202110Request.md b/sdks/retailmedia_2023-07/docs/AddToBasketIdsUpdateModel202110Request.md new file mode 100644 index 00000000..bda7e641 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AddToBasketIdsUpdateModel202110Request.md @@ -0,0 +1,13 @@ +# AddToBasketIdsUpdateModel202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfAddToBasketIdsUpdateModel202110**](ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Request.md b/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Request.md new file mode 100644 index 00000000..a3e68f2a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Request.md @@ -0,0 +1,13 @@ +# AddToBasketTarget202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfAddToBasketTarget202110**](ValueTypeResourceOfAddToBasketTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Response.md b/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Response.md new file mode 100644 index 00000000..e8853087 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AddToBasketTarget202110Response.md @@ -0,0 +1,15 @@ +# AddToBasketTarget202110Response + +Data model for a value type resource outcome + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfAddToBasketTarget202110**](ValueTypeResourceOfAddToBasketTarget202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AnalyticsApi.md b/sdks/retailmedia_2023-07/docs/AnalyticsApi.md new file mode 100644 index 00000000..0286b8c2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AnalyticsApi.md @@ -0,0 +1,412 @@ +# criteo_api_retailmedia_v2023_07.AnalyticsApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**generate_campaign_reports**](AnalyticsApi.md#generate_campaign_reports) | **POST** /2023-07/retail-media/reports/campaigns | +[**generate_line_items_reports**](AnalyticsApi.md#generate_line_items_reports) | **POST** /2023-07/retail-media/reports/line-items | +[**get_async_export_output**](AnalyticsApi.md#get_async_export_output) | **GET** /2023-07/retail-media/reports/{reportId}/output | +[**get_async_export_status**](AnalyticsApi.md#get_async_export_status) | **GET** /2023-07/retail-media/reports/{reportId}/status | + + +# **generate_campaign_reports** +> ReportResponse generate_campaign_reports(campaign_report_request) + + + +Return a Campaign Report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import analytics_api +from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_07.model.report_response import ReportResponse +from criteo_api_retailmedia_v2023_07.model.campaign_report_request import CampaignReportRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + campaign_report_request = CampaignReportRequest( + data=CampaignReportResource( + type="type_example", + attributes=CampaignReport( + report_type="summary", + campaign_ids=[ + "campaign_ids_example", + ], + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + account_id="account_id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + click_attribution_window="7D", + view_attribution_window="none", + campaign_type="sponsoredProducts", + sales_channel="offline", + ), + ), + ) # CampaignReportRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.generate_campaign_reports(campaign_report_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->generate_campaign_reports: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_report_request** | [**CampaignReportRequest**](CampaignReportRequest.md)| | + +### Return type + +[**ReportResponse**](ReportResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **generate_line_items_reports** +> ReportResponse generate_line_items_reports(line_item_report_request) + + + +Return a Line Item Report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import analytics_api +from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_v2023_07.model.line_item_report_request import LineItemReportRequest +from criteo_api_retailmedia_v2023_07.model.report_response import ReportResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + line_item_report_request = LineItemReportRequest( + data=LineItemReportResource( + type="type_example", + attributes=LineItemReport( + report_type="summary", + line_item_ids=[ + "line_item_ids_example", + ], + campaign_ids=[ + "campaign_ids_example", + ], + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + account_id="account_id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="timezone_example", + click_attribution_window="7D", + view_attribution_window="1D", + campaign_type="sponsoredProducts", + sales_channel="offline", + ), + ), + ) # LineItemReportRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.generate_line_items_reports(line_item_report_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->generate_line_items_reports: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_report_request** | [**LineItemReportRequest**](LineItemReportRequest.md)| | + +### Return type + +[**ReportResponse**](ReportResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_async_export_output** +> str get_async_export_output(report_id) + + + +Return the output of an async report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import analytics_api +from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + report_id = "reportId_example" # str | The ID of the report to retrieve + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_async_export_output(report_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_async_export_output: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_id** | **str**| The ID of the report to retrieve | + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_async_export_status** +> AsyncReportResponse get_async_export_status(report_id) + + + +Return the status of an async report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import analytics_api +from criteo_api_retailmedia_v2023_07.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_v2023_07.model.report_outcome import ReportOutcome +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + report_id = "reportId_example" # str | The ID of the report to retrieve + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_async_export_status(report_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AnalyticsApi->get_async_export_status: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_id** | **str**| The ID of the report to retrieve | + +### Return type + +[**AsyncReportResponse**](AsyncReportResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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/sdks/retailmedia_2023-07/docs/ApplicationSummaryModel.md b/sdks/retailmedia_2023-07/docs/ApplicationSummaryModel.md new file mode 100644 index 00000000..ca098c15 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ApplicationSummaryModel.md @@ -0,0 +1,17 @@ +# ApplicationSummaryModel + +Model of ApplicationSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**application_id** | **int** | | [optional] +**name** | **str** | | [optional] +**organization_id** | **int** | | [optional] +**description** | **str** | | [optional] +**criteo_service** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResource.md b/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResource.md new file mode 100644 index 00000000..76b5913d --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResource.md @@ -0,0 +1,14 @@ +# ApplicationSummaryModelResource + +A class that represents a ValueType in a guild compliant way + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ApplicationSummaryModel**](ApplicationSummaryModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResponse.md b/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResponse.md new file mode 100644 index 00000000..0393e98e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ApplicationSummaryModelResponse.md @@ -0,0 +1,15 @@ +# ApplicationSummaryModelResponse + +Response of ApplicationSummaryModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ApplicationSummaryModelResource**](ApplicationSummaryModelResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Asset.md b/sdks/retailmedia_2023-07/docs/Asset.md new file mode 100644 index 00000000..371b467a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Asset.md @@ -0,0 +1,15 @@ +# Asset + +Handles pointing towards binary content that advertisers can use later on, for example in their creatives. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_extension** | **str** | The file extension that is asset is representing. Example: jpg, png, gif or pdf. | +**file_location** | **str** | A url pointing towards the static file the asset represents. | [optional] +**id** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AssetResource.md b/sdks/retailmedia_2023-07/docs/AssetResource.md new file mode 100644 index 00000000..29cecd24 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AssetResource.md @@ -0,0 +1,15 @@ +# AssetResource + +A class that represents an entity in a guild compliant way + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Asset**](Asset.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AssetResponse.md b/sdks/retailmedia_2023-07/docs/AssetResponse.md new file mode 100644 index 00000000..27f2d519 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AssetResponse.md @@ -0,0 +1,15 @@ +# AssetResponse + +A class implementing the response of the Criteo API as described in API Guild Guidelines with a single entity as body + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AssetResource**](AssetResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AsyncReportResponse.md b/sdks/retailmedia_2023-07/docs/AsyncReportResponse.md new file mode 100644 index 00000000..4d49d5e3 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AsyncReportResponse.md @@ -0,0 +1,15 @@ +# AsyncReportResponse + +Async Report response format + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**StatusResponseResource**](StatusResponseResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AuctionLineItemCreateModelRequest.md b/sdks/retailmedia_2023-07/docs/AuctionLineItemCreateModelRequest.md new file mode 100644 index 00000000..76a6ec3f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AuctionLineItemCreateModelRequest.md @@ -0,0 +1,13 @@ +# AuctionLineItemCreateModelRequest + +Data model for a create input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**InputResourceOfAuctionLineItemCreateModel**](InputResourceOfAuctionLineItemCreateModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AuctionLineItemPagedListResponse.md b/sdks/retailmedia_2023-07/docs/AuctionLineItemPagedListResponse.md new file mode 100644 index 00000000..ee2fe577 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AuctionLineItemPagedListResponse.md @@ -0,0 +1,16 @@ +# AuctionLineItemPagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfAuctionLineItem]**](ResourceOfAuctionLineItem.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AuctionLineItemResponse.md b/sdks/retailmedia_2023-07/docs/AuctionLineItemResponse.md new file mode 100644 index 00000000..b2df751f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AuctionLineItemResponse.md @@ -0,0 +1,15 @@ +# AuctionLineItemResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfAuctionLineItem**](ResourceOfAuctionLineItem.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AuctionLineItemUpdateModelRequest.md b/sdks/retailmedia_2023-07/docs/AuctionLineItemUpdateModelRequest.md new file mode 100644 index 00000000..b686170a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AuctionLineItemUpdateModelRequest.md @@ -0,0 +1,13 @@ +# AuctionLineItemUpdateModelRequest + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfAuctionLineItemUpdateModel**](ResourceOfAuctionLineItemUpdateModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AudienceApi.md b/sdks/retailmedia_2023-07/docs/AudienceApi.md new file mode 100644 index 00000000..cc4b2f6c --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AudienceApi.md @@ -0,0 +1,451 @@ +# criteo_api_retailmedia_v2023_07.AudienceApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_audience**](AudienceApi.md#create_audience) | **POST** /2023-07/retail-media/accounts/{accountId}/audiences | +[**create_retail_media_audience_v2**](AudienceApi.md#create_retail_media_audience_v2) | **POST** /2023-07/retail-media/v2/accounts/{accountId}/audiences | +[**get_audiences_by_account_id**](AudienceApi.md#get_audiences_by_account_id) | **GET** /2023-07/retail-media/accounts/{accountId}/audiences | +[**get_retail_media_audience_v2_list_by_account_id**](AudienceApi.md#get_retail_media_audience_v2_list_by_account_id) | **GET** /2023-07/retail-media/v2/accounts/{accountId}/audiences | + + +# **create_audience** +> CreateRetailMediaAudienceResponse create_audience(account_id, create_retail_media_audience_request) + + + +Create an audience for a given account ID + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import audience_api +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. + create_retail_media_audience_request = CreateRetailMediaAudienceRequest( + data=CreateRetailMediaAudienceBody( + type="RetailMediaAudience", + attributes=CreateRetailMediaAudienceAttributes( + user_type="viewer", + lookback_window="P7D", + brand_ids=[ + 1, + ], + category_ids=[ + 1, + ], + retailer_id=6841, + name="Test audience", + ), + ), + ) # CreateRetailMediaAudienceRequest | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_audience(account_id, create_retail_media_audience_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->create_audience: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **int**| ID of the account to which this audience belongs. | + **create_retail_media_audience_request** | [**CreateRetailMediaAudienceRequest**](CreateRetailMediaAudienceRequest.md)| | + +### Return type + +[**CreateRetailMediaAudienceResponse**](CreateRetailMediaAudienceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The audience that was just created. | - | +**400** | Missing or invalid account ID. - OR - Missing or invalid retailerID field. - OR - Missing or invalid name field. Name should be less than 255 characters. - OR - Missing or invalid userType field. Valid values are: 'buy', 'view'. - OR - The retailerTaxonomyIds is not a valid list of IDs or may contain more than 100 elements. - OR - Missing or invalid lookbackDays field.  Valid values are: 7, 14,  30, 45, 60, 90, 120, 150 or 180. - OR - Exactly one of retailerTaxonomyIds or globalBrandIds must be specified, but not both. - OR - The retailer is invalid because it is not live - OR - The globalBrandIds is not a valid list of IDs or may contain more than 100 elements. | - | +**404** | The audience was not found. - OR - You do not have permission to access these global brands. | - | +**406** | The Accept header must contain application/json. | - | +**409** | An audience name should be unique per account. | - | +**415** | The Content-Type header must be application/json if present. | - | + +[[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_retail_media_audience_v2** +> RetailMediaAudienceV2Response create_retail_media_audience_v2(account_id, create_retail_media_audience_v2_request) + + + +Create an audience for a given account ID + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import audience_api +from criteo_api_retailmedia_v2023_07.model.common_status_code_response import CommonStatusCodeResponse +from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. + create_retail_media_audience_v2_request = CreateRetailMediaAudienceV2Request( + data=CreateRetailMediaAudienceV2Data( + type="RetailMediaAudience", + attributes=CreateRetailMediaAudienceV2Attributes( + retailer_id=6041, + user_behavior_details=UserBehaviorDetailsV2( + inclusive_segment=CreateUserBehaviorSegmentV2( + user_action="buy", + lookback_window="P7D", + category_ids=[ + 1, + ], + brand_ids=[ + 1, + ], + ), + exclusive_segment=CreateUserBehaviorSegmentV2( + user_action="buy", + lookback_window="P7D", + category_ids=[ + 1, + ], + brand_ids=[ + 1, + ], + ), + ), + name="Test audience", + ), + ), + ) # CreateRetailMediaAudienceV2Request | + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_retail_media_audience_v2(account_id, create_retail_media_audience_v2_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->create_retail_media_audience_v2: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **int**| ID of the account to which this audience belongs. | + **create_retail_media_audience_v2_request** | [**CreateRetailMediaAudienceV2Request**](CreateRetailMediaAudienceV2Request.md)| | + +### Return type + +[**RetailMediaAudienceV2Response**](RetailMediaAudienceV2Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | The audience that was just created. | - | +**400** | Missing or invalid retailerID field. - OR - Missing or invalid name field. Name should be less than 255 characters. - OR - Missing or invalid userType field. Valid values are: 'buyer', 'viewer'. - OR - The brandIds is not a valid list of IDs or may contain more than 100 elements. - OR - The categoryIds is not a valid list of IDs or may contain more than 100 elements. - OR - Missing or invalid lookbackWindow field. Valid values are: P7D, P14D, P30D, P45D, P60D, P90D, P120D, P150D or P180D. - OR - Exactly one of categoryIds or brandIds must be specified, but not both. - OR - The retailer is invalid because it is not live - OR - Missing or invalid userAction field. Valid values are: 'buy', 'view', 'addToCart'. | - | +**403** | Missing or invalid account ID. | - | +**406** | The Accept header must contain application/json. | - | +**409** | An audience name should be unique per account. | - | +**415** | The Content-Type header must be application/json if present. | - | + +[[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) + +# **get_audiences_by_account_id** +> GetPageOfAudiencesByAccountIdResponse get_audiences_by_account_id(account_id) + + + +Get a page of audiences for a given account ID + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import audience_api +from criteo_api_retailmedia_v2023_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + account_id = "68004146450571264" # str | External account ID which owns audience. + limit_to_id = [ + "limitToId_example", + ] # [str] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) + page_size = 25 # int | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page (optional) + page_index = 0 # int | Returns the specified page of results given a pageSize; pages are 0-indexed (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_audiences_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_audiences_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_audiences_by_account_id(account_id, limit_to_id=limit_to_id, page_size=page_size, page_index=page_index) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_audiences_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| External account ID which owns audience. | + **limit_to_id** | **[str]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] + **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page | [optional] + **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed | [optional] + +### Return type + +[**GetPageOfAudiencesByAccountIdResponse**](GetPageOfAudiencesByAccountIdResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A page of audiences for the supplied account. | - | +**400** | Missing or invalid account ID. | - | +**404** | The audience was not found. | - | +**406** | The Accept header must contain application/json. | - | +**415** | The Content-Type header must be application/json if present. | - | + +[[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) + +# **get_retail_media_audience_v2_list_by_account_id** +> RetailMediaAudienceV2ListResponse get_retail_media_audience_v2_list_by_account_id(account_id) + + + +Get a page of audiences for a given account ID + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import audience_api +from criteo_api_retailmedia_v2023_07.model.common_status_code_response import CommonStatusCodeResponse +from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = audience_api.AudienceApi(api_client) + account_id = 68004146450571264 # int | External account ID which owns audience. + limit_to_id = [ + 1, + ] # [int] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) + page_size = 25 # int | Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page (optional) + page_index = 0 # int | Returns the specified page of results given a pageSize; pages are 0-indexed (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_retail_media_audience_v2_list_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_retail_media_audience_v2_list_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_retail_media_audience_v2_list_by_account_id(account_id, limit_to_id=limit_to_id, page_size=page_size, page_index=page_index) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling AudienceApi->get_retail_media_audience_v2_list_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **int**| External account ID which owns audience. | + **limit_to_id** | **[int]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] + **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page | [optional] + **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed | [optional] + +### Return type + +[**RetailMediaAudienceV2ListResponse**](RetailMediaAudienceV2ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A page of audiences for the supplied account. | - | +**403** | Missing or invalid account ID. - OR - You do not have permission to access this account. | - | +**406** | The Accept header must contain application/json. | - | +**415** | The Content-Type header must be application/json if present. | - | + +[[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/sdks/retailmedia_2023-07/docs/AudienceIdsUpdateModel202110Request.md b/sdks/retailmedia_2023-07/docs/AudienceIdsUpdateModel202110Request.md new file mode 100644 index 00000000..d39c5830 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AudienceIdsUpdateModel202110Request.md @@ -0,0 +1,13 @@ +# AudienceIdsUpdateModel202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfAudienceIdsUpdateModel202110**](ValueTypeResourceOfAudienceIdsUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AudienceTarget202110Request.md b/sdks/retailmedia_2023-07/docs/AudienceTarget202110Request.md new file mode 100644 index 00000000..26a5230f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AudienceTarget202110Request.md @@ -0,0 +1,13 @@ +# AudienceTarget202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfAudienceTarget202110**](ValueTypeResourceOfAudienceTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/AudienceTarget202110Response.md b/sdks/retailmedia_2023-07/docs/AudienceTarget202110Response.md new file mode 100644 index 00000000..06a1dea2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/AudienceTarget202110Response.md @@ -0,0 +1,15 @@ +# AudienceTarget202110Response + +Data model for a value type resource outcome + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfAudienceTarget202110**](ValueTypeResourceOfAudienceTarget202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md new file mode 100644 index 00000000..880c26b5 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Balance202110PagedListResponse.md @@ -0,0 +1,16 @@ +# Balance202110PagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfBalance202110]**](ResourceOfBalance202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/BalanceCampaign202110ListRequest.md b/sdks/retailmedia_2023-07/docs/BalanceCampaign202110ListRequest.md new file mode 100644 index 00000000..9f2ae1aa --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/BalanceCampaign202110ListRequest.md @@ -0,0 +1,13 @@ +# BalanceCampaign202110ListRequest + +A class implementing the request of the Criteo API as described in API Guild Guidelines with a collection of entities as body https://criteo.atlassian.net/wiki/spaces/GUA/pages/1564541212/Response+Body+Guidelines + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ResourceOfBalanceCampaign202110]**](ResourceOfBalanceCampaign202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/BalanceCampaign202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/BalanceCampaign202110PagedListResponse.md new file mode 100644 index 00000000..a8574f99 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/BalanceCampaign202110PagedListResponse.md @@ -0,0 +1,16 @@ +# BalanceCampaign202110PagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfBalanceCampaign202110]**](ResourceOfBalanceCampaign202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CampaignApi.md b/sdks/retailmedia_2023-07/docs/CampaignApi.md new file mode 100644 index 00000000..2bf4b92c --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CampaignApi.md @@ -0,0 +1,6219 @@ +# criteo_api_retailmedia_v2023_07.CampaignApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_remove_keywords**](CampaignApi.md#add_remove_keywords) | **POST** /2023-07/retail-media/line-items/{id}/keywords/add-remove | +[**create_asset**](CampaignApi.md#create_asset) | **POST** /2023-07/retail-media/assets | +[**fetch_keywords**](CampaignApi.md#fetch_keywords) | **GET** /2023-07/retail-media/line-items/{id}/keywords | +[**fetch_proposal**](CampaignApi.md#fetch_proposal) | **GET** /2023-07/retail-media/preferred-deal-line-items/{id}/proposal | +[**get_api202110_external_account_balances_by_account_id**](CampaignApi.md#get_api202110_external_account_balances_by_account_id) | **GET** /2023-07/retail-media/accounts/{account-id}/balances | +[**get_api202110_external_account_creatives_by_account_id**](CampaignApi.md#get_api202110_external_account_creatives_by_account_id) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives | +[**get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id**](CampaignApi.md#get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id) | **GET** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords | +[**get_api202110_external_balance_campaigns_by_balance_id**](CampaignApi.md#get_api202110_external_balance_campaigns_by_balance_id) | **GET** /2023-07/retail-media/balances/{balance-id}/campaigns | +[**get_api202110_external_campaign_preferred_line_items_by_campaign_id**](CampaignApi.md#get_api202110_external_campaign_preferred_line_items_by_campaign_id) | **GET** /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items | +[**get_api202110_external_line_item_products_by_line_item_id**](CampaignApi.md#get_api202110_external_line_item_products_by_line_item_id) | **GET** /2023-07/retail-media/line-items/{line-item-id}/products | +[**get_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_by_line_item_id) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id} | +[**get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | +[**get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | +[**get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id**](CampaignApi.md#get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id) | **GET** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | +[**get_api202110_external_retailer_pages_by_retailer_id**](CampaignApi.md#get_api202110_external_retailer_pages_by_retailer_id) | **GET** /2023-07/retail-media/retailers/{retailerId}/pages | +[**get_api202204_external_categorie_by_category_id**](CampaignApi.md#get_api202204_external_categorie_by_category_id) | **GET** /2023-07/retail-media/categories/{categoryId} | +[**get_api202204_external_categories**](CampaignApi.md#get_api202204_external_categories) | **GET** /2023-07/retail-media/categories | +[**get_api202207_external_retailer_by_retailer_id_templatestemplate_id**](CampaignApi.md#get_api202207_external_retailer_by_retailer_id_templatestemplate_id) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates/{template-id} | +[**get_api202207_external_retailer_templates_by_retailer_id**](CampaignApi.md#get_api202207_external_retailer_templates_by_retailer_id) | **GET** /2023-07/retail-media/retailers/{retailer-id}/templates | +[**get_api202210_external_account_by_account_id_creativescreative_id**](CampaignApi.md#get_api202210_external_account_by_account_id_creativescreative_id) | **GET** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | +[**get_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#get_api202301_external_account_campaigns_by_account_id) | **GET** /2023-07/retail-media/accounts/{accountId}/campaigns | +[**get_api202301_external_campaign_by_campaign_id**](CampaignApi.md#get_api202301_external_campaign_by_campaign_id) | **GET** /2023-07/retail-media/campaigns/{campaignId} | +[**get_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#get_api202301_external_line_item_bid_multipliers_by_line_item_id) | **GET** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | +[**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /2023-07/retail-media/accounts/{accountId}/brands | +[**get_api_v1_external_account_retailers_by_account_id**](CampaignApi.md#get_api_v1_external_account_retailers_by_account_id) | **GET** /2023-07/retail-media/accounts/{accountId}/retailers | +[**get_api_v1_external_accounts**](CampaignApi.md#get_api_v1_external_accounts) | **GET** /2023-07/retail-media/accounts | +[**get_api_v1_external_catalog_output_by_catalog_id**](CampaignApi.md#get_api_v1_external_catalog_output_by_catalog_id) | **GET** /2023-07/retail-media/catalogs/{catalogId}/output | +[**get_api_v1_external_catalog_status_by_catalog_id**](CampaignApi.md#get_api_v1_external_catalog_status_by_catalog_id) | **GET** /2023-07/retail-media/catalogs/{catalogId}/status | +[**get_api_v2_external_account_line_items_by_account_id**](CampaignApi.md#get_api_v2_external_account_line_items_by_account_id) | **GET** /2023-07/retail-media/accounts/{account-id}/line-items | +[**get_api_v2_external_auction_line_item_by_line_item_id**](CampaignApi.md#get_api_v2_external_auction_line_item_by_line_item_id) | **GET** /2023-07/retail-media/auction-line-items/{line-item-id} | +[**get_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#get_api_v2_external_campaign_auction_line_items_by_campaign_id) | **GET** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | +[**get_api_v2_external_line_item_by_line_item_id**](CampaignApi.md#get_api_v2_external_line_item_by_line_item_id) | **GET** /2023-07/retail-media/line-items/{line-item-id} | +[**post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id**](CampaignApi.md#post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id) | **POST** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append | +[**post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id) | **POST** /2023-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete | +[**post_api202110_external_balance_campaigns_append_by_balance_id**](CampaignApi.md#post_api202110_external_balance_campaigns_append_by_balance_id) | **POST** /2023-07/retail-media/balances/{balance-id}/campaigns/append | +[**post_api202110_external_balance_campaigns_delete_by_balance_id**](CampaignApi.md#post_api202110_external_balance_campaigns_delete_by_balance_id) | **POST** /2023-07/retail-media/balances/{balance-id}/campaigns/delete | +[**post_api202110_external_campaign_preferred_line_items_by_campaign_id**](CampaignApi.md#post_api202110_external_campaign_preferred_line_items_by_campaign_id) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/preferred-line-items | +[**post_api202110_external_line_item_products_append_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_append_by_line_item_id) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/append | +[**post_api202110_external_line_item_products_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_delete_by_line_item_id) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/delete | +[**post_api202110_external_line_item_products_pause_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_pause_by_line_item_id) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/pause | +[**post_api202110_external_line_item_products_unpause_by_line_item_id**](CampaignApi.md#post_api202110_external_line_item_products_unpause_by_line_item_id) | **POST** /2023-07/retail-media/line-items/{line-item-id}/products/unpause | +[**post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/append | +[**post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket/delete | +[**post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/append | +[**post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences/delete | +[**post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/append | +[**post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id**](CampaignApi.md#post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id) | **POST** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores/delete | +[**post_api202210_external_account_creatives_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_by_account_id) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives | +[**post_api202210_external_account_creatives_search_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_search_by_account_id) | **POST** /2023-07/retail-media/accounts/{account-id}/creatives/search | +[**post_api202301_external_account_campaigns_by_account_id**](CampaignApi.md#post_api202301_external_account_campaigns_by_account_id) | **POST** /2023-07/retail-media/accounts/{accountId}/campaigns | +[**post_api_v1_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v1_external_account_catalogs_by_account_id) | **POST** /2023-07/retail-media/accounts/{accountId}/catalogs | +[**post_api_v2_external_campaign_auction_line_items_by_campaign_id**](CampaignApi.md#post_api_v2_external_campaign_auction_line_items_by_campaign_id) | **POST** /2023-07/retail-media/campaigns/{campaign-id}/auction-line-items | +[**put_api202110_external_preferred_line_item_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_by_line_item_id) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id} | +[**put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/add-to-basket | +[**put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/audiences | +[**put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id**](CampaignApi.md#put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id) | **PUT** /2023-07/retail-media/preferred-line-items/{line-item-id}/targeting/stores | +[**put_api202210_external_account_by_account_id_creativescreative_id**](CampaignApi.md#put_api202210_external_account_by_account_id_creativescreative_id) | **PUT** /2023-07/retail-media/accounts/{account-id}/creatives/{creative-id} | +[**put_api202301_external_campaign_by_campaign_id**](CampaignApi.md#put_api202301_external_campaign_by_campaign_id) | **PUT** /2023-07/retail-media/campaigns/{campaignId} | +[**put_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#put_api202301_external_line_item_bid_multipliers_by_line_item_id) | **PUT** /2023-07/retail-media/line-items/{line-item-id}/bid-multipliers | +[**put_api_v2_external_auction_line_item_by_line_item_id**](CampaignApi.md#put_api_v2_external_auction_line_item_by_line_item_id) | **PUT** /2023-07/retail-media/auction-line-items/{line-item-id} | +[**set_keyword_bids**](CampaignApi.md#set_keyword_bids) | **POST** /2023-07/retail-media/line-items/{id}/keywords/set-bid | +[**submit_proposal**](CampaignApi.md#submit_proposal) | **POST** /2023-07/retail-media/preferred-deal-line-items/{id}/proposal/submit | + + +# **add_remove_keywords** +> RetailMediaExternalv1ResourceOutcome add_remove_keywords(id) + + + +Add or Remove keywords from the associated line item in bulk + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_add_remove_keywords_model_request import RetailMediaExternalv1AddRemoveKeywordsModelRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + id = "id_example" # str | Long external id of the associated line item + retail_media_externalv1_add_remove_keywords_model_request = RetailMediaExternalv1AddRemoveKeywordsModelRequest( + data=RetailMediaExternalv1AddRemoveKeywordsModelResource( + id="id_example", + type="type_example", + attributes=RetailMediaExternalv1AddRemoveKeywordsModel( + keywords=[ + RetailMediaExternalv1AddRemoveKeywordModel( + phrase="phrase_example", + match_type="PositiveExactMatch", + is_deleted=True, + ), + ], + ), + ), + ) # RetailMediaExternalv1AddRemoveKeywordsModelRequest | Object containing keywords to be added or removed (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.add_remove_keywords(id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->add_remove_keywords: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.add_remove_keywords(id, retail_media_externalv1_add_remove_keywords_model_request=retail_media_externalv1_add_remove_keywords_model_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->add_remove_keywords: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Long external id of the associated line item | + **retail_media_externalv1_add_remove_keywords_model_request** | [**RetailMediaExternalv1AddRemoveKeywordsModelRequest**](RetailMediaExternalv1AddRemoveKeywordsModelRequest.md)| Object containing keywords to be added or removed | [optional] + +### Return type + +[**RetailMediaExternalv1ResourceOutcome**](RetailMediaExternalv1ResourceOutcome.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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_asset** +> AssetResponse create_asset(asset_file) + + + +Creates an asset + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.asset_response import AssetResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + asset_file = open('/path/to/file', 'rb') # file_type | The asset binary content + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.create_asset(asset_file) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->create_asset: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **asset_file** | **file_type**| The asset binary content | + +### Return type + +[**AssetResponse**](AssetResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | + +[[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) + +# **fetch_keywords** +> RetailMediaExternalv1KeywordsModelResponse fetch_keywords(id) + + + +Fetch keywords associated with the specified line item + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_keywords_model_response import RetailMediaExternalv1KeywordsModelResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + id = "id_example" # str | Long external id of the associated line item + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.fetch_keywords(id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->fetch_keywords: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Long external id of the associated line item | + +### Return type + +[**RetailMediaExternalv1KeywordsModelResponse**](RetailMediaExternalv1KeywordsModelResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **fetch_proposal** +> RetailMediaExternalv1ProposalStatusModelResponse fetch_proposal(id) + + + +Fetch the status of a proposal to modify a Preferred Deal Line Item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + id = "id_example" # str | The external id of a line item. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.fetch_proposal(id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->fetch_proposal: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The external id of a line item. | + +### Return type + +[**RetailMediaExternalv1ProposalStatusModelResponse**](RetailMediaExternalv1ProposalStatusModelResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**500** | Server Error | - | +**403** | Forbidden | - | + +[[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) + +# **get_api202110_external_account_balances_by_account_id** +> Balance202110PagedListResponse get_api202110_external_account_balances_by_account_id(account_id) + + + +Gets page of balance objects for the given account id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.balance202110_paged_list_response import Balance202110PagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | The account to get balances for + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_account_balances_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_account_balances_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api202110_external_account_balances_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_account_balances_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account to get balances for | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**Balance202110PagedListResponse**](Balance202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api202110_external_account_creatives_by_account_id** +> Creative202110ListResponse get_api202110_external_account_creatives_by_account_id(account_id) + + + +Get account creatives + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.creative202110_list_response import Creative202110ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | External account id to retrieve creatives for + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_account_creatives_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_account_creatives_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| External account id to retrieve creatives for | + +### Return type + +[**Creative202110ListResponse**](Creative202110ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Creatives found | - | + +[[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) + +# **get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id** +> KeywordTarget202110Response get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id) + + + +This endpoint gets the keyword target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_response import KeywordTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + +### Return type + +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api202110_external_balance_campaigns_by_balance_id** +> BalanceCampaign202110PagedListResponse get_api202110_external_balance_campaigns_by_balance_id(balance_id) + + + +Gets page of campaigns for the given balanceId + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + balance_id = "balance-id_example" # str | The balance to get campaigns from + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_balance_campaigns_by_balance_id(balance_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_balance_campaigns_by_balance_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api202110_external_balance_campaigns_by_balance_id(balance_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_balance_campaigns_by_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **balance_id** | **str**| The balance to get campaigns from | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api202110_external_campaign_preferred_line_items_by_campaign_id** +> PreferredLineItem202110PagedListResponse get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) + + + +Gets page of preferred line item objects for the given campaign id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_paged_list_response import PreferredLineItem202110PagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaign-id_example" # str | The given campaign id + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| The given campaign id | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**PreferredLineItem202110PagedListResponse**](PreferredLineItem202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api202110_external_line_item_products_by_line_item_id** +> PromotedProduct202110PagedListResponse get_api202110_external_line_item_products_by_line_item_id(line_item_id) + + + +This endpoint gets the promoted products on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_line_item_products_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_line_item_products_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api202110_external_line_item_products_by_line_item_id(line_item_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_line_item_products_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api202110_external_preferred_line_item_by_line_item_id** +> PreferredLineItem202110Response get_api202110_external_preferred_line_item_by_line_item_id(line_item_id) + + + +Gets the preferred line item for the given line item id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The given line item id + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_preferred_line_item_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The given line item id | + +### Return type + +[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id** +> AddToBasketTarget202110Response get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + + + +This endpoint gets the add to basket target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + +### Return type + +[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id** +> AudienceTarget202110Response get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + + + +This endpoint gets the audience target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.audience_target202110_response import AudienceTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + +### Return type + +[**AudienceTarget202110Response**](AudienceTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id** +> StoreTarget202110Response get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id) + + + +This endpoint gets the store target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.store_target202110_response import StoreTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_preferred_line_item_targeting_stores_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + +### Return type + +[**StoreTarget202110Response**](StoreTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api202110_external_retailer_pages_by_retailer_id** +> ExternalRetailerPages202110 get_api202110_external_retailer_pages_by_retailer_id(retailer_id) + + + +Get the page types available for the given retailer + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.external_retailer_pages202110 import ExternalRetailerPages202110 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + retailer_id = 1 # int | The retailers to fetch pages for + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202110_external_retailer_pages_by_retailer_id(retailer_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202110_external_retailer_pages_by_retailer_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **retailer_id** | **int**| The retailers to fetch pages for | + +### Return type + +[**ExternalRetailerPages202110**](ExternalRetailerPages202110.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Pages fetched successfully | - | + +[[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) + +# **get_api202204_external_categorie_by_category_id** +> Category202204 get_api202204_external_categorie_by_category_id(category_id) + + + +Endpoint to search for a specific category by categoryId. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.category202204 import Category202204 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + category_id = 1 # int | ID of the desired category + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202204_external_categorie_by_category_id(category_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202204_external_categorie_by_category_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **category_id** | **int**| ID of the desired category | + +### Return type + +[**Category202204**](Category202204.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Retrieval completed and category is returned. | - | +**400** | No IDs were passed in. | - | +**500** | A non-request input based error occurred in the server. | - | + +[[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) + +# **get_api202204_external_categories** +> Category202204ListResponse get_api202204_external_categories() + + + +Endpoint to search categories by text and retailer. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.category202204_list_response import Category202204ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + retailer_id = 1 # int | The retailer id for which Categories fetched (optional) + text_substring = "textSubstring_example" # str | Query string to search across Categories (optional) + page_index = 0 # int | The start position in the overall list of matches. Must be zero or greater. (optional) if omitted the server will use the default value of 0 + page_size = 100 # int | The maximum number of results to return with each call. Must be greater than zero. (optional) if omitted the server will use the default value of 100 + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api202204_external_categories(retailer_id=retailer_id, text_substring=text_substring, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202204_external_categories: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **retailer_id** | **int**| The retailer id for which Categories fetched | [optional] + **text_substring** | **str**| Query string to search across Categories | [optional] + **page_index** | **int**| The start position in the overall list of matches. Must be zero or greater. | [optional] if omitted the server will use the default value of 0 + **page_size** | **int**| The maximum number of results to return with each call. Must be greater than zero. | [optional] if omitted the server will use the default value of 100 + +### Return type + +[**Category202204ListResponse**](Category202204ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Categories found. | - | + +[[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) + +# **get_api202207_external_retailer_by_retailer_id_templatestemplate_id** +> TemplateResponse get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id) + + + +Gets the template for the specified retailer id and template id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.template_response import TemplateResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + retailer_id = 1 # int | Retailer Id + template_id = 1 # int | Template Id + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202207_external_retailer_by_retailer_id_templatestemplate_id(retailer_id, template_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202207_external_retailer_by_retailer_id_templatestemplate_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **retailer_id** | **int**| Retailer Id | + **template_id** | **int**| Template Id | + +### Return type + +[**TemplateResponse**](TemplateResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Template found for the retailer | - | + +[[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) + +# **get_api202207_external_retailer_templates_by_retailer_id** +> TemplateListResponse get_api202207_external_retailer_templates_by_retailer_id(retailer_id) + + + +Get retailer creative templates + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.template_list_response import TemplateListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + retailer_id = 1 # int | External retailer id to retrieve creative templates for + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202207_external_retailer_templates_by_retailer_id(retailer_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202207_external_retailer_templates_by_retailer_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **retailer_id** | **int**| External retailer id to retrieve creative templates for | + +### Return type + +[**TemplateListResponse**](TemplateListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Templates found | - | + +[[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) + +# **get_api202210_external_account_by_account_id_creativescreative_id** +> Creative202210Response get_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) + + + +Get the specified creative + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.creative202210_response import Creative202210Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | External account id to retrieve creatives for + creative_id = "creative-id_example" # str | Creative to get + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202210_external_account_by_account_id_creativescreative_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| External account id to retrieve creatives for | + **creative_id** | **str**| Creative to get | + +### Return type + +[**Creative202210Response**](Creative202210Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Creatives found | - | + +[[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) + +# **get_api202301_external_account_campaigns_by_account_id** +> JsonApiPageResponseOfCampaignV202301 get_api202301_external_account_campaigns_by_account_id(account_id) + + + +Get all the editable and creatable campaign attributes including all types of budgets for each campaigns in relation to the account id, limited by the campaign ids. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_campaign_v202301 import JsonApiPageResponseOfCampaignV202301 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account to request the campaign for. + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 0 # int | The 0 indexed page index you would like to receive given the page size (optional) if omitted the server will use the default value of 0 + page_size = 25 # int | The maximum number of items you would like to receive in this request (optional) if omitted the server will use the default value of 25 + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202301_external_account_campaigns_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_account_campaigns_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api202301_external_account_campaigns_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_account_campaigns_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account to request the campaign for. | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] if omitted the server will use the default value of 0 + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] if omitted the server will use the default value of 25 + +### Return type + +[**JsonApiPageResponseOfCampaignV202301**](JsonApiPageResponseOfCampaignV202301.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api202301_external_campaign_by_campaign_id** +> JsonApiSingleResponseOfCampaignV202301 get_api202301_external_campaign_by_campaign_id(campaign_id) + + + +Get all the editable and creatable campaign attributes including all types of budgets given the campaign id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaignId_example" # str | Campaign Id of the campaign detail + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202301_external_campaign_by_campaign_id(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_campaign_by_campaign_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| Campaign Id of the campaign detail | + +### Return type + +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api202301_external_line_item_bid_multipliers_by_line_item_id** +> JsonApiSingleResponseOfLineItemBidMultipliers get_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id) + + + +Get bid multipliers by line item + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_line_item_bid_multipliers import JsonApiSingleResponseOfLineItemBidMultipliers +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | Long external id of the associated line item + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api202301_external_line_item_bid_multipliers_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| Long external id of the associated line item | + +### Return type + +[**JsonApiSingleResponseOfLineItemBidMultipliers**](JsonApiSingleResponseOfLineItemBidMultipliers.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api_v1_external_account_brands_by_account_id** +> JsonApiPageResponseOfBrand get_api_v1_external_account_brands_by_account_id(account_id) + + + +Gets page of retailer objects that are associated with the given account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_brand import JsonApiPageResponseOfBrand +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The given account id + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v1_external_account_brands_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_brands_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api_v1_external_account_brands_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_brands_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The given account id | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**JsonApiPageResponseOfBrand**](JsonApiPageResponseOfBrand.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api_v1_external_account_retailers_by_account_id** +> JsonApiPageResponseOfRetailer get_api_v1_external_account_retailers_by_account_id(account_id) + + + +Gets page of retailer objects that are associated with the given account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_retailer import JsonApiPageResponseOfRetailer +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The given account id + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v1_external_account_retailers_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_retailers_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api_v1_external_account_retailers_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_retailers_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The given account id | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**JsonApiPageResponseOfRetailer**](JsonApiPageResponseOfRetailer.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api_v1_external_accounts** +> JsonApiPageResponseOfAccount get_api_v1_external_accounts() + + + +Gets page of account objects that the current user can access + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api_v1_external_accounts(limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_accounts: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**JsonApiPageResponseOfAccount**](JsonApiPageResponseOfAccount.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api_v1_external_catalog_output_by_catalog_id** +> get_api_v1_external_catalog_output_by_catalog_id(catalog_id) + + + +Output the indicated catalog. Catalogs are only available for retrieval when their associated status request is at a Success status. Produces application/x-json-stream of v2021_07 CatalogProduct json objects. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + catalog_id = "catalogId_example" # str | A catalog ID returned from an account catalog request. + + # example passing only required values which don't have defaults set + try: + api_instance.get_api_v1_external_catalog_output_by_catalog_id(catalog_id) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_catalog_output_by_catalog_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **catalog_id** | **str**| A catalog ID returned from an account catalog request. | + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/x-json-stream, application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Catalog download initiated. | - | +**400** | The indicated catalog is not available for retrieval, wait for a success status. | - | + +[[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) + +# **get_api_v1_external_catalog_status_by_catalog_id** +> JsonApiSingleResponseOfCatalogStatus get_api_v1_external_catalog_status_by_catalog_id(catalog_id) + + + +Check the status of a catalog request. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + catalog_id = "catalogId_example" # str | A catalog ID returned from an account catalog request. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v1_external_catalog_status_by_catalog_id(catalog_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_catalog_status_by_catalog_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **catalog_id** | **str**| A catalog ID returned from an account catalog request. | + +### Return type + +[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Catalog request found. | - | + +[[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) + +# **get_api_v2_external_account_line_items_by_account_id** +> CommonLineItemPagedListResponse get_api_v2_external_account_line_items_by_account_id(account_id) + + + +Gets page of line item objects for the given account id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.common_line_item_paged_list_response import CommonLineItemPagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | The given account id + limit_to_campaign_id = [ + "limitToCampaignId_example", + ] # [str] | The campaign ids that you would like to limit your result set to (optional) + limit_to_type = "Unknown" # str | The campaign types that you would like to limit your result set to (optional) + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v2_external_account_line_items_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_account_line_items_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api_v2_external_account_line_items_by_account_id(account_id, limit_to_campaign_id=limit_to_campaign_id, limit_to_type=limit_to_type, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_account_line_items_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The given account id | + **limit_to_campaign_id** | **[str]**| The campaign ids that you would like to limit your result set to | [optional] + **limit_to_type** | **str**| The campaign types that you would like to limit your result set to | [optional] + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**CommonLineItemPagedListResponse**](CommonLineItemPagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api_v2_external_auction_line_item_by_line_item_id** +> AuctionLineItemResponse get_api_v2_external_auction_line_item_by_line_item_id(line_item_id) + + + +Gets the auction line item for the given line item id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.auction_line_item_response import AuctionLineItemResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The given line item id + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v2_external_auction_line_item_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_auction_line_item_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The given line item id | + +### Return type + +[**AuctionLineItemResponse**](AuctionLineItemResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api_v2_external_campaign_auction_line_items_by_campaign_id** +> AuctionLineItemPagedListResponse get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id) + + + +Gets page of auction line item objects for the given campaign id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.auction_line_item_paged_list_response import AuctionLineItemPagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaign-id_example" # str | The given campaign id + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 1 # int | The 0 indexed page index you would like to receive given the page size (optional) + page_size = 1 # int | The maximum number of items you would like to receive in this request (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| The given campaign id | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] + +### Return type + +[**AuctionLineItemPagedListResponse**](AuctionLineItemPagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **get_api_v2_external_line_item_by_line_item_id** +> CommonLineItemResponse get_api_v2_external_line_item_by_line_item_id(line_item_id) + + + +Gets the line item for the given line item id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.common_line_item_response import CommonLineItemResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The given line item id + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v2_external_line_item_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->get_api_v2_external_line_item_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The given line item id | + +### Return type + +[**CommonLineItemResponse**](CommonLineItemResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id** +> KeywordTarget202110Response post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id) + + + +This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_request import KeywordTarget202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + keyword_target202110_request = KeywordTarget202110Request( + data=ValueTypeResourceOfKeywordTarget202110( + type="type_example", + attributes=ExternalKeywordTarget202110( + keywords={ + "unknown": "unknown", + }, + ), + ), + ) # KeywordTarget202110Request | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] + +### Return type + +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id** +> KeywordTarget202110Response post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) + + + +This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_response import KeywordTarget202110Response +from criteo_api_retailmedia_v2023_07.model.keyword_target202110_request import KeywordTarget202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + keyword_target202110_request = KeywordTarget202110Request( + data=ValueTypeResourceOfKeywordTarget202110( + type="type_example", + attributes=ExternalKeywordTarget202110( + keywords={ + "unknown": "unknown", + }, + ), + ), + ) # KeywordTarget202110Request | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, keyword_target202110_request=keyword_target202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **keyword_target202110_request** | [**KeywordTarget202110Request**](KeywordTarget202110Request.md)| | [optional] + +### Return type + +[**KeywordTarget202110Response**](KeywordTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_balance_campaigns_append_by_balance_id** +> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) + + + +appends one or more campaigns to the specified balance + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + balance_id = "balance-id_example" # str | The balance to add campaigns from + balance_campaign202110_list_request = BalanceCampaign202110ListRequest( + data=[ + ResourceOfBalanceCampaign202110( + id="id_example", + type="type_example", + attributes={}, + ), + ], + ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_append_by_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **balance_id** | **str**| The balance to add campaigns from | + **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] + +### Return type + +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_balance_campaigns_delete_by_balance_id** +> BalanceCampaign202110PagedListResponse post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) + + + +Removes one or more campaigns on the specified balance + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + balance_id = "balance-id_example" # str | The balance to remove campaigns from + balance_campaign202110_list_request = BalanceCampaign202110ListRequest( + data=[ + ResourceOfBalanceCampaign202110( + id="id_example", + type="type_example", + attributes={}, + ), + ], + ) # BalanceCampaign202110ListRequest | The campaigns to append (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, balance_campaign202110_list_request=balance_campaign202110_list_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_balance_campaigns_delete_by_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **balance_id** | **str**| The balance to remove campaigns from | + **balance_campaign202110_list_request** | [**BalanceCampaign202110ListRequest**](BalanceCampaign202110ListRequest.md)| The campaigns to append | [optional] + +### Return type + +[**BalanceCampaign202110PagedListResponse**](BalanceCampaign202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_campaign_preferred_line_items_by_campaign_id** +> PreferredLineItem202110Response post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) + + + +Creates a new preferred line item with the specified settings + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaign-id_example" # str | The given campaign id + preferred_line_item_create_model202110_request = PreferredLineItemCreateModel202110Request( + data=InputResourceOfPreferredLineItemCreateModel202110( + type="type_example", + attributes=ExternalPreferredLineItemCreateModel202110( + name="name_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + status="unknown", + pacing="unknown", + capping=ExternalLineItemCapping202110( + type="unknown", + count=1, + ), + page=ExternalLineItemPage202110( + page_type="search", + categories=[ + ExternalLineItemPageCategory202110( + category_id="category_id_example", + include_children=True, + ), + ], + search_keywords=[ + "search_keywords_example", + ], + ), + target_retailer_id="target_retailer_id_example", + budget=3.14, + creative_id="creative_id_example", + ), + ), + ) # PreferredLineItemCreateModel202110Request | The line item settings to create a line item with (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, preferred_line_item_create_model202110_request=preferred_line_item_create_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_campaign_preferred_line_items_by_campaign_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| The given campaign id | + **preferred_line_item_create_model202110_request** | [**PreferredLineItemCreateModel202110Request**](PreferredLineItemCreateModel202110Request.md)| The line item settings to create a line item with | [optional] + +### Return type + +[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_line_item_products_append_by_line_item_id** +> PromotedProduct202110PagedListResponse post_api202110_external_line_item_products_append_by_line_item_id(line_item_id) + + + +This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + promoted_product202110_list_request = PromotedProduct202110ListRequest( + data=[ + ResourceOfPromotedProduct202110( + id="id_example", + type="type_example", + attributes=ExternalPromotedProduct202110( + bid_override=3.14, + ), + ), + ], + ) # PromotedProduct202110ListRequest | the products to append to this line item (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_append_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| the products to append to this line item | [optional] + +### Return type + +[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_line_item_products_delete_by_line_item_id** +> PromotedProduct202110PagedListResponse post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id) + + + +This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + promoted_product202110_list_request = PromotedProduct202110ListRequest( + data=[ + ResourceOfPromotedProduct202110( + id="id_example", + type="type_example", + attributes=ExternalPromotedProduct202110( + bid_override=3.14, + ), + ), + ], + ) # PromotedProduct202110ListRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_delete_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_delete_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| | [optional] + +### Return type + +[**PromotedProduct202110PagedListResponse**](PromotedProduct202110PagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_line_item_products_pause_by_line_item_id** +> post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id) + + + +This endpoint pauses one or more promoted products on a specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with. + promoted_product202110_list_request = PromotedProduct202110ListRequest( + data=[ + ResourceOfPromotedProduct202110( + id="id_example", + type="type_example", + attributes=ExternalPromotedProduct202110( + bid_override=3.14, + ), + ), + ], + ) # PromotedProduct202110ListRequest | The products from which their IDs will be used to pause. (optional) + + # example passing only required values which don't have defaults set + try: + api_instance.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_pause_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_instance.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_pause_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with. | + **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| The products from which their IDs will be used to pause. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_line_item_products_unpause_by_line_item_id** +> post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id) + + + +This endpoint unpauses one or more promoted products on a specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with. + promoted_product202110_list_request = PromotedProduct202110ListRequest( + data=[ + ResourceOfPromotedProduct202110( + id="id_example", + type="type_example", + attributes=ExternalPromotedProduct202110( + bid_override=3.14, + ), + ), + ], + ) # PromotedProduct202110ListRequest | The products from which their IDs will be used to unpause. (optional) + + # example passing only required values which don't have defaults set + try: + api_instance.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_unpause_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_instance.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id, promoted_product202110_list_request=promoted_product202110_list_request) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_line_item_products_unpause_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with. | + **promoted_product202110_list_request** | [**PromotedProduct202110ListRequest**](PromotedProduct202110ListRequest.md)| The products from which their IDs will be used to unpause. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id** +> AddToBasketTarget202110Response post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id(line_item_id) + + + +This endpoint appends one or more add to basket ids to targeting on the specified line item. The resulting state of the add to basket target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + add_to_basket_ids_update_model202110_request = AddToBasketIdsUpdateModel202110Request( + data=ValueTypeResourceOfAddToBasketIdsUpdateModel202110( + type="type_example", + attributes=ExternalAddToBasketIdsUpdateModel202110( + product_ids=[ + "product_ids_example", + ], + category_ids=[ + "category_ids_example", + ], + ), + ), + ) # AddToBasketIdsUpdateModel202110Request | Ids to append to the target (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id(line_item_id, add_to_basket_ids_update_model202110_request=add_to_basket_ids_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **add_to_basket_ids_update_model202110_request** | [**AddToBasketIdsUpdateModel202110Request**](AddToBasketIdsUpdateModel202110Request.md)| Ids to append to the target | [optional] + +### Return type + +[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id** +> AddToBasketTarget202110Response post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id(line_item_id) + + + +This endpoint removes one or more add to basket ids from targeting on the specified line item. The resulting state of the add to basket target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.add_to_basket_ids_update_model202110_request import AddToBasketIdsUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + add_to_basket_ids_update_model202110_request = AddToBasketIdsUpdateModel202110Request( + data=ValueTypeResourceOfAddToBasketIdsUpdateModel202110( + type="type_example", + attributes=ExternalAddToBasketIdsUpdateModel202110( + product_ids=[ + "product_ids_example", + ], + category_ids=[ + "category_ids_example", + ], + ), + ), + ) # AddToBasketIdsUpdateModel202110Request | Ids to remove from the target (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id(line_item_id, add_to_basket_ids_update_model202110_request=add_to_basket_ids_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_add_to_basket_delete_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **add_to_basket_ids_update_model202110_request** | [**AddToBasketIdsUpdateModel202110Request**](AddToBasketIdsUpdateModel202110Request.md)| Ids to remove from the target | [optional] + +### Return type + +[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id** +> AudienceTarget202110Response post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id(line_item_id) + + + +This endpoint appends one or more audiences ids to targeting on the specified line item. The resulting state of the audience target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + audience_ids_update_model202110_request = AudienceIdsUpdateModel202110Request( + data=ValueTypeResourceOfAudienceIdsUpdateModel202110( + type="type_example", + attributes=ExternalAudienceIdsUpdateModel202110( + audience_ids=[ + "audience_ids_example", + ], + ), + ), + ) # AudienceIdsUpdateModel202110Request | Audience ids to append to the target (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id(line_item_id, audience_ids_update_model202110_request=audience_ids_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_audiences_append_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **audience_ids_update_model202110_request** | [**AudienceIdsUpdateModel202110Request**](AudienceIdsUpdateModel202110Request.md)| Audience ids to append to the target | [optional] + +### Return type + +[**AudienceTarget202110Response**](AudienceTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id** +> AudienceTarget202110Response post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id(line_item_id) + + + +This endpoint removes one or more audiences ids from targeting on the specified line item. The resulting state of the audience target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.audience_target202110_response import AudienceTarget202110Response +from criteo_api_retailmedia_v2023_07.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + audience_ids_update_model202110_request = AudienceIdsUpdateModel202110Request( + data=ValueTypeResourceOfAudienceIdsUpdateModel202110( + type="type_example", + attributes=ExternalAudienceIdsUpdateModel202110( + audience_ids=[ + "audience_ids_example", + ], + ), + ), + ) # AudienceIdsUpdateModel202110Request | Audience ids to remove from the target (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id(line_item_id, audience_ids_update_model202110_request=audience_ids_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_audiences_delete_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **audience_ids_update_model202110_request** | [**AudienceIdsUpdateModel202110Request**](AudienceIdsUpdateModel202110Request.md)| Audience ids to remove from the target | [optional] + +### Return type + +[**AudienceTarget202110Response**](AudienceTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id** +> StoreTarget202110Response post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id(line_item_id) + + + +This endpoint appends one or more store ids to targeting on the specified line item. The resulting state of the store target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + store_ids_update_model202110_request = StoreIdsUpdateModel202110Request( + data=ValueTypeResourceOfStoreIdsUpdateModel202110( + type="type_example", + attributes=ExternalStoreIdsUpdateModel202110( + store_ids=[ + "store_ids_example", + ], + ), + ), + ) # StoreIdsUpdateModel202110Request | Store ids to append to the target (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id(line_item_id, store_ids_update_model202110_request=store_ids_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_stores_append_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **store_ids_update_model202110_request** | [**StoreIdsUpdateModel202110Request**](StoreIdsUpdateModel202110Request.md)| Store ids to append to the target | [optional] + +### Return type + +[**StoreTarget202110Response**](StoreTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id** +> StoreTarget202110Response post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id(line_item_id) + + + +This endpoint removes one or more store ids from targeting on the specified line item. The resulting state of the store target is returned. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_07.model.store_ids_update_model202110_request import StoreIdsUpdateModel202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + store_ids_update_model202110_request = StoreIdsUpdateModel202110Request( + data=ValueTypeResourceOfStoreIdsUpdateModel202110( + type="type_example", + attributes=ExternalStoreIdsUpdateModel202110( + store_ids=[ + "store_ids_example", + ], + ), + ), + ) # StoreIdsUpdateModel202110Request | Store ids to remove from the target (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id(line_item_id, store_ids_update_model202110_request=store_ids_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202110_external_preferred_line_item_targeting_stores_delete_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **store_ids_update_model202110_request** | [**StoreIdsUpdateModel202110Request**](StoreIdsUpdateModel202110Request.md)| Store ids to remove from the target | [optional] + +### Return type + +[**StoreTarget202110Response**](StoreTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **post_api202210_external_account_creatives_by_account_id** +> Creative202210Response post_api202210_external_account_creatives_by_account_id(account_id) + + + +Create a creative for an account + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.creative202210_response import Creative202210Response +from criteo_api_retailmedia_v2023_07.model.creative_create_model202207 import CreativeCreateModel202207 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | External account id to create a creative for + creative_create_model202207 = CreativeCreateModel202207( + name="name_example", + brand_id=1, + retailer_id=1, + template_id=1, + template_variable_values=[ + TemplateVariableValue( + id="id_example", + text_variable_value=TextVariableValue( + text="text_example", + ), + choice_variable_value=ChoiceVariableValue( + chosen_options=[ + "chosen_options_example", + ], + ), + color_variable_value=ColorVariableValue( + color="#2EC", + ), + files_variable_value=FilesVariableValue( + asset_ids=[ + "asset_ids_example", + ], + ), + hyperlink_variable_value=HyperlinkVariableValue( + url="url_example", + ), + ), + ], + ) # CreativeCreateModel202207 | The creative to create (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202210_external_account_creatives_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202210_external_account_creatives_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202210_external_account_creatives_by_account_id(account_id, creative_create_model202207=creative_create_model202207) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202210_external_account_creatives_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| External account id to create a creative for | + **creative_create_model202207** | [**CreativeCreateModel202207**](CreativeCreateModel202207.md)| The creative to create | [optional] + +### Return type + +[**Creative202210Response**](Creative202210Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Creatives created | - | + +[[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) + +# **post_api202210_external_account_creatives_search_by_account_id** +> Creative202210ListResponse post_api202210_external_account_creatives_search_by_account_id(account_id) + + + +Get account creatives + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.creative202210_list_response import Creative202210ListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | External account id to retrieve creatives for + creative_ids = [ + "creative-ids_example", + ] # [str] | Creatives to filter by (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202210_external_account_creatives_search_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202210_external_account_creatives_search_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202210_external_account_creatives_search_by_account_id(account_id, creative_ids=creative_ids) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202210_external_account_creatives_search_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| External account id to retrieve creatives for | + **creative_ids** | **[str]**| Creatives to filter by | [optional] + +### Return type + +[**Creative202210ListResponse**](Creative202210ListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Creatives found | - | + +[[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) + +# **post_api202301_external_account_campaigns_by_account_id** +> JsonApiSingleResponseOfCampaignV202301 post_api202301_external_account_campaigns_by_account_id(account_id) + + + +Create a campaign and assign budgets for the given account id with creatable campaign attributes given in request body constrained by business validation. The validation error includes details and source of errors. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.post_campaign_v202301 import PostCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account to request the campaign for. + post_campaign_v202301 = PostCampaignV202301( + data=JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301( + type="type_example", + attributes=CampaignAttributesV202301( + type="auction", + drawable_balance_ids=[ + "drawable_balance_ids_example", + ], + click_attribution_window="30D", + view_attribution_window="None", + name="name_example", + budget=3.14, + monthly_pacing=3.14, + daily_pacing=3.14, + is_auto_daily_pacing=True, + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + click_attribution_scope="unknown", + view_attribution_scope="unknown", + ), + ), + ) # PostCampaignV202301 | Creatable campaign attributes (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api202301_external_account_campaigns_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202301_external_account_campaigns_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api202301_external_account_campaigns_by_account_id(account_id, post_campaign_v202301=post_campaign_v202301) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api202301_external_account_campaigns_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account to request the campaign for. | + **post_campaign_v202301** | [**PostCampaignV202301**](PostCampaignV202301.md)| Creatable campaign attributes | [optional] + +### Return type + +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | + +[[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) + +# **post_api_v1_external_account_catalogs_by_account_id** +> JsonApiSingleResponseOfCatalogStatus post_api_v1_external_account_catalogs_by_account_id(account_id) + + + +Create a request for a Catalog available to the indicated account. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus +from criteo_api_retailmedia_v2023_07.model.json_api_request_of_catalog_request import JsonApiRequestOfCatalogRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account to request the catalog for. + json_api_request_of_catalog_request = JsonApiRequestOfCatalogRequest( + data=JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest( + type="type_example", + attributes=ExternalCatalogRequest( + format="json-newline", + brand_id_filter=[ + "brand_id_filter_example", + ], + ), + ), + ) # JsonApiRequestOfCatalogRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api_v1_external_account_catalogs_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_catalogs_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api_v1_external_account_catalogs_by_account_id(account_id, json_api_request_of_catalog_request=json_api_request_of_catalog_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_catalogs_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account to request the catalog for. | + **json_api_request_of_catalog_request** | [**JsonApiRequestOfCatalogRequest**](JsonApiRequestOfCatalogRequest.md)| | [optional] + +### Return type + +[**JsonApiSingleResponseOfCatalogStatus**](JsonApiSingleResponseOfCatalogStatus.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Catalog request successfully created | - | + +[[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) + +# **post_api_v2_external_campaign_auction_line_items_by_campaign_id** +> AuctionLineItemResponse post_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id) + + + +Creates new auction line item with the specified settings + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.auction_line_item_response import AuctionLineItemResponse +from criteo_api_retailmedia_v2023_07.model.auction_line_item_create_model_request import AuctionLineItemCreateModelRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaign-id_example" # str | The given campaign id + auction_line_item_create_model_request = AuctionLineItemCreateModelRequest( + data=InputResourceOfAuctionLineItemCreateModel( + type="type_example", + attributes=ExternalAuctionLineItemCreateModel( + name="name_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + status="unknown", + target_retailer_id="target_retailer_id_example", + budget=3.14, + target_bid=3.14, + max_bid=3.14, + monthly_pacing=3.14, + daily_pacing=3.14, + is_auto_daily_pacing=False, + bid_strategy="conversion", + ), + ), + ) # AuctionLineItemCreateModelRequest | The line item settings to create a line item with (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, auction_line_item_create_model_request=auction_line_item_create_model_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->post_api_v2_external_campaign_auction_line_items_by_campaign_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| The given campaign id | + **auction_line_item_create_model_request** | [**AuctionLineItemCreateModelRequest**](AuctionLineItemCreateModelRequest.md)| The line item settings to create a line item with | [optional] + +### Return type + +[**AuctionLineItemResponse**](AuctionLineItemResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **put_api202110_external_preferred_line_item_by_line_item_id** +> PreferredLineItem202110Response put_api202110_external_preferred_line_item_by_line_item_id(line_item_id) + + + +Updates the preferred line item for the given line item id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request +from criteo_api_retailmedia_v2023_07.model.preferred_line_item202110_response import PreferredLineItem202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The given line item id + preferred_line_item_update_model202110_request = PreferredLineItemUpdateModel202110Request( + data=ResourceOfPreferredLineItemUpdateModel202110( + id="id_example", + type="type_example", + attributes=ExternalPreferredLineItemUpdateModel202110( + name="name_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + status="unknown", + pacing="accelerated", + capping=ExternalLineItemCapping202110( + type="unknown", + count=1, + ), + page=ExternalLineItemPage202110( + page_type="search", + categories=[ + ExternalLineItemPageCategory202110( + category_id="category_id_example", + include_children=True, + ), + ], + search_keywords=[ + "search_keywords_example", + ], + ), + budget=3.14, + creative_id="creative_id_example", + ), + ), + ) # PreferredLineItemUpdateModel202110Request | The line item settings to create a line item with (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202110_external_preferred_line_item_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202110_external_preferred_line_item_by_line_item_id(line_item_id, preferred_line_item_update_model202110_request=preferred_line_item_update_model202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The given line item id | + **preferred_line_item_update_model202110_request** | [**PreferredLineItemUpdateModel202110Request**](PreferredLineItemUpdateModel202110Request.md)| The line item settings to create a line item with | [optional] + +### Return type + +[**PreferredLineItem202110Response**](PreferredLineItem202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id** +> AddToBasketTarget202110Response put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + + + +This endpoint sets the scope of the add to basket target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_request import AddToBasketTarget202110Request +from criteo_api_retailmedia_v2023_07.model.add_to_basket_target202110_response import AddToBasketTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + add_to_basket_target202110_request = AddToBasketTarget202110Request( + data=ValueTypeResourceOfAddToBasketTarget202110( + type="type_example", + attributes=ExternalAddToBasketTarget202110( + scope="unknown", + product_ids=[ + "product_ids_example", + ], + category_ids=[ + "category_ids_example", + ], + ), + ), + ) # AddToBasketTarget202110Request | The add to basket target to set the scope for (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id(line_item_id, add_to_basket_target202110_request=add_to_basket_target202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_add_to_basket_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **add_to_basket_target202110_request** | [**AddToBasketTarget202110Request**](AddToBasketTarget202110Request.md)| The add to basket target to set the scope for | [optional] + +### Return type + +[**AddToBasketTarget202110Response**](AddToBasketTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id** +> AudienceTarget202110Response put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + + + +This endpoint sets the scope of the audience target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.audience_target202110_request import AudienceTarget202110Request +from criteo_api_retailmedia_v2023_07.model.audience_target202110_response import AudienceTarget202110Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + audience_target202110_request = AudienceTarget202110Request( + data=ValueTypeResourceOfAudienceTarget202110( + type="type_example", + attributes=ExternalAudienceTarget202110( + scope="unknown", + audience_ids=[ + "audience_ids_example", + ], + ), + ), + ) # AudienceTarget202110Request | The audience target to set the scope for (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id(line_item_id, audience_target202110_request=audience_target202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_audiences_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **audience_target202110_request** | [**AudienceTarget202110Request**](AudienceTarget202110Request.md)| The audience target to set the scope for | [optional] + +### Return type + +[**AudienceTarget202110Response**](AudienceTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id** +> StoreTarget202110Response put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id) + + + +This endpoint sets the scope of the store target on the specified line item. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.store_target202110_response import StoreTarget202110Response +from criteo_api_retailmedia_v2023_07.model.store_target202110_request import StoreTarget202110Request +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The line item to interact with + store_target202110_request = StoreTarget202110Request( + data=ValueTypeResourceOfStoreTarget202110( + type="type_example", + attributes=ExternalStoreTarget202110( + scope="unknown", + store_ids=[ + "store_ids_example", + ], + ), + ), + ) # StoreTarget202110Request | The store target to set the scope for (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id(line_item_id, store_target202110_request=store_target202110_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202110_external_preferred_line_item_targeting_stores_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The line item to interact with | + **store_target202110_request** | [**StoreTarget202110Request**](StoreTarget202110Request.md)| The store target to set the scope for | [optional] + +### Return type + +[**StoreTarget202110Response**](StoreTarget202110Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **put_api202210_external_account_by_account_id_creativescreative_id** +> Creative202210Response put_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) + + + +Update a creative + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.creative_update_model202207 import CreativeUpdateModel202207 +from criteo_api_retailmedia_v2023_07.model.creative202210_response import Creative202210Response +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "account-id_example" # str | External account id containing the creative + creative_id = "creative-id_example" # str | Creative to update + creative_update_model202207 = CreativeUpdateModel202207( + name="name_example", + brand_id=1, + retailer_id=1, + template_id=1, + template_variable_values=[ + TemplateVariableValue( + id="id_example", + text_variable_value=TextVariableValue( + text="text_example", + ), + choice_variable_value=ChoiceVariableValue( + chosen_options=[ + "chosen_options_example", + ], + ), + color_variable_value=ColorVariableValue( + color="#2EC", + ), + files_variable_value=FilesVariableValue( + asset_ids=[ + "asset_ids_example", + ], + ), + hyperlink_variable_value=HyperlinkVariableValue( + url="url_example", + ), + ), + ], + ) # CreativeUpdateModel202207 | The creative to create (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202210_external_account_by_account_id_creativescreative_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202210_external_account_by_account_id_creativescreative_id(account_id, creative_id, creative_update_model202207=creative_update_model202207) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202210_external_account_by_account_id_creativescreative_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| External account id containing the creative | + **creative_id** | **str**| Creative to update | + **creative_update_model202207** | [**CreativeUpdateModel202207**](CreativeUpdateModel202207.md)| The creative to create | [optional] + +### Return type + +[**Creative202210Response**](Creative202210Response.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**204** | Creative updated | - | + +[[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) + +# **put_api202301_external_campaign_by_campaign_id** +> JsonApiSingleResponseOfCampaignV202301 put_api202301_external_campaign_by_campaign_id(campaign_id) + + + +Edit a campaign for the given campaign id with a given editable attributes. This will return updated creatable and editable attributes of the campaign as the result of the operation. Pacing can be adjusted and affected by the status of the campaign and the days left on the campaign if auto daily pacing is enabled. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.put_campaign_v202301 import PutCampaignV202301 +from criteo_api_retailmedia_v2023_07.model.json_api_single_response_of_campaign_v202301 import JsonApiSingleResponseOfCampaignV202301 +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + campaign_id = "campaignId_example" # str | Campaign Id of the updating campaign + put_campaign_v202301 = PutCampaignV202301( + data=JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301( + id="id_example", + type="type_example", + attributes=EditableCampaignAttributesV202301( + name="name_example", + budget=3.14, + monthly_pacing=3.14, + daily_pacing=3.14, + is_auto_daily_pacing=True, + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + click_attribution_window="7D", + view_attribution_window="None", + click_attribution_scope="unknown", + view_attribution_scope="unknown", + ), + ), + ) # PutCampaignV202301 | Editable campaign attributes (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202301_external_campaign_by_campaign_id(campaign_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202301_external_campaign_by_campaign_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202301_external_campaign_by_campaign_id(campaign_id, put_campaign_v202301=put_campaign_v202301) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202301_external_campaign_by_campaign_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| Campaign Id of the updating campaign | + **put_campaign_v202301** | [**PutCampaignV202301**](PutCampaignV202301.md)| Editable campaign attributes | [optional] + +### Return type + +[**JsonApiSingleResponseOfCampaignV202301**](JsonApiSingleResponseOfCampaignV202301.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **put_api202301_external_line_item_bid_multipliers_by_line_item_id** +> LineItemBidMultipliersResponse put_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id) + + + +Replace bid multipliers on a line item + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers_response import LineItemBidMultipliersResponse +from criteo_api_retailmedia_v2023_07.model.line_item_bid_multipliers_request import LineItemBidMultipliersRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | Long external id of the associated line item + line_item_bid_multipliers_request = LineItemBidMultipliersRequest( + data=ResourceOfLineItemBidMultipliers( + attributes=LineItemBidMultipliers( + search=3.14, + homepage=3.14, + categories=3.14, + product_detail=3.14, + confirmation=3.14, + merchandising=3.14, + deals=3.14, + checkout=3.14, + ), + id="id_example", + type="type_example", + ), + ) # LineItemBidMultipliersRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202301_external_line_item_bid_multipliers_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api202301_external_line_item_bid_multipliers_by_line_item_id(line_item_id, line_item_bid_multipliers_request=line_item_bid_multipliers_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api202301_external_line_item_bid_multipliers_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| Long external id of the associated line item | + **line_item_bid_multipliers_request** | [**LineItemBidMultipliersRequest**](LineItemBidMultipliersRequest.md)| | [optional] + +### Return type + +[**LineItemBidMultipliersResponse**](LineItemBidMultipliersResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **put_api_v2_external_auction_line_item_by_line_item_id** +> AuctionLineItemResponse put_api_v2_external_auction_line_item_by_line_item_id(line_item_id) + + + +Updates the auction line item for the given line item id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.auction_line_item_update_model_request import AuctionLineItemUpdateModelRequest +from criteo_api_retailmedia_v2023_07.model.auction_line_item_response import AuctionLineItemResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + line_item_id = "line-item-id_example" # str | The given line item id + auction_line_item_update_model_request = AuctionLineItemUpdateModelRequest( + data=ResourceOfAuctionLineItemUpdateModel( + id="id_example", + type="type_example", + attributes=ExternalAuctionLineItemUpdateModel( + name="name_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + status="unknown", + budget=3.14, + target_bid=3.14, + max_bid=3.14, + monthly_pacing=3.14, + daily_pacing=3.14, + is_auto_daily_pacing=True, + bid_strategy="conversion", + ), + ), + ) # AuctionLineItemUpdateModelRequest | The line item settings to create a line item with (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.put_api_v2_external_auction_line_item_by_line_item_id(line_item_id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api_v2_external_auction_line_item_by_line_item_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.put_api_v2_external_auction_line_item_by_line_item_id(line_item_id, auction_line_item_update_model_request=auction_line_item_update_model_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->put_api_v2_external_auction_line_item_by_line_item_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **line_item_id** | **str**| The given line item id | + **auction_line_item_update_model_request** | [**AuctionLineItemUpdateModelRequest**](AuctionLineItemUpdateModelRequest.md)| The line item settings to create a line item with | [optional] + +### Return type + +[**AuctionLineItemResponse**](AuctionLineItemResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **set_keyword_bids** +> RetailMediaExternalv1ResourceOutcome set_keyword_bids(id) + + + +Set bid overrides for associated keywords to the given line item in bulk + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_resource_outcome import RetailMediaExternalv1ResourceOutcome +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + id = "id_example" # str | Long external id of the associated line item + retail_media_externalv1_set_bids_model_request = RetailMediaExternalv1SetBidsModelRequest( + data=RetailMediaExternalv1SetBidsModelResource( + id="id_example", + type="type_example", + attributes=RetailMediaExternalv1SetBidsModel( + keywords=[ + RetailMediaExternalv1SetBidModel( + phrase="phrase_example", + bid=3.14, + ), + ], + ), + ), + ) # RetailMediaExternalv1SetBidsModelRequest | Object containing a list of bid overrides for associated keywords (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.set_keyword_bids(id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->set_keyword_bids: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.set_keyword_bids(id, retail_media_externalv1_set_bids_model_request=retail_media_externalv1_set_bids_model_request) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->set_keyword_bids: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Long external id of the associated line item | + **retail_media_externalv1_set_bids_model_request** | [**RetailMediaExternalv1SetBidsModelRequest**](RetailMediaExternalv1SetBidsModelRequest.md)| Object containing a list of bid overrides for associated keywords | [optional] + +### Return type + +[**RetailMediaExternalv1ResourceOutcome**](RetailMediaExternalv1ResourceOutcome.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | + +[[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) + +# **submit_proposal** +> RetailMediaExternalv1ProposalStatusModelResponse submit_proposal(id) + + + +Submit a proposal to modify a Preferred Deal Line Item for review. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import campaign_api +from criteo_api_retailmedia_v2023_07.model.retail_media_externalv1_proposal_status_model_response import RetailMediaExternalv1ProposalStatusModelResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + id = "id_example" # str | The external id of a line item. + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.submit_proposal(id) + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling CampaignApi->submit_proposal: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| The external id of a line item. | + +### Return type + +[**RetailMediaExternalv1ProposalStatusModelResponse**](RetailMediaExternalv1ProposalStatusModelResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**500** | Server Error | - | +**403** | Forbidden | - | + +[[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/sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md b/sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md new file mode 100644 index 00000000..99f37c10 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CampaignAttributesV202301.md @@ -0,0 +1,25 @@ +# CampaignAttributesV202301 + +An object that represents the available options to set when creating a Retail Media Campaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**is_auto_daily_pacing** | **bool** | | +**start_date** | **datetime, none_type** | | +**end_date** | **datetime, none_type** | | +**type** | **str** | | [optional] if omitted the server will use the default value of "auction" +**drawable_balance_ids** | **[str]** | | [optional] +**click_attribution_window** | **str** | | [optional] if omitted the server will use the default value of "30D" +**view_attribution_window** | **str** | | [optional] if omitted the server will use the default value of "None" +**budget** | **float, none_type** | | [optional] +**monthly_pacing** | **float, none_type** | | [optional] +**daily_pacing** | **float, none_type** | | [optional] +**click_attribution_scope** | **str, none_type** | | [optional] +**view_attribution_scope** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CampaignReport.md b/sdks/retailmedia_2023-07/docs/CampaignReport.md new file mode 100644 index 00000000..c014cfc9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CampaignReport.md @@ -0,0 +1,24 @@ +# CampaignReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | Account id to report on | +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End Date | +**report_type** | **str** | | [optional] +**campaign_ids** | **[str]** | List of campaign Ids to filter | [optional] +**metrics** | **[str]** | List of Metrics to report on | [optional] +**dimensions** | **[str]** | List of dimensions to report on | [optional] +**timezone** | **str** | Time zone : see criteo developer portal for supported time zones | [optional] if omitted the server will use the default value of "UTC" +**click_attribution_window** | **str** | Click Attribution Window | [optional] if omitted the server will use the default value of "7D" +**view_attribution_window** | **str** | View Attribution window | [optional] if omitted the server will use the default value of "none" +**campaign_type** | **str** | Filter the type of campaign to report on | [optional] +**sales_channel** | **str** | Filter on the channel of sales | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CampaignReportRequest.md b/sdks/retailmedia_2023-07/docs/CampaignReportRequest.md new file mode 100644 index 00000000..2201a08f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CampaignReportRequest.md @@ -0,0 +1,13 @@ +# CampaignReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CampaignReportResource**](CampaignReportResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CampaignReportResource.md b/sdks/retailmedia_2023-07/docs/CampaignReportResource.md new file mode 100644 index 00000000..e59b5da4 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CampaignReportResource.md @@ -0,0 +1,14 @@ +# CampaignReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**CampaignReport**](CampaignReport.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CampaignV202301.md b/sdks/retailmedia_2023-07/docs/CampaignV202301.md new file mode 100644 index 00000000..e66a6ea4 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CampaignV202301.md @@ -0,0 +1,32 @@ +# CampaignV202301 + +A Retail Media Campaign used to represent an advertiser's marketing objective + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**promoted_brand_ids** | **[str]** | | +**budget_spent** | **float, none_type** | | +**budget_remaining** | **float, none_type** | | +**created_at** | **datetime** | | +**updated_at** | **datetime** | | +**name** | **str** | | +**is_auto_daily_pacing** | **bool** | | +**start_date** | **datetime, none_type** | | +**end_date** | **datetime, none_type** | | +**status** | **str** | | [optional] +**type** | **str** | | [optional] if omitted the server will use the default value of "auction" +**drawable_balance_ids** | **[str]** | | [optional] +**click_attribution_window** | **str** | | [optional] if omitted the server will use the default value of "30D" +**view_attribution_window** | **str** | | [optional] if omitted the server will use the default value of "None" +**budget** | **float, none_type** | | [optional] +**monthly_pacing** | **float, none_type** | | [optional] +**daily_pacing** | **float, none_type** | | [optional] +**click_attribution_scope** | **str, none_type** | | [optional] +**view_attribution_scope** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Category202204.md b/sdks/retailmedia_2023-07/docs/Category202204.md new file mode 100644 index 00000000..b0bb5b4a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Category202204.md @@ -0,0 +1,15 @@ +# Category202204 + +List of retailer's categories, including the full hierarchy of categories and their parent category ID + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | Category Text | +**name** | **str** | Category Name | +**parent_id** | **str** | Category ParentId | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Category202204ListResponse.md b/sdks/retailmedia_2023-07/docs/Category202204ListResponse.md new file mode 100644 index 00000000..08b924d5 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Category202204ListResponse.md @@ -0,0 +1,15 @@ +# Category202204ListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ResourceOfCategory202204]**](ResourceOfCategory202204.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ChoiceOption.md b/sdks/retailmedia_2023-07/docs/ChoiceOption.md new file mode 100644 index 00000000..82b0e020 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ChoiceOption.md @@ -0,0 +1,14 @@ +# ChoiceOption + +An option given in a choice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dependent_variables** | [**[TemplateVariable]**](TemplateVariable.md) | Template variables unblocked when the option is chosen | +**id** | **str** | The id of the option | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ChoiceVariableSpecification.md b/sdks/retailmedia_2023-07/docs/ChoiceVariableSpecification.md new file mode 100644 index 00000000..f0e876f8 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ChoiceVariableSpecification.md @@ -0,0 +1,15 @@ +# ChoiceVariableSpecification + +Specification of choice variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | [**[ChoiceOption]**](ChoiceOption.md) | The available options | +**max_selected** | **int, none_type** | The maximum number of selectable options | [optional] +**min_selected** | **int, none_type** | The minimum number of selectable options | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ChoiceVariableValue.md b/sdks/retailmedia_2023-07/docs/ChoiceVariableValue.md new file mode 100644 index 00000000..182abe3e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ChoiceVariableValue.md @@ -0,0 +1,13 @@ +# ChoiceVariableValue + +A value of a template choice variable (among different accepted options) + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**chosen_options** | **[str]** | The chosen options | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ColorVariableValue.md b/sdks/retailmedia_2023-07/docs/ColorVariableValue.md new file mode 100644 index 00000000..b8eb6e74 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ColorVariableValue.md @@ -0,0 +1,13 @@ +# ColorVariableValue + +A value of a template color variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**color** | **str** | The displayed color (HEX format) | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CommonError.md b/sdks/retailmedia_2023-07/docs/CommonError.md new file mode 100644 index 00000000..2d60f5b2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CommonError.md @@ -0,0 +1,20 @@ +# CommonError + +A JSON:API Common error structure + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_id** | **str** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] +**type** | **str** | (REQUIRED) The classification of the error. | [optional] +**code** | **str** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case. | [optional] +**instance** | **str** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem. | [optional] +**title** | **str** | (RECOMMENDED) A short, human-readable summary of the problem type. | [optional] +**detail** | **str** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] +**source** | **{str: (str,)}** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **str** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CommonLineItemPagedListResponse.md b/sdks/retailmedia_2023-07/docs/CommonLineItemPagedListResponse.md new file mode 100644 index 00000000..799bc1f8 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CommonLineItemPagedListResponse.md @@ -0,0 +1,16 @@ +# CommonLineItemPagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfCommonLineItem]**](ResourceOfCommonLineItem.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CommonLineItemResponse.md b/sdks/retailmedia_2023-07/docs/CommonLineItemResponse.md new file mode 100644 index 00000000..8eeca190 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CommonLineItemResponse.md @@ -0,0 +1,15 @@ +# CommonLineItemResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfCommonLineItem**](ResourceOfCommonLineItem.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CommonProblem.md b/sdks/retailmedia_2023-07/docs/CommonProblem.md new file mode 100644 index 00000000..08fb7693 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CommonProblem.md @@ -0,0 +1,21 @@ +# CommonProblem + +Common problem object. Can be specialized as needed. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_id** | **str** | The request correlation ID this problem comes from. | [optional] +**trace_identifier** | **str** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] +**type** | **str** | The problem's category. | [optional] +**code** | **str** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str** | A short human-readable description of the problem type | [optional] +**detail** | **str** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CommonStatusCodeResponse.md b/sdks/retailmedia_2023-07/docs/CommonStatusCodeResponse.md new file mode 100644 index 00000000..718adc90 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CommonStatusCodeResponse.md @@ -0,0 +1,14 @@ +# CommonStatusCodeResponse + +Commonly Returned Problem Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[CommonProblem]**](CommonProblem.md) | errors | [optional] [readonly] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | warnings | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/Error.md b/sdks/retailmedia_2023-07/docs/CommonWarning.md similarity index 65% rename from sdks/retailmedia_preview/docs/Error.md rename to sdks/retailmedia_2023-07/docs/CommonWarning.md index e832d8d0..dfe9eb21 100644 --- a/sdks/retailmedia_preview/docs/Error.md +++ b/sdks/retailmedia_2023-07/docs/CommonWarning.md @@ -1,18 +1,18 @@ -# Error +# CommonWarning -Error +A JSON:API Base common warning ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **str** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case. | -**instance** | **str** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem. | -**trace_id** | **str** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | -**type** | **str** | Type should be: \"validation\", \"unavailable, \"violation\", \"permission\", ... | -**detail** | **str** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] -**source** | [**MapString**](MapString.md) | | [optional] -**stack_trace** | **[str]** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology e.g. .Net, Scala, etc | [optional] +**trace_id** | **str** | (REQUIRED) The Correlation ID provided by the Gateway. It is also a unique identifier for this particular occurrence of the problem. | [optional] +**type** | **str** | (REQUIRED) The classification of the error. | [optional] +**code** | **str** | (REQUIRED) A machine-readable unique error code, expressed as a string value. The format used must be kabab-case. | [optional] +**instance** | **str** | (REQUIRED) A URI reference that identifies the specific occurrence of the problem. | [optional] **title** | **str** | (RECOMMENDED) A short, human-readable summary of the problem type. | [optional] +**detail** | **str** | (RECOMMENDED) A human-readable explanation specific to this occurrence of the problem. | [optional] +**source** | **{str: (str,)}** | (OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **str** | (NEVER IN PRODUCTION) A human-readable stacktrace produced by the implementation technology | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudience.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudience.md new file mode 100644 index 00000000..b7c5ada9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudience.md @@ -0,0 +1,15 @@ +# CreateRetailMediaAudience + +Retail Media audience used in audience creation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**id** | **int** | Unique ID of this audience. | +**attributes** | [**CreateRetailMediaAudienceAttributes**](CreateRetailMediaAudienceAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceAttributes.md new file mode 100644 index 00000000..26d16ce9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceAttributes.md @@ -0,0 +1,18 @@ +# CreateRetailMediaAudienceAttributes + +Parameters needed to create an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_type** | **str** | Type of the user | +**lookback_window** | **str** | Length of lookback window | +**retailer_id** | **int** | ID of the retailer associated with this audience | +**name** | **str** | Name of the audience. | +**brand_ids** | **[int]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceBody.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceBody.md new file mode 100644 index 00000000..bab4473a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceBody.md @@ -0,0 +1,14 @@ +# CreateRetailMediaAudienceBody + +Request body of CreateRetailMediaAudienceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**attributes** | [**CreateRetailMediaAudienceAttributes**](CreateRetailMediaAudienceAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceRequest.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceRequest.md new file mode 100644 index 00000000..8afcf915 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceRequest.md @@ -0,0 +1,13 @@ +# CreateRetailMediaAudienceRequest + +Request to create an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateRetailMediaAudienceBody**](CreateRetailMediaAudienceBody.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceResponse.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceResponse.md new file mode 100644 index 00000000..df2978ed --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceResponse.md @@ -0,0 +1,15 @@ +# CreateRetailMediaAudienceResponse + +Response of CreateAudienceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateRetailMediaAudience**](CreateRetailMediaAudience.md) | | [optional] +**errors** | [**[CommonError]**](CommonError.md) | errors | [optional] [readonly] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | warnings | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2.md new file mode 100644 index 00000000..65317030 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2.md @@ -0,0 +1,15 @@ +# CreateRetailMediaAudienceV2 + +Retail Media audience used in audience creation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**id** | **int** | Unique ID of this audience. | +**attributes** | [**CreateRetailMediaAudienceV2Attributes**](CreateRetailMediaAudienceV2Attributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Attributes.md new file mode 100644 index 00000000..5069a7bd --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Attributes.md @@ -0,0 +1,15 @@ +# CreateRetailMediaAudienceV2Attributes + +Parameters needed to create an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**retailer_id** | **int** | ID of the retailer associated with this audience | +**user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | +**name** | **str** | Name of the audience. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Data.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Data.md new file mode 100644 index 00000000..f6454e7f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Data.md @@ -0,0 +1,14 @@ +# CreateRetailMediaAudienceV2Data + +Request body of CreateRetailMediaAudienceV2Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | the name of the entity type | +**attributes** | [**CreateRetailMediaAudienceV2Attributes**](CreateRetailMediaAudienceV2Attributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Request.md b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Request.md new file mode 100644 index 00000000..85273879 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateRetailMediaAudienceV2Request.md @@ -0,0 +1,13 @@ +# CreateRetailMediaAudienceV2Request + +Request to create an audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateRetailMediaAudienceV2Data**](CreateRetailMediaAudienceV2Data.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreateUserBehaviorSegmentV2.md b/sdks/retailmedia_2023-07/docs/CreateUserBehaviorSegmentV2.md new file mode 100644 index 00000000..19dd22af --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreateUserBehaviorSegmentV2.md @@ -0,0 +1,18 @@ +# CreateUserBehaviorSegmentV2 + +Inclusive and exclusive segments of a user behavior audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_action** | **str** | Type of shopper activity used to generate the audience. | +**lookback_window** | **str** | Length of lookback window | +**category_ids** | **[int]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] +**min_price** | **float** | The min price of targeted skus. | [optional] [readonly] +**max_price** | **float** | The max price of targeted skus. | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Creative202110.md b/sdks/retailmedia_2023-07/docs/Creative202110.md new file mode 100644 index 00000000..8517959b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Creative202110.md @@ -0,0 +1,18 @@ +# Creative202110 + +Metadata and usage info of a preferred deals creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**status** | **str** | | +**retailer_id** | **int** | | +**brand_id** | **int, none_type** | | [optional] +**associated_line_item_ids** | **[str]** | | [optional] +**updated_at** | **datetime** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Creative202110ListResponse.md b/sdks/retailmedia_2023-07/docs/Creative202110ListResponse.md new file mode 100644 index 00000000..58278924 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Creative202110ListResponse.md @@ -0,0 +1,15 @@ +# Creative202110ListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ResourceOfCreative202110]**](ResourceOfCreative202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Creative202210.md b/sdks/retailmedia_2023-07/docs/Creative202210.md new file mode 100644 index 00000000..8557f68a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Creative202210.md @@ -0,0 +1,24 @@ +# Creative202210 + +A creative entity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name | +**status** | **str** | Creative Status | +**retailer_id** | **int** | Retailer Id | +**template_id** | **int** | Template Id | +**template_name** | **str** | Template Name | +**format_id** | **int** | Format Id | +**creative_format_type** | **str** | Creative format type | +**environments** | [**[PageTypeEnvironment]**](PageTypeEnvironment.md) | Environment type (e.g. mobile, web, app) | +**template_variable_values** | [**[TemplateVariableValue]**](TemplateVariableValue.md) | The template chosen values | +**brand_id** | **int, none_type** | Brand Id | [optional] +**associated_line_item_ids** | **[str]** | Associated Line Item Ids | [optional] +**updated_at** | **datetime** | Updated at time | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md b/sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md new file mode 100644 index 00000000..31ab557e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Creative202210ListResponse.md @@ -0,0 +1,15 @@ +# Creative202210ListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ResourceOfCreative202210]**](ResourceOfCreative202210.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Creative202210Response.md b/sdks/retailmedia_2023-07/docs/Creative202210Response.md new file mode 100644 index 00000000..1a9c0135 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Creative202210Response.md @@ -0,0 +1,15 @@ +# Creative202210Response + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfCreative202210**](ResourceOfCreative202210.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreativeCreateModel202207.md b/sdks/retailmedia_2023-07/docs/CreativeCreateModel202207.md new file mode 100644 index 00000000..09881dc5 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreativeCreateModel202207.md @@ -0,0 +1,17 @@ +# CreativeCreateModel202207 + +Create model of a creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the creative | +**retailer_id** | **int** | The retailer associated to the creative | +**template_id** | **int** | The creative template used for this creative | +**template_variable_values** | [**[TemplateVariableValue]**](TemplateVariableValue.md) | The template chosen values | +**brand_id** | **int** | The brand associated to the creative | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CreativeUpdateModel202207.md b/sdks/retailmedia_2023-07/docs/CreativeUpdateModel202207.md new file mode 100644 index 00000000..bcee4a2f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CreativeUpdateModel202207.md @@ -0,0 +1,17 @@ +# CreativeUpdateModel202207 + +Update model of a creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the creative | +**retailer_id** | **int** | The retailer associated to the creative | +**template_id** | **int** | The creative template used for this creative | +**template_variable_values** | [**[TemplateVariableValue]**](TemplateVariableValue.md) | The template chosen values | +**brand_id** | **int** | The brand associated to the creative | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/CustomerListDetails.md b/sdks/retailmedia_2023-07/docs/CustomerListDetails.md new file mode 100644 index 00000000..bbd5318f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/CustomerListDetails.md @@ -0,0 +1,13 @@ +# CustomerListDetails + +Details of a customer list audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**size** | **str** | Number of users in the customer list audience. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md b/sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md new file mode 100644 index 00000000..1230c9a8 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/EditableCampaignAttributesV202301.md @@ -0,0 +1,23 @@ +# EditableCampaignAttributesV202301 + +An object that represents the available options to set when editing a Retail Media Campaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**is_auto_daily_pacing** | **bool** | | +**start_date** | **datetime, none_type** | | +**end_date** | **datetime, none_type** | | +**click_attribution_window** | **str** | | +**view_attribution_window** | **str** | | +**budget** | **float, none_type** | | [optional] +**monthly_pacing** | **float, none_type** | | [optional] +**daily_pacing** | **float, none_type** | | [optional] +**click_attribution_scope** | **str, none_type** | | [optional] +**view_attribution_scope** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExportReportColumn.md b/sdks/retailmedia_2023-07/docs/ExportReportColumn.md new file mode 100644 index 00000000..b0dcd804 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExportReportColumn.md @@ -0,0 +1,21 @@ +# ExportReportColumn + +Description of a column from an async report request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the exported column | +**type** | **str** | Type of the column | +**role** | **str** | Role of the colummn | +**title** | **str** | Title of the exported column | [optional] +**description** | **str** | Description of the exported column | [optional] +**timezone** | **str** | Timezone of the column | [optional] +**duration** | **str** | Duration of the column | [optional] +**currency** | **str** | Currency of the column | [optional] +**deprecated** | **bool** | Flag for deprecated column | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExportReportMetaData.md b/sdks/retailmedia_2023-07/docs/ExportReportMetaData.md new file mode 100644 index 00000000..9cb46d51 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExportReportMetaData.md @@ -0,0 +1,14 @@ +# ExportReportMetaData + +Metadata for an async report request: descriptions of the columns and number of rows returned + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**columns** | [**[ExportReportColumn]**](ExportReportColumn.md) | | [optional] +**rows** | **int** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAccount.md b/sdks/retailmedia_2023-07/docs/ExternalAccount.md new file mode 100644 index 00000000..fafe7da3 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAccount.md @@ -0,0 +1,19 @@ +# ExternalAccount + +A Retail Media Account used to launch campaigns and line items + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**type** | **str** | | +**countries** | **[str]** | | +**currency** | **str** | | +**parent_account_label** | **str** | | +**time_zone** | **str** | | +**subtype** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ExternalAddToBasketIdsUpdateModel202110.md new file mode 100644 index 00000000..f66b04db --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAddToBasketIdsUpdateModel202110.md @@ -0,0 +1,14 @@ +# ExternalAddToBasketIdsUpdateModel202110 + +Update model for updating add to basket target ids + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product_ids** | **[str]** | Product ids that add to basket should target | [optional] +**category_ids** | **[str]** | Category ids that add to basket should target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAddToBasketTarget202110.md b/sdks/retailmedia_2023-07/docs/ExternalAddToBasketTarget202110.md new file mode 100644 index 00000000..60760ecd --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAddToBasketTarget202110.md @@ -0,0 +1,15 @@ +# ExternalAddToBasketTarget202110 + +Identifies add to basket targeting for a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **str** | Scope of the add to basket target | +**product_ids** | **[str]** | Product ids that add to basket should target | [optional] +**category_ids** | **[str]** | Category ids that add to basket should target | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItem.md b/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItem.md new file mode 100644 index 00000000..43d392ab --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItem.md @@ -0,0 +1,29 @@ +# ExternalAuctionLineItem + +A Retail Media Auction Line Item used to hold bid settings for one or many promoted products on a single retailer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**target_retailer_id** | **str** | | +**campaign_id** | **str** | | +**budget_remaining** | **float, none_type** | | +**created_at** | **datetime** | | +**updated_at** | **datetime** | | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] +**max_bid** | **float, none_type** | | [optional] +**budget** | **float, none_type** | | [optional] +**monthly_pacing** | **float, none_type** | | [optional] +**daily_pacing** | **float, none_type** | | [optional] +**bid_strategy** | **str** | | [optional] if omitted the server will use the default value of "conversion" +**status** | **str** | | [optional] +**target_bid** | **float, none_type** | | [optional] +**is_auto_daily_pacing** | **bool** | | [optional] if omitted the server will use the default value of False +**budget_spent** | **float** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemCreateModel.md b/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemCreateModel.md new file mode 100644 index 00000000..965d5579 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemCreateModel.md @@ -0,0 +1,24 @@ +# ExternalAuctionLineItemCreateModel + +Model to create a retail media auction line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**target_retailer_id** | **str** | | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] +**status** | **str** | | [optional] +**budget** | **float, none_type** | | [optional] +**target_bid** | **float, none_type** | | [optional] +**max_bid** | **float, none_type** | | [optional] +**monthly_pacing** | **float, none_type** | | [optional] +**daily_pacing** | **float, none_type** | | [optional] +**is_auto_daily_pacing** | **bool** | | [optional] if omitted the server will use the default value of False +**bid_strategy** | **str** | | [optional] if omitted the server will use the default value of "conversion" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemUpdateModel.md b/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemUpdateModel.md new file mode 100644 index 00000000..379d6bdd --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAuctionLineItemUpdateModel.md @@ -0,0 +1,23 @@ +# ExternalAuctionLineItemUpdateModel + +Model to update a retail media auction line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**status** | **str** | | +**target_bid** | **float, none_type** | | +**is_auto_daily_pacing** | **bool** | | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] +**budget** | **float, none_type** | | [optional] +**max_bid** | **float, none_type** | | [optional] +**monthly_pacing** | **float, none_type** | | [optional] +**daily_pacing** | **float, none_type** | | [optional] +**bid_strategy** | **str** | | [optional] if omitted the server will use the default value of "conversion" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ExternalAudienceIdsUpdateModel202110.md new file mode 100644 index 00000000..07de155f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAudienceIdsUpdateModel202110.md @@ -0,0 +1,13 @@ +# ExternalAudienceIdsUpdateModel202110 + +Update model for updating audience target ids + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audience_ids** | **[str]** | Audience ids that should be targeted | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalAudienceTarget202110.md b/sdks/retailmedia_2023-07/docs/ExternalAudienceTarget202110.md new file mode 100644 index 00000000..8d3374e2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalAudienceTarget202110.md @@ -0,0 +1,14 @@ +# ExternalAudienceTarget202110 + +Identifies audience targeting for a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **str** | Scope of the audience target | +**audience_ids** | **[str]** | Audience ids that should be targeted | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md b/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md new file mode 100644 index 00000000..77ad10c5 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalBalance202110.md @@ -0,0 +1,23 @@ +# ExternalBalance202110 + +A Retail Media Balance used to determine the funds available for any or all campaigns in an account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**po_number** | **str** | | +**memo** | **str** | | +**deposited** | **float, none_type** | | +**spent** | **float, none_type** | | +**remaining** | **float, none_type** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**status** | **str** | | +**created_at** | **datetime** | | +**updated_at** | **datetime** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalBrand.md b/sdks/retailmedia_2023-07/docs/ExternalBrand.md new file mode 100644 index 00000000..633053c9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalBrand.md @@ -0,0 +1,13 @@ +# ExternalBrand + +A Retail Media Brand used to represent a collection of products sold under the same umbrella name + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalCatalogRequest.md b/sdks/retailmedia_2023-07/docs/ExternalCatalogRequest.md new file mode 100644 index 00000000..ac2a5b4f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalCatalogRequest.md @@ -0,0 +1,14 @@ +# ExternalCatalogRequest + +A request for a catalog under the specified format. Currently \"json-newline\" is supported. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format** | **str** | | [optional] if omitted the server will use the default value of "json-newline" +**brand_id_filter** | **[str]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalCatalogStatus.md b/sdks/retailmedia_2023-07/docs/ExternalCatalogStatus.md new file mode 100644 index 00000000..ba111d84 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalCatalogStatus.md @@ -0,0 +1,19 @@ +# ExternalCatalogStatus + +The status of an asynchronous request to generate a catalog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | An enumeration of the status of the catalog. | +**currency** | **str** | An ISO4217 representation of the currency products are listed under in this catalog. | +**row_count** | **int, none_type** | An indication of the number of products contained in this catalog. Available when this catalog reaches a success status. | +**file_size_bytes** | **int, none_type** | The size of this catalog in bytes. Available when this catalog reaches a success status. | +**md5_checksum** | **str, none_type** | An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status. | +**created_at** | **datetime** | The time this catalog was created. Represented as a UTC ISO8601 string. | +**message** | **str, none_type** | An optional information message intended for developer consumption. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalCommonLineItem.md b/sdks/retailmedia_2023-07/docs/ExternalCommonLineItem.md new file mode 100644 index 00000000..a06c0dab --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalCommonLineItem.md @@ -0,0 +1,24 @@ +# ExternalCommonLineItem + +A common line item to hold line item information shared between preferred and auction line items + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**type** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**target_retailer_id** | **str** | | +**campaign_id** | **str** | | +**budget_remaining** | **float, none_type** | | +**created_at** | **datetime** | | +**updated_at** | **datetime** | | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] +**status** | **str** | | [optional] +**budget** | **float, none_type** | | [optional] +**budget_spent** | **float** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalKeywordTarget202110.md b/sdks/retailmedia_2023-07/docs/ExternalKeywordTarget202110.md new file mode 100644 index 00000000..73407912 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalKeywordTarget202110.md @@ -0,0 +1,13 @@ +# ExternalKeywordTarget202110 + +Identifies keyword targeting for a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keywords** | **{str: (str,)}** | Keywords that targeting specifications exist for | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md b/sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md new file mode 100644 index 00000000..4ecb8f17 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalLineItemCapping202110.md @@ -0,0 +1,14 @@ +# ExternalLineItemCapping202110 + +Frequency capping for a preferred line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**count** | **int** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md b/sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md new file mode 100644 index 00000000..e984d215 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalLineItemPage202110.md @@ -0,0 +1,15 @@ +# ExternalLineItemPage202110 + +Page information for a preferred line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page_type** | **str** | | +**categories** | [**[ExternalLineItemPageCategory202110]**](ExternalLineItemPageCategory202110.md) | | [optional] +**search_keywords** | **[str]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md b/sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md new file mode 100644 index 00000000..a45a3c75 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalLineItemPageCategory202110.md @@ -0,0 +1,14 @@ +# ExternalLineItemPageCategory202110 + +Category information for a preferred line item page + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**category_id** | **str** | | +**include_children** | **bool** | | [optional] if omitted the server will use the default value of True +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md b/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md new file mode 100644 index 00000000..b87bb5d2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItem202110.md @@ -0,0 +1,27 @@ +# ExternalPreferredLineItem202110 + +A Retail Media Preferred Line Item used to hold bid settings for one or many promoted products on a single retailer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**status** | **str** | | +**pacing** | **str** | | +**page** | [**ExternalLineItemPage202110**](ExternalLineItemPage202110.md) | | +**target_retailer_id** | **str** | | +**budget** | **float** | | +**campaign_id** | **str** | | +**created_at** | **datetime** | | +**updated_at** | **datetime** | | +**capping** | [**ExternalLineItemCapping202110**](ExternalLineItemCapping202110.md) | | [optional] +**budget_spent** | **float** | | [optional] +**budget_remaining** | **float** | | [optional] +**creative_id** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md new file mode 100644 index 00000000..f814c7d9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemCreateModel202110.md @@ -0,0 +1,22 @@ +# ExternalPreferredLineItemCreateModel202110 + +Model used to create a preferred line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**pacing** | **str** | | +**page** | [**ExternalLineItemPage202110**](ExternalLineItemPage202110.md) | | +**target_retailer_id** | **str** | | +**budget** | **float** | | +**status** | **str** | | [optional] +**capping** | [**ExternalLineItemCapping202110**](ExternalLineItemCapping202110.md) | | [optional] +**creative_id** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md new file mode 100644 index 00000000..79e0a6bc --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalPreferredLineItemUpdateModel202110.md @@ -0,0 +1,21 @@ +# ExternalPreferredLineItemUpdateModel202110 + +Model used to update a preferred line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**status** | **str** | | +**pacing** | **str** | | [optional] if omitted the server will use the default value of "accelerated" +**capping** | [**ExternalLineItemCapping202110**](ExternalLineItemCapping202110.md) | | [optional] +**page** | [**ExternalLineItemPage202110**](ExternalLineItemPage202110.md) | | [optional] +**budget** | **float** | | [optional] +**creative_id** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md b/sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md new file mode 100644 index 00000000..60819fac --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalPromotedProduct202110.md @@ -0,0 +1,13 @@ +# ExternalPromotedProduct202110 + +identifies a promoted product + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bid_override** | **float, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalRetailer.md b/sdks/retailmedia_2023-07/docs/ExternalRetailer.md new file mode 100644 index 00000000..992d7ff9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalRetailer.md @@ -0,0 +1,14 @@ +# ExternalRetailer + +A Retail Media Retailer used to represent a selection of products from multiple brands + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**campaign_eligibilities** | **[str]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalRetailerPages202110.md b/sdks/retailmedia_2023-07/docs/ExternalRetailerPages202110.md new file mode 100644 index 00000000..4ddf601d --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalRetailerPages202110.md @@ -0,0 +1,13 @@ +# ExternalRetailerPages202110 + +Wraps a list of valid pages for a retailer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page_types** | **[str]** | List of valid pages for a retailer | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalStoreIdsUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ExternalStoreIdsUpdateModel202110.md new file mode 100644 index 00000000..12c3279d --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalStoreIdsUpdateModel202110.md @@ -0,0 +1,13 @@ +# ExternalStoreIdsUpdateModel202110 + +Update model for updating store target ids + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**store_ids** | **[str]** | Store ids that should be targeted | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ExternalStoreTarget202110.md b/sdks/retailmedia_2023-07/docs/ExternalStoreTarget202110.md new file mode 100644 index 00000000..ea6d4bfd --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ExternalStoreTarget202110.md @@ -0,0 +1,14 @@ +# ExternalStoreTarget202110 + +Identifies store targeting for a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scope** | **str** | Scope of the store target | +**store_ids** | **[str]** | Store ids that should be targeted | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/FilesVariableValue.md b/sdks/retailmedia_2023-07/docs/FilesVariableValue.md new file mode 100644 index 00000000..ed5ebecb --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/FilesVariableValue.md @@ -0,0 +1,13 @@ +# FilesVariableValue + +A value of a template file variable (one or several files), like images in a creative + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**asset_ids** | **[str]** | The assets representing the images to be displayed | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/FilesVariablesSpecification.md b/sdks/retailmedia_2023-07/docs/FilesVariablesSpecification.md new file mode 100644 index 00000000..9c879487 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/FilesVariablesSpecification.md @@ -0,0 +1,16 @@ +# FilesVariablesSpecification + +Specification of a file variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extensions** | **[str]** | The accepted file extensions | +**min_files** | **int, none_type** | The minimum amount of files requires | +**max_bytes** | **int, none_type** | The maximum amount of bytes per file | [optional] +**max_file** | **int, none_type** | The maximum amount of files required | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/GatewayApi.md b/sdks/retailmedia_2023-07/docs/GatewayApi.md new file mode 100644 index 00000000..ee9e735e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/GatewayApi.md @@ -0,0 +1,90 @@ +# criteo_api_retailmedia_v2023_07.GatewayApi + +All URIs are relative to *https://api.criteo.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_current_application**](GatewayApi.md#get_current_application) | **GET** /2023-07/retail-media/me | + + +# **get_current_application** +> ApplicationSummaryModelResponse get_current_application() + + + +Get information about the currently logged application + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_v2023_07 +from criteo_api_retailmedia_v2023_07.api import gateway_api +from criteo_api_retailmedia_v2023_07.model.application_summary_model_response import ApplicationSummaryModelResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_v2023_07.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_v2023_07.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = gateway_api.GatewayApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.get_current_application() + pprint(api_response) + except criteo_api_retailmedia_v2023_07.ApiException as e: + print("Exception when calling GatewayApi->get_current_application: %s\n" % e) +``` + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**ApplicationSummaryModelResponse**](ApplicationSummaryModelResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**404** | Not Found | - | + +[[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/sdks/retailmedia_2023-07/docs/GetPageOfAudiencesByAccountIdResponse.md b/sdks/retailmedia_2023-07/docs/GetPageOfAudiencesByAccountIdResponse.md new file mode 100644 index 00000000..23d8a31c --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/GetPageOfAudiencesByAccountIdResponse.md @@ -0,0 +1,16 @@ +# GetPageOfAudiencesByAccountIdResponse + +Response for page of audiences by given account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[RetailMediaAudience]**](RetailMediaAudience.md) | data | [readonly] +**metadata** | [**PageMetadata**](PageMetadata.md) | | +**errors** | [**[CommonError]**](CommonError.md) | errors | [optional] [readonly] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | warnings | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/HyperlinkVariableValue.md b/sdks/retailmedia_2023-07/docs/HyperlinkVariableValue.md new file mode 100644 index 00000000..a2f66734 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/HyperlinkVariableValue.md @@ -0,0 +1,13 @@ +# HyperlinkVariableValue + +A value of a template hyperlink variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | The url to redirect to | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/InputResourceOfAuctionLineItemCreateModel.md b/sdks/retailmedia_2023-07/docs/InputResourceOfAuctionLineItemCreateModel.md new file mode 100644 index 00000000..de9022b7 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/InputResourceOfAuctionLineItemCreateModel.md @@ -0,0 +1,14 @@ +# InputResourceOfAuctionLineItemCreateModel + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalAuctionLineItemCreateModel**](ExternalAuctionLineItemCreateModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md b/sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md new file mode 100644 index 00000000..0d79549a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/InputResourceOfPreferredLineItemCreateModel202110.md @@ -0,0 +1,14 @@ +# InputResourceOfPreferredLineItemCreateModel202110 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalPreferredLineItemCreateModel202110**](ExternalPreferredLineItemCreateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md new file mode 100644 index 00000000..36b0d614 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301 + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**EditableCampaignAttributesV202301**](EditableCampaignAttributesV202301.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md new file mode 100644 index 00000000..c8dbad7d --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithIdOfInt64AndAccountAndAccount + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**ExternalAccount**](ExternalAccount.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md new file mode 100644 index 00000000..02ed14d0 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithIdOfInt64AndBrandAndBrand + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**ExternalBrand**](ExternalBrand.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md new file mode 100644 index 00000000..47983907 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301 + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**CampaignV202301**](CampaignV202301.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md new file mode 100644 index 00000000..1e9fab40 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**ExternalCatalogStatus**](ExternalCatalogStatus.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md new file mode 100644 index 00000000..c7cfd79b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers + +Response object for line item bid multiplier calls + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**LineItemBidMultipliers**](LineItemBidMultipliers.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md new file mode 100644 index 00000000..8c950172 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md @@ -0,0 +1,15 @@ +# JsonApiBodyWithIdOfInt64AndRetailerAndRetailer + +A JSON:API wrapper class to format a with external Id, Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**type** | **str** | | +**attributes** | [**ExternalRetailer**](ExternalRetailer.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md new file mode 100644 index 00000000..0d2a01f4 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md @@ -0,0 +1,14 @@ +# JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301 + +A JSON:API wrapper class to format a with Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**attributes** | [**CampaignAttributesV202301**](CampaignAttributesV202301.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md new file mode 100644 index 00000000..ad0394fa --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md @@ -0,0 +1,14 @@ +# JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest + +A JSON:API wrapper class to format a with Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**attributes** | [**ExternalCatalogRequest**](ExternalCatalogRequest.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfAccount.md b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfAccount.md new file mode 100644 index 00000000..25de04ad --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfAccount.md @@ -0,0 +1,16 @@ +# JsonApiPageResponseOfAccount + +A wrapper class to return a single page of with metadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[JsonApiBodyWithIdOfInt64AndAccountAndAccount]**](JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfBrand.md b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfBrand.md new file mode 100644 index 00000000..dfa51604 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfBrand.md @@ -0,0 +1,16 @@ +# JsonApiPageResponseOfBrand + +A wrapper class to return a single page of with metadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[JsonApiBodyWithIdOfInt64AndBrandAndBrand]**](JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfCampaignV202301.md b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfCampaignV202301.md new file mode 100644 index 00000000..27d5f348 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfCampaignV202301.md @@ -0,0 +1,16 @@ +# JsonApiPageResponseOfCampaignV202301 + +A wrapper class to return a single page of with metadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | +**data** | [**[JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301]**](JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfRetailer.md b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfRetailer.md new file mode 100644 index 00000000..21a0916d --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiPageResponseOfRetailer.md @@ -0,0 +1,16 @@ +# JsonApiPageResponseOfRetailer + +A wrapper class to return a single page of with metadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[JsonApiBodyWithIdOfInt64AndRetailerAndRetailer]**](JsonApiBodyWithIdOfInt64AndRetailerAndRetailer.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiRequestOfCatalogRequest.md b/sdks/retailmedia_2023-07/docs/JsonApiRequestOfCatalogRequest.md new file mode 100644 index 00000000..494288aa --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiRequestOfCatalogRequest.md @@ -0,0 +1,13 @@ +# JsonApiRequestOfCatalogRequest + +A JSON:API wrapper class to format a with Type, and Attributes properties + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest**](JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequest.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCampaignV202301.md b/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCampaignV202301.md new file mode 100644 index 00000000..90f74e61 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCampaignV202301.md @@ -0,0 +1,15 @@ +# JsonApiSingleResponseOfCampaignV202301 + +A JSON:API wrapper class to add one JSON:API within a data property + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301**](JsonApiBodyWithIdOfInt64AndCampaignV202301AndCampaignV202301.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCatalogStatus.md b/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCatalogStatus.md new file mode 100644 index 00000000..063bf069 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfCatalogStatus.md @@ -0,0 +1,15 @@ +# JsonApiSingleResponseOfCatalogStatus + +A JSON:API wrapper class to add one JSON:API within a data property + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus**](JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md b/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md new file mode 100644 index 00000000..effec147 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/JsonApiSingleResponseOfLineItemBidMultipliers.md @@ -0,0 +1,15 @@ +# JsonApiSingleResponseOfLineItemBidMultipliers + +Data model for the response of a line item bid multiplier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers**](JsonApiBodyWithIdOfInt64AndLineItemBidMultipliersAndLineItemBidMultipliers.md) | | +**errors** | [**[CommonError]**](CommonError.md) | | [optional] +**warnings** | [**[CommonWarning]**](CommonWarning.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/KeywordTarget202110Request.md b/sdks/retailmedia_2023-07/docs/KeywordTarget202110Request.md new file mode 100644 index 00000000..b263c3bd --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/KeywordTarget202110Request.md @@ -0,0 +1,13 @@ +# KeywordTarget202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfKeywordTarget202110**](ValueTypeResourceOfKeywordTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/KeywordTarget202110Response.md b/sdks/retailmedia_2023-07/docs/KeywordTarget202110Response.md new file mode 100644 index 00000000..64e93302 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/KeywordTarget202110Response.md @@ -0,0 +1,15 @@ +# KeywordTarget202110Response + +Data model for a value type resource outcome + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfKeywordTarget202110**](ValueTypeResourceOfKeywordTarget202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md new file mode 100644 index 00000000..b654c293 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliers.md @@ -0,0 +1,20 @@ +# LineItemBidMultipliers + +Data model representing bid multipliers on a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**search** | **float** | | [optional] +**homepage** | **float** | | [optional] +**categories** | **float** | | [optional] +**product_detail** | **float** | | [optional] +**confirmation** | **float** | | [optional] +**merchandising** | **float** | | [optional] +**deals** | **float** | | [optional] +**checkout** | **float** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md new file mode 100644 index 00000000..83df2f3b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersRequest.md @@ -0,0 +1,13 @@ +# LineItemBidMultipliersRequest + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfLineItemBidMultipliers**](ResourceOfLineItemBidMultipliers.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md new file mode 100644 index 00000000..f5f4f38f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/LineItemBidMultipliersResponse.md @@ -0,0 +1,15 @@ +# LineItemBidMultipliersResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfLineItemBidMultipliers**](ResourceOfLineItemBidMultipliers.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/LineItemReport.md b/sdks/retailmedia_2023-07/docs/LineItemReport.md new file mode 100644 index 00000000..4c5935d3 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/LineItemReport.md @@ -0,0 +1,25 @@ +# LineItemReport + +Line item report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | | +**start_date** | **datetime** | | +**end_date** | **datetime** | | +**report_type** | **str** | | [optional] +**line_item_ids** | **[str]** | | [optional] +**campaign_ids** | **[str]** | | [optional] +**metrics** | **[str]** | | [optional] +**dimensions** | **[str]** | List of dimensions to report on | [optional] +**timezone** | **str** | | [optional] +**click_attribution_window** | **str** | | [optional] +**view_attribution_window** | **str** | | [optional] +**campaign_type** | **str** | | [optional] +**sales_channel** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/LineItemReportRequest.md b/sdks/retailmedia_2023-07/docs/LineItemReportRequest.md new file mode 100644 index 00000000..30e22b94 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/LineItemReportRequest.md @@ -0,0 +1,13 @@ +# LineItemReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**LineItemReportResource**](LineItemReportResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/LineItemReportResource.md b/sdks/retailmedia_2023-07/docs/LineItemReportResource.md new file mode 100644 index 00000000..736dbd85 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/LineItemReportResource.md @@ -0,0 +1,14 @@ +# LineItemReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**LineItemReport**](LineItemReport.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PageMetadata.md b/sdks/retailmedia_2023-07/docs/PageMetadata.md new file mode 100644 index 00000000..2967c18a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PageMetadata.md @@ -0,0 +1,18 @@ +# PageMetadata + +Metadata related to the current request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_page_size** | **int** | | +**current_page_index** | **int** | | +**total_items_across_all_pages** | **int, none_type** | | [optional] +**total_pages** | **int, none_type** | | [optional] +**next_page** | **str** | | [optional] +**previous_page** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PageTypeEnvironment.md b/sdks/retailmedia_2023-07/docs/PageTypeEnvironment.md new file mode 100644 index 00000000..66571a9a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PageTypeEnvironment.md @@ -0,0 +1,14 @@ +# PageTypeEnvironment + +The PageType-Environment Tuples for creatives + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page_type** | **str** | Creative PageType | [optional] +**environments** | **[str]** | List of environments per PageType | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PostCampaignV202301.md b/sdks/retailmedia_2023-07/docs/PostCampaignV202301.md new file mode 100644 index 00000000..b3eb7e47 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PostCampaignV202301.md @@ -0,0 +1,13 @@ +# PostCampaignV202301 + +An object that represents the available options to set when creating a Retail Media Campaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301**](JsonApiBodyWithoutIdOfCampaignAttributesV202301AndCampaignV202301.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md new file mode 100644 index 00000000..ed58a293 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PreferredLineItem202110PagedListResponse.md @@ -0,0 +1,16 @@ +# PreferredLineItem202110PagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfPreferredLineItem202110]**](ResourceOfPreferredLineItem202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md b/sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md new file mode 100644 index 00000000..0046cd8c --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PreferredLineItem202110Response.md @@ -0,0 +1,15 @@ +# PreferredLineItem202110Response + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfPreferredLineItem202110**](ResourceOfPreferredLineItem202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md b/sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md new file mode 100644 index 00000000..f4f861cc --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PreferredLineItemCreateModel202110Request.md @@ -0,0 +1,13 @@ +# PreferredLineItemCreateModel202110Request + +Data model for a create input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**InputResourceOfPreferredLineItemCreateModel202110**](InputResourceOfPreferredLineItemCreateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md b/sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md new file mode 100644 index 00000000..2970a908 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PreferredLineItemUpdateModel202110Request.md @@ -0,0 +1,13 @@ +# PreferredLineItemUpdateModel202110Request + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfPreferredLineItemUpdateModel202110**](ResourceOfPreferredLineItemUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ProblemDetails.md b/sdks/retailmedia_2023-07/docs/ProblemDetails.md new file mode 100644 index 00000000..58072563 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ProblemDetails.md @@ -0,0 +1,21 @@ +# ProblemDetails + +Data model for common error or warning + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_id** | **str** | The request correlation ID this problem comes from. | [optional] +**trace_identifier** | **str** | The request correlation ID this problem comes from. (deprecated, use traceId instead) | [optional] +**type** | **str** | The problem's category. | [optional] +**code** | **str** | A machine-readable error code, expressed as a string value. | [optional] +**instance** | **str** | A URI that identifies the specific occurrence of the problem. | [optional] +**title** | **str** | A short human-readable description of the problem type | [optional] +**detail** | **str** | A human-readable explanation specific to this occurrence of the problem | [optional] +**source** | **{str: (str,)}** | A machine-readable structure to reference to the exact location(s) causing the error(s) | [optional] +**stack_trace** | **str** | Technical information, only used in non-prod environments | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md b/sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md new file mode 100644 index 00000000..126d6533 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PromotedProduct202110ListRequest.md @@ -0,0 +1,13 @@ +# PromotedProduct202110ListRequest + +Data model for a list of input resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ResourceOfPromotedProduct202110]**](ResourceOfPromotedProduct202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md b/sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md new file mode 100644 index 00000000..8eb0f6c1 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PromotedProduct202110PagedListResponse.md @@ -0,0 +1,16 @@ +# PromotedProduct202110PagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfPromotedProduct202110]**](ResourceOfPromotedProduct202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/PutCampaignV202301.md b/sdks/retailmedia_2023-07/docs/PutCampaignV202301.md new file mode 100644 index 00000000..4a225833 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/PutCampaignV202301.md @@ -0,0 +1,13 @@ +# PutCampaignV202301 + +An object that represents the available options to set when editing a Retail Media Campaign + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301**](JsonApiBodyWithExternalIdOfEditableCampaignAttributesV202301AndCampaignV202301.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md b/sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md new file mode 100644 index 00000000..14eb4eff --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ReportDataResponseResource.md @@ -0,0 +1,14 @@ +# ReportDataResponseResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | **[[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ReportOutcome.md b/sdks/retailmedia_2023-07/docs/ReportOutcome.md new file mode 100644 index 00000000..2224f0f9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ReportOutcome.md @@ -0,0 +1,14 @@ +# ReportOutcome + +The outcome of an API call. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ReportResponse.md b/sdks/retailmedia_2023-07/docs/ReportResponse.md new file mode 100644 index 00000000..9722299b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ReportResponse.md @@ -0,0 +1,16 @@ +# ReportResponse + +Report response format + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**meta** | [**ExportReportMetaData**](ExportReportMetaData.md) | | [optional] +**data** | [**ReportDataResponseResource**](ReportDataResponseResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItem.md b/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItem.md new file mode 100644 index 00000000..ede18feb --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItem.md @@ -0,0 +1,15 @@ +# ResourceOfAuctionLineItem + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalAuctionLineItem**](ExternalAuctionLineItem.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItemUpdateModel.md b/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItemUpdateModel.md new file mode 100644 index 00000000..053a97e2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfAuctionLineItemUpdateModel.md @@ -0,0 +1,15 @@ +# ResourceOfAuctionLineItemUpdateModel + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalAuctionLineItemUpdateModel**](ExternalAuctionLineItemUpdateModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md new file mode 100644 index 00000000..74268b6a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfBalance202110.md @@ -0,0 +1,15 @@ +# ResourceOfBalance202110 + +A class that represents an entity in a guild compliant way + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalBalance202110**](ExternalBalance202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfBalanceCampaign202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfBalanceCampaign202110.md new file mode 100644 index 00000000..eb77b7fe --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfBalanceCampaign202110.md @@ -0,0 +1,15 @@ +# ResourceOfBalanceCampaign202110 + +A class that represents an entity in a guild compliant way + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Campaigns related to the balance | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfCategory202204.md b/sdks/retailmedia_2023-07/docs/ResourceOfCategory202204.md new file mode 100644 index 00000000..71f8a98b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfCategory202204.md @@ -0,0 +1,15 @@ +# ResourceOfCategory202204 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Category202204**](Category202204.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfCommonLineItem.md b/sdks/retailmedia_2023-07/docs/ResourceOfCommonLineItem.md new file mode 100644 index 00000000..1c488e1e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfCommonLineItem.md @@ -0,0 +1,15 @@ +# ResourceOfCommonLineItem + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalCommonLineItem**](ExternalCommonLineItem.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfCreative202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfCreative202110.md new file mode 100644 index 00000000..31f36f59 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfCreative202110.md @@ -0,0 +1,15 @@ +# ResourceOfCreative202110 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**Creative202110**](Creative202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfCreative202210.md b/sdks/retailmedia_2023-07/docs/ResourceOfCreative202210.md new file mode 100644 index 00000000..00500454 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfCreative202210.md @@ -0,0 +1,15 @@ +# ResourceOfCreative202210 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Creative202210**](Creative202210.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md b/sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md new file mode 100644 index 00000000..f7a9c779 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfLineItemBidMultipliers.md @@ -0,0 +1,15 @@ +# ResourceOfLineItemBidMultipliers + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**LineItemBidMultipliers**](LineItemBidMultipliers.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md new file mode 100644 index 00000000..802de9b7 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItem202110.md @@ -0,0 +1,15 @@ +# ResourceOfPreferredLineItem202110 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalPreferredLineItem202110**](ExternalPreferredLineItem202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md new file mode 100644 index 00000000..6f76e4f6 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfPreferredLineItemUpdateModel202110.md @@ -0,0 +1,15 @@ +# ResourceOfPreferredLineItemUpdateModel202110 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalPreferredLineItemUpdateModel202110**](ExternalPreferredLineItemUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md b/sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md new file mode 100644 index 00000000..ad3375fb --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfPromotedProduct202110.md @@ -0,0 +1,15 @@ +# ResourceOfPromotedProduct202110 + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**attributes** | [**ExternalPromotedProduct202110**](ExternalPromotedProduct202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ResourceOfTemplate.md b/sdks/retailmedia_2023-07/docs/ResourceOfTemplate.md new file mode 100644 index 00000000..d1022a87 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ResourceOfTemplate.md @@ -0,0 +1,15 @@ +# ResourceOfTemplate + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Template**](Template.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaAudience.md b/sdks/retailmedia_2023-07/docs/RetailMediaAudience.md new file mode 100644 index 00000000..8ac638cb --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaAudience.md @@ -0,0 +1,16 @@ +# RetailMediaAudience + +All the information about a retail media audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**audience_type** | **str** | Type of the audience | +**id** | **str** | Unique ID of this audience. | +**type** | **str** | Name of the entity i.e. RetailMediaAudienceSummary | +**attributes** | [**RetailMediaAudienceAttributes**](RetailMediaAudienceAttributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaAudienceAttributes.md b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceAttributes.md new file mode 100644 index 00000000..af90ff33 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceAttributes.md @@ -0,0 +1,16 @@ +# RetailMediaAudienceAttributes + +Fields of a retail media audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**retailer_id** | **str** | ID of the retailer associated with this audience | +**name** | **str** | Name of the audience. | +**user_behavior_details** | [**UserBehaviorDetails**](UserBehaviorDetails.md) | | [optional] +**customer_list_details** | [**CustomerListDetails**](CustomerListDetails.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2.md b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2.md new file mode 100644 index 00000000..f750a26a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2.md @@ -0,0 +1,15 @@ +# RetailMediaAudienceV2 + +Retail Media audience returned by the Get RetailMedia Audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | Type of the audience | +**id** | **str** | Unique ID of this audience. | +**attributes** | [**RetailMediaAudienceV2Attributes**](RetailMediaAudienceV2Attributes.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Attributes.md b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Attributes.md new file mode 100644 index 00000000..38c93ec6 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Attributes.md @@ -0,0 +1,16 @@ +# RetailMediaAudienceV2Attributes + +Properties of the returned Audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**retailer_id** | **int** | ID of the retailer associated with this audience | +**name** | **str** | Name of the audience. | +**user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | [optional] +**customer_list_details** | [**CustomerListDetails**](CustomerListDetails.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2ListResponse.md b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2ListResponse.md new file mode 100644 index 00000000..139078cf --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2ListResponse.md @@ -0,0 +1,16 @@ +# RetailMediaAudienceV2ListResponse + +Array of Audiences Returned as Part of Get RetailMedia Audience Request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[RetailMediaAudienceV2]**](RetailMediaAudienceV2.md) | data | [readonly] +**metadata** | [**PageMetadata**](PageMetadata.md) | | +**errors** | [**[CommonProblem]**](CommonProblem.md) | errors | [optional] [readonly] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | warnings | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Response.md b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Response.md new file mode 100644 index 00000000..14381376 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaAudienceV2Response.md @@ -0,0 +1,15 @@ +# RetailMediaAudienceV2Response + +Response of CreateAudienceRequestV2 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**CreateRetailMediaAudienceV2**](CreateRetailMediaAudienceV2.md) | | [optional] +**errors** | [**[CommonProblem]**](CommonProblem.md) | errors | [optional] [readonly] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | warnings | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordModel.md new file mode 100644 index 00000000..9bf865fd --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordModel.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1AddRemoveKeywordModel + +A single keyword to be added or removed + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phrase** | **str** | | [optional] +**match_type** | **str** | | [optional] +**is_deleted** | **bool** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md new file mode 100644 index 00000000..8a17dd5f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModel.md @@ -0,0 +1,13 @@ +# RetailMediaExternalv1AddRemoveKeywordsModel + +Data model containing keywords to be added or removed from a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keywords** | [**[RetailMediaExternalv1AddRemoveKeywordModel]**](RetailMediaExternalv1AddRemoveKeywordModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md new file mode 100644 index 00000000..d623d5f5 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelRequest.md @@ -0,0 +1,13 @@ +# RetailMediaExternalv1AddRemoveKeywordsModelRequest + +Request object to add or remove keywords from a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RetailMediaExternalv1AddRemoveKeywordsModelResource**](RetailMediaExternalv1AddRemoveKeywordsModelResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md new file mode 100644 index 00000000..23028e85 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1AddRemoveKeywordsModelResource.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1AddRemoveKeywordsModelResource + +Resource wrapper the keyword add and remove datamodel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**id** | **str** | | [optional] +**attributes** | [**RetailMediaExternalv1AddRemoveKeywordsModel**](RetailMediaExternalv1AddRemoveKeywordsModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1InputKeywordsModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1InputKeywordsModel.md new file mode 100644 index 00000000..4c20fdf9 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1InputKeywordsModel.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1InputKeywordsModel + +Input values associated with a keyword + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**negative_broad** | **[str]** | | [optional] +**negative_exact** | **[str]** | | [optional] +**positive_exact** | **[str]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordDataModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordDataModel.md new file mode 100644 index 00000000..6d6a4981 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordDataModel.md @@ -0,0 +1,18 @@ +# RetailMediaExternalv1KeywordDataModel + +Details for a specific keyword + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**review_state** | **str** | | [optional] +**match_type** | **str** | | [optional] +**bid** | **float** | | [optional] +**input_keywords** | [**RetailMediaExternalv1InputKeywordsModel**](RetailMediaExternalv1InputKeywordsModel.md) | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModel.md new file mode 100644 index 00000000..7f4a25f6 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModel.md @@ -0,0 +1,14 @@ +# RetailMediaExternalv1KeywordsModel + +Datamodel representing keywords associated with a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keywords** | [**RetailMediaExternalv1KeywordDataModel**](RetailMediaExternalv1KeywordDataModel.md) | | [optional] +**rank** | **[str]** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResource.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResource.md new file mode 100644 index 00000000..130a47f5 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResource.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1KeywordsModelResource + +Resource wrapper of associated keywords with a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**id** | **str** | | [optional] +**attributes** | [**RetailMediaExternalv1KeywordsModel**](RetailMediaExternalv1KeywordsModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResponse.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResponse.md new file mode 100644 index 00000000..fb7cc1e4 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1KeywordsModelResponse.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1KeywordsModelResponse + +Response object containing keywords associated with a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RetailMediaExternalv1KeywordsModelResource**](RetailMediaExternalv1KeywordsModelResource.md) | | [optional] +**errors** | [**[RetailMediaExternalv1ProblemDetails]**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[RetailMediaExternalv1ProblemDetails]**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProblemDetails.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProblemDetails.md new file mode 100644 index 00000000..42bb29c6 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProblemDetails.md @@ -0,0 +1,21 @@ +# RetailMediaExternalv1ProblemDetails + +Datamodel for common errors and warnings + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**trace_identifier** | **str** | | [optional] +**code** | **str** | | [optional] +**source** | **{str: (str,)}** | | [optional] +**stack_trace** | **str** | | [optional] +**type** | **str** | | [optional] +**title** | **str** | | [optional] +**status** | **int** | | [optional] +**detail** | **str** | | [optional] +**instance** | **str** | | [optional] +**any string name** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModel.md new file mode 100644 index 00000000..55796b91 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModel.md @@ -0,0 +1,18 @@ +# RetailMediaExternalv1ProposalStatusModel + +The proposal status includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**negotiation_state** | **str** | | +**booking_status** | **str** | | +**runnable_status** | **str** | | +**comment** | **str** | | [optional] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResource.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResource.md new file mode 100644 index 00000000..a2c01fc7 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResource.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1ProposalStatusModelResource + +Wrapper for the proposal status + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**id** | **str** | | [optional] +**attributes** | [**RetailMediaExternalv1ProposalStatusModel**](RetailMediaExternalv1ProposalStatusModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResponse.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResponse.md new file mode 100644 index 00000000..3ba4b681 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ProposalStatusModelResponse.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1ProposalStatusModelResponse + +Wrapper for the proposal status resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RetailMediaExternalv1ProposalStatusModelResource**](RetailMediaExternalv1ProposalStatusModelResource.md) | | [optional] +**errors** | [**[RetailMediaExternalv1ProblemDetails]**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[RetailMediaExternalv1ProblemDetails]**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ResourceOutcome.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ResourceOutcome.md new file mode 100644 index 00000000..07d431d2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1ResourceOutcome.md @@ -0,0 +1,14 @@ +# RetailMediaExternalv1ResourceOutcome + +A response object containing errors or warnings if required + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**[RetailMediaExternalv1ProblemDetails]**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**warnings** | [**[RetailMediaExternalv1ProblemDetails]**](RetailMediaExternalv1ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidModel.md new file mode 100644 index 00000000..3a1e0d8e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidModel.md @@ -0,0 +1,14 @@ +# RetailMediaExternalv1SetBidModel + +A single keyword and associated bid override + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phrase** | **str** | | [optional] +**bid** | **float** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModel.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModel.md new file mode 100644 index 00000000..ee6dde90 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModel.md @@ -0,0 +1,13 @@ +# RetailMediaExternalv1SetBidsModel + +Data model containing keywords and bid overrides to associate to them + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keywords** | [**[RetailMediaExternalv1SetBidModel]**](RetailMediaExternalv1SetBidModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelRequest.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelRequest.md new file mode 100644 index 00000000..e40b943e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelRequest.md @@ -0,0 +1,13 @@ +# RetailMediaExternalv1SetBidsModelRequest + +Request to set bid overrides for specified keywords on a line item + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**RetailMediaExternalv1SetBidsModelResource**](RetailMediaExternalv1SetBidsModelResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelResource.md b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelResource.md new file mode 100644 index 00000000..1cde4802 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/RetailMediaExternalv1SetBidsModelResource.md @@ -0,0 +1,15 @@ +# RetailMediaExternalv1SetBidsModelResource + +Wrapper of the Set Bids datamodel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | +**id** | **str** | | [optional] +**attributes** | [**RetailMediaExternalv1SetBidsModel**](RetailMediaExternalv1SetBidsModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Section.md b/sdks/retailmedia_2023-07/docs/Section.md new file mode 100644 index 00000000..09186289 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Section.md @@ -0,0 +1,14 @@ +# Section + +Section object that hold template variables + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | +**template_variables** | [**[TemplateVariable]**](TemplateVariable.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/StatusResponse.md b/sdks/retailmedia_2023-07/docs/StatusResponse.md new file mode 100644 index 00000000..25580c23 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/StatusResponse.md @@ -0,0 +1,20 @@ +# StatusResponse + +Status of an async report request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] +**row_count** | **int** | | [optional] +**file_size_bytes** | **int** | | [optional] +**md5_check_sum** | **str** | | [optional] +**created_at** | **str** | | [optional] +**expires_at** | **str** | | [optional] +**message** | **str** | | [optional] +**id** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/StatusResponseResource.md b/sdks/retailmedia_2023-07/docs/StatusResponseResource.md new file mode 100644 index 00000000..3e1617db --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/StatusResponseResource.md @@ -0,0 +1,15 @@ +# StatusResponseResource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**StatusResponse**](StatusResponse.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/StoreIdsUpdateModel202110Request.md b/sdks/retailmedia_2023-07/docs/StoreIdsUpdateModel202110Request.md new file mode 100644 index 00000000..a12351c6 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/StoreIdsUpdateModel202110Request.md @@ -0,0 +1,13 @@ +# StoreIdsUpdateModel202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfStoreIdsUpdateModel202110**](ValueTypeResourceOfStoreIdsUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/StoreTarget202110Request.md b/sdks/retailmedia_2023-07/docs/StoreTarget202110Request.md new file mode 100644 index 00000000..62f9e41a --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/StoreTarget202110Request.md @@ -0,0 +1,13 @@ +# StoreTarget202110Request + +Data model for a value type input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfStoreTarget202110**](ValueTypeResourceOfStoreTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/StoreTarget202110Response.md b/sdks/retailmedia_2023-07/docs/StoreTarget202110Response.md new file mode 100644 index 00000000..f509113e --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/StoreTarget202110Response.md @@ -0,0 +1,15 @@ +# StoreTarget202110Response + +Data model for a value type resource outcome + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ValueTypeResourceOfStoreTarget202110**](ValueTypeResourceOfStoreTarget202110.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/Template.md b/sdks/retailmedia_2023-07/docs/Template.md new file mode 100644 index 00000000..5fdc579f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/Template.md @@ -0,0 +1,24 @@ +# Template + +A template for creating creatives. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creative_format** | **str** | The kind of creative this template can be used to build. | +**name** | **str** | The name of the template | +**sku_collection_min** | **int** | TODO: what is it ? | +**sku_per_collection_min** | **int** | TODO: what is it ? | +**all_collections_mandatory** | **bool** | TODO: what is it ? | +**created_at** | **datetime** | The time at which the template was created | +**updated_at** | **datetime** | The time at which the template was updated | +**sections** | [**[Section]**](Section.md) | The sections holding various template variables | +**retailer_id** | **int** | The retailer associated to the template | [optional] +**sku_collection_max** | **int, none_type** | TODO: what is it ? | [optional] +**sku_per_collection_max** | **int, none_type** | TODO: what is it ? | [optional] +**displayable_skus_max** | **int, none_type** | TODO: what is it ? | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/TemplateListResponse.md b/sdks/retailmedia_2023-07/docs/TemplateListResponse.md new file mode 100644 index 00000000..9276b044 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/TemplateListResponse.md @@ -0,0 +1,15 @@ +# TemplateListResponse + +Data model for a list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[ResourceOfTemplate]**](ResourceOfTemplate.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/TemplateResponse.md b/sdks/retailmedia_2023-07/docs/TemplateResponse.md new file mode 100644 index 00000000..6d48cf2f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/TemplateResponse.md @@ -0,0 +1,15 @@ +# TemplateResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfTemplate**](ResourceOfTemplate.md) | | [optional] +**warnings** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**errors** | [**[ProblemDetails]**](ProblemDetails.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/TemplateVariable.md b/sdks/retailmedia_2023-07/docs/TemplateVariable.md new file mode 100644 index 00000000..2bab7da3 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/TemplateVariable.md @@ -0,0 +1,18 @@ +# TemplateVariable + +A variable in a creative template + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The id of the variable | +**required** | **bool** | Whether the variable is required | +**type** | **str** | The type of the variable | +**choice_variable_specification** | [**ChoiceVariableSpecification**](ChoiceVariableSpecification.md) | | [optional] +**text_variable_specification** | [**TextVariableSpecification**](TextVariableSpecification.md) | | [optional] +**files_variables_specification** | [**FilesVariablesSpecification**](FilesVariablesSpecification.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/TemplateVariableValue.md b/sdks/retailmedia_2023-07/docs/TemplateVariableValue.md new file mode 100644 index 00000000..117bd4dc --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/TemplateVariableValue.md @@ -0,0 +1,18 @@ +# TemplateVariableValue + +A value for a variable in a creative template. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The id of the template variable the value is applied to | +**text_variable_value** | [**TextVariableValue**](TextVariableValue.md) | | [optional] +**choice_variable_value** | [**ChoiceVariableValue**](ChoiceVariableValue.md) | | [optional] +**color_variable_value** | [**ColorVariableValue**](ColorVariableValue.md) | | [optional] +**files_variable_value** | [**FilesVariableValue**](FilesVariableValue.md) | | [optional] +**hyperlink_variable_value** | [**HyperlinkVariableValue**](HyperlinkVariableValue.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/TextVariableSpecification.md b/sdks/retailmedia_2023-07/docs/TextVariableSpecification.md new file mode 100644 index 00000000..94193172 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/TextVariableSpecification.md @@ -0,0 +1,13 @@ +# TextVariableSpecification + +Specification of a text variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_chars** | **int, none_type** | The maximum amount of characters accepted for the text | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/TextVariableValue.md b/sdks/retailmedia_2023-07/docs/TextVariableValue.md new file mode 100644 index 00000000..76d1425b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/TextVariableValue.md @@ -0,0 +1,13 @@ +# TextVariableValue + +A value of a template text variable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | The displayed text | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/UserBehaviorDetails.md b/sdks/retailmedia_2023-07/docs/UserBehaviorDetails.md new file mode 100644 index 00000000..e6412112 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/UserBehaviorDetails.md @@ -0,0 +1,16 @@ +# UserBehaviorDetails + +Details about a user behavior retail media audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**target_type** | **str** | Type of target | +**target_ids** | **[str]** | ist of ids for the target type | +**lookback_window** | **str** | Length of lookback window | +**user_type** | **str** | Type of the user | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/UserBehaviorDetailsV2.md b/sdks/retailmedia_2023-07/docs/UserBehaviorDetailsV2.md new file mode 100644 index 00000000..64d9048f --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/UserBehaviorDetailsV2.md @@ -0,0 +1,14 @@ +# UserBehaviorDetailsV2 + +Details about a user behavior retail media audience + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inclusive_segment** | [**CreateUserBehaviorSegmentV2**](CreateUserBehaviorSegmentV2.md) | | +**exclusive_segment** | [**CreateUserBehaviorSegmentV2**](CreateUserBehaviorSegmentV2.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md new file mode 100644 index 00000000..ddaaca23 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketIdsUpdateModel202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfAddToBasketIdsUpdateModel202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalAddToBasketIdsUpdateModel202110**](ExternalAddToBasketIdsUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md new file mode 100644 index 00000000..02483da2 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAddToBasketTarget202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfAddToBasketTarget202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalAddToBasketTarget202110**](ExternalAddToBasketTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md new file mode 100644 index 00000000..6e93983d --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceIdsUpdateModel202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfAudienceIdsUpdateModel202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalAudienceIdsUpdateModel202110**](ExternalAudienceIdsUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceTarget202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceTarget202110.md new file mode 100644 index 00000000..a1319c44 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfAudienceTarget202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfAudienceTarget202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalAudienceTarget202110**](ExternalAudienceTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfKeywordTarget202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfKeywordTarget202110.md new file mode 100644 index 00000000..c80903ca --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfKeywordTarget202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfKeywordTarget202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalKeywordTarget202110**](ExternalKeywordTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md new file mode 100644 index 00000000..efc4891b --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreIdsUpdateModel202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfStoreIdsUpdateModel202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalStoreIdsUpdateModel202110**](ExternalStoreIdsUpdateModel202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreTarget202110.md b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreTarget202110.md new file mode 100644 index 00000000..2c2be8b4 --- /dev/null +++ b/sdks/retailmedia_2023-07/docs/ValueTypeResourceOfStoreTarget202110.md @@ -0,0 +1,14 @@ +# ValueTypeResourceOfStoreTarget202110 + +Data model for a value type resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**ExternalStoreTarget202110**](ExternalStoreTarget202110.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_2023-07/requirements.txt b/sdks/retailmedia_2023-07/requirements.txt new file mode 100644 index 00000000..96947f60 --- /dev/null +++ b/sdks/retailmedia_2023-07/requirements.txt @@ -0,0 +1,3 @@ +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.25.3 diff --git a/sdks/retailmedia_2023-07/setup.cfg b/sdks/retailmedia_2023-07/setup.cfg new file mode 100644 index 00000000..11433ee8 --- /dev/null +++ b/sdks/retailmedia_2023-07/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length=99 diff --git a/sdks/retailmedia_2023-07/setup.py b/sdks/retailmedia_2023-07/setup.py new file mode 100644 index 00000000..ce28a2b4 --- /dev/null +++ b/sdks/retailmedia_2023-07/setup.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "criteo-api-retailmedia-sdk" +VERSION = "2023.07.0.230726" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.25.3", "python-dateutil"] + +AUTHOR='Criteo' +README_CONTENT_TYPE='text/markdown' +PACKAGE_LONG_DESCRIPTION = """# Criteo API SDK for Python + +IMPORTANT: This Python package links to Criteo production environment. Any test applied here will thus impact real data. + +## Installation & Usage +### pip install + + +```sh +pip install criteo-api-retailmedia-sdk==2023.07.0.230726 +``` +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.230726`) + +Then import the package: +```python +import criteo_api_retailmedia_v2023_07 +``` + +Full documentation on [Github](https://github.com/criteo/criteo-api-python-sdk). + +## Disclaimer + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +""" + +setup( + name=NAME, + version=VERSION, + description="Criteo API SDK", + author_email="", + author=AUTHOR, + url="https://github.com/criteo/criteo-api-python-sdk", + keywords=[AUTHOR, "OpenAPI-Generator", "Criteo API SDK"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description_content_type=README_CONTENT_TYPE, + long_description=PACKAGE_LONG_DESCRIPTION, + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries", + ], + python_requires=">=3.6", +) diff --git a/sdks/retailmedia_2023-07/test-requirements.txt b/sdks/retailmedia_2023-07/test-requirements.txt new file mode 100644 index 00000000..bb4f22bb --- /dev/null +++ b/sdks/retailmedia_2023-07/test-requirements.txt @@ -0,0 +1 @@ +pytest-cov>=2.8.1 diff --git a/sdks/retailmedia_2023-07/test/example_application_with_auth_code.py b/sdks/retailmedia_2023-07/test/example_application_with_auth_code.py new file mode 100644 index 00000000..49ff3316 --- /dev/null +++ b/sdks/retailmedia_2023-07/test/example_application_with_auth_code.py @@ -0,0 +1,27 @@ +from criteo_api_retailmedia_v2023_07.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_07 import ApiClientBuilder + +class ExampleApplication: + + def call_then_application_endpoint(self, clientId, clientSecret, authorization_code, redirect_uri): + # Create a client using your choosen OAuth flow, Authorization Code in this case. The client will handle the token generation/renewal for you + client = ApiClientBuilder.WithAuthorizationCode(clientId, clientSecret, authorization_code, redirect_uri) + + # The Gateway API regroups common technical endpoints that exists for all versions + # You can find the other endpoints in the other *Api + # You can reuse the same client with several Apis, but be careful, as they will then use the same token and credentials + api = GatewayApi(client) + + # Perform the call to the application introspection endpoint + response = api.get_current_application() + + # Most of Criteo's API response follow the same structure: + # The response consists of a Data, Errors and Warnings fields + # The Data fields contains an Id (if applicable), a Type, and an Attributes field that contains the business object + myApplication = response.data.attributes + print(f'Hello, I\'m using Criteo API and I\'m connected as {myApplication.name}') + + # You will need to save the refresh_token to use it in the refresh_token flow + # You can fetch the refresh token like this: + refreshToken = client.get_refresh_token() + print('The refresh token to be saved is ', refreshToken) \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/test/example_application_with_client_credentials.py b/sdks/retailmedia_2023-07/test/example_application_with_client_credentials.py new file mode 100644 index 00000000..75bd0fcf --- /dev/null +++ b/sdks/retailmedia_2023-07/test/example_application_with_client_credentials.py @@ -0,0 +1,22 @@ +from criteo_api_retailmedia_v2023_07.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_07 import ApiClientBuilder + +class ExampleApplication: + + def call_then_application_endpoint(self, clientId, clientSecret): + # Create a client using your choosen OAuth flow, Client Credentials in this case. The client will handle the token generation/renewal for you + client = ApiClientBuilder.WithClientCredentials(clientId=clientId, clientSecret=clientSecret) + + # The Gateway API regroups common technical endpoints that exists for all versions + # You can find the other endpoints in the other *Api + # You can reuse the same client with several Apis, but be careful, as they will then use the same token and credentials + api = GatewayApi(client) + + # Perform the call to the application introspection endpoint + response = api.get_current_application() + + # Most of Criteo's API response follow the same structure: + # The response consists of a Data, Errors and Warnings fields + # The Data fields contains an Id (if applicable), a Type, and an Attributes field that contains the business object + myApplication = response.data.attributes + print(f'Hello, I\'m using Criteo API and I\'m connected as {myApplication.name}') \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/test/example_application_with_refresh_token.py b/sdks/retailmedia_2023-07/test/example_application_with_refresh_token.py new file mode 100644 index 00000000..bc8f4357 --- /dev/null +++ b/sdks/retailmedia_2023-07/test/example_application_with_refresh_token.py @@ -0,0 +1,27 @@ +from criteo_api_retailmedia_v2023_07.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_07 import ApiClientBuilder + +class ExampleApplication: + + def call_then_application_endpoint(self, clientId, clientSecret, refresh_token): + # Create a client using your choosen OAuth flow, Refresh Token in this case. The client will handle the token generation/renewal for you + client = ApiClientBuilder.WithRefreshToken(clientId, clientSecret, refresh_token) + + # The Gateway API regroups common technical endpoints that exists for all versions + # You can find the other endpoints in the other *Api + # You can reuse the same client with several Apis, but be careful, as they will then use the same token and credentials + api = GatewayApi(client) + + # Perform the call to the application introspection endpoint + response = api.get_current_application() + + # Most of Criteo's API response follow the same structure: + # The response consists of a Data, Errors and Warnings fields + # The Data fields contains an Id (if applicable), a Type, and an Attributes field that contains the business object + myApplication = response.data.attributes + print(f'Hello, I\'m using Criteo API and I\'m connected as {myApplication.name}') + + # You will need to save the new refresh_token to use it again in the future + # You can fetch the refresh token like this: + refreshToken = client.get_refresh_token() + print('The refresh token to be saved is ', refreshToken) \ No newline at end of file diff --git a/sdks/retailmedia_2023-07/test/test_gateway_api.py b/sdks/retailmedia_2023-07/test/test_gateway_api.py new file mode 100644 index 00000000..2b6926c1 --- /dev/null +++ b/sdks/retailmedia_2023-07/test/test_gateway_api.py @@ -0,0 +1,62 @@ +import pytest +import os + +from criteo_api_retailmedia_v2023_07.api.gateway_api import GatewayApi +from criteo_api_retailmedia_v2023_07.api_client_builder import ApiClientBuilder +from criteo_api_retailmedia_v2023_07.rest import ApiException +from example_application_with_client_credentials import ExampleApplication + +class TestGatewayApi: + @pytest.fixture(autouse=True) + def before_each(self): + self.client_id = os.environ.get("TEST_CLIENT_ID") + self.client_secret = os.environ.get("TEST_CLIENT_SECRET") + self.application_id = int(os.environ.get("TEST_APPLICATION_ID")) + + self.client = ApiClientBuilder.WithClientCredentials(clientId=self.client_id, clientSecret=self.client_secret) + + def test_environment_variables(self): + assert len(self.client_id) > 0, "Environment variable \"TEST_CLIENT_ID\" not found." + assert len(self.client_secret) > 0, "Environment variable \"TEST_CLIENT_SECRET\" not found." + assert self.application_id > 0, "Environment variable \"TEST_APPLICATION_ID\" not found." + + def test_example_works(self): + # Arrange + exampleApplication = ExampleApplication() + exampleApplication.call_then_application_endpoint(self.client_id, self.client_secret) + + def test_get_current_application_should_succeed_with_valid_token(self): + # Arrange + api = GatewayApi(self.client) + + # Act + http_response = api.get_current_application() + + # Assert + assert self.application_id == http_response.data.attributes.application_id + + + def test_get_current_application_should_succeed_with_renewed_invalid_token(self): + # Arrange + invalid_token = "invalid.access.token" + self.client.configuration.access_token = invalid_token + api = GatewayApi(self.client) + + # Act + http_response = api.get_current_application() + + # Assert + assert self.application_id == http_response.data.attributes.application_id + + + def test_get_current_application_should_fail_without_token(self): + # Arrange + api = GatewayApi(ApiClientBuilder.WithNoAuthorization()) + + # Act + try: + api.get_current_application() + + # Assert + except ApiException as exception: + assert exception.status == 401 diff --git a/sdks/retailmedia_2023-07/tox.ini b/sdks/retailmedia_2023-07/tox.ini new file mode 100644 index 00000000..398b3f72 --- /dev/null +++ b/sdks/retailmedia_2023-07/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + pytest --cov=criteo_api_retailmedia_v2023_07 diff --git a/sdks/retailmedia_preview/.openapi-generator/FILES b/sdks/retailmedia_preview/.openapi-generator/FILES index ba626ee1..02f2b80d 100644 --- a/sdks/retailmedia_preview/.openapi-generator/FILES +++ b/sdks/retailmedia_preview/.openapi-generator/FILES @@ -19,16 +19,34 @@ criteo_api_retailmedia_preview/criteo_rest.py criteo_api_retailmedia_preview/exceptions.py criteo_api_retailmedia_preview/flow_constants.py criteo_api_retailmedia_preview/model/__init__.py +criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py criteo_api_retailmedia_preview/model/application_summary_model.py criteo_api_retailmedia_preview/model/application_summary_model_resource.py criteo_api_retailmedia_preview/model/application_summary_model_response.py -criteo_api_retailmedia_preview/model/bad_request.py +criteo_api_retailmedia_preview/model/async_campaign_report.py +criteo_api_retailmedia_preview/model/async_campaign_report_request.py +criteo_api_retailmedia_preview/model/async_campaign_report_resource.py +criteo_api_retailmedia_preview/model/async_line_item_report.py +criteo_api_retailmedia_preview/model/async_line_item_report_request.py +criteo_api_retailmedia_preview/model/async_line_item_report_resource.py +criteo_api_retailmedia_preview/model/async_report_response.py +criteo_api_retailmedia_preview/model/async_revenue_report.py +criteo_api_retailmedia_preview/model/async_revenue_report_request.py +criteo_api_retailmedia_preview/model/async_revenue_report_resource.py +criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py +criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py +criteo_api_retailmedia_preview/model/attributed_transactions_report.py +criteo_api_retailmedia_preview/model/balance_response.py +criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py +criteo_api_retailmedia_preview/model/brand.py criteo_api_retailmedia_preview/model/brand_preview.py criteo_api_retailmedia_preview/model/brand_preview_list_response.py criteo_api_retailmedia_preview/model/campaign_report.py criteo_api_retailmedia_preview/model/campaign_report_request.py criteo_api_retailmedia_preview/model/campaign_report_resource.py +criteo_api_retailmedia_preview/model/category.py criteo_api_retailmedia_preview/model/category202204.py +criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py criteo_api_retailmedia_preview/model/choice_option.py criteo_api_retailmedia_preview/model/choice_variable_specification.py criteo_api_retailmedia_preview/model/choice_variable_value.py @@ -39,6 +57,7 @@ criteo_api_retailmedia_preview/model/common_status_code_response.py criteo_api_retailmedia_preview/model/common_warning.py criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py +criteo_api_retailmedia_preview/model/create_balance_request.py criteo_api_retailmedia_preview/model/create_retail_media_audience.py criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py @@ -55,22 +74,23 @@ criteo_api_retailmedia_preview/model/creative202210_response.py criteo_api_retailmedia_preview/model/creative_create_model202207.py criteo_api_retailmedia_preview/model/creative_update_model202207.py criteo_api_retailmedia_preview/model/customer_list_details.py -criteo_api_retailmedia_preview/model/envelope_report_request.py -criteo_api_retailmedia_preview/model/envelope_report_status.py -criteo_api_retailmedia_preview/model/error.py criteo_api_retailmedia_preview/model/export_report_column.py criteo_api_retailmedia_preview/model/export_report_meta_data.py criteo_api_retailmedia_preview/model/external_account.py +criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py +criteo_api_retailmedia_preview/model/external_balance_response.py criteo_api_retailmedia_preview/model/external_brand.py criteo_api_retailmedia_preview/model/external_catalog_request_preview.py criteo_api_retailmedia_preview/model/external_catalog_status.py +criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py +criteo_api_retailmedia_preview/model/external_create_balance.py criteo_api_retailmedia_preview/model/external_product_button_request.py criteo_api_retailmedia_preview/model/external_product_button_response.py criteo_api_retailmedia_preview/model/external_retailer.py +criteo_api_retailmedia_preview/model/external_update_balance_model.py criteo_api_retailmedia_preview/model/files_variable_value.py criteo_api_retailmedia_preview/model/files_variables_specification.py criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py -criteo_api_retailmedia_preview/model/global_brand.py criteo_api_retailmedia_preview/model/hyperlink_variable_value.py criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -90,7 +110,6 @@ criteo_api_retailmedia_preview/model/line_item_bid_multipliers_response.py criteo_api_retailmedia_preview/model/line_item_report.py criteo_api_retailmedia_preview/model/line_item_report_request.py criteo_api_retailmedia_preview/model/line_item_report_resource.py -criteo_api_retailmedia_preview/model/map_string.py criteo_api_retailmedia_preview/model/page_metadata.py criteo_api_retailmedia_preview/model/page_type_environment.py criteo_api_retailmedia_preview/model/placement_preview.py @@ -102,13 +121,13 @@ criteo_api_retailmedia_preview/model/product_button_request.py criteo_api_retailmedia_preview/model/product_button_response.py criteo_api_retailmedia_preview/model/report_data_response_resource.py criteo_api_retailmedia_preview/model/report_outcome.py -criteo_api_retailmedia_preview/model/report_request.py -criteo_api_retailmedia_preview/model/report_request_attributes.py criteo_api_retailmedia_preview/model/report_response.py -criteo_api_retailmedia_preview/model/report_status.py -criteo_api_retailmedia_preview/model/report_status_attributes.py +criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py +criteo_api_retailmedia_preview/model/resource_of_balance_response.py criteo_api_retailmedia_preview/model/resource_of_brand_preview.py +criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py +criteo_api_retailmedia_preview/model/resource_of_create_balance.py criteo_api_retailmedia_preview/model/resource_of_creative202210.py criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers.py criteo_api_retailmedia_preview/model/resource_of_placement_preview.py @@ -122,6 +141,7 @@ criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_prev criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py criteo_api_retailmedia_preview/model/resource_of_template.py +criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py criteo_api_retailmedia_preview/model/retail_media_audience.py criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py criteo_api_retailmedia_preview/model/retail_media_audience_v2.py @@ -146,8 +166,6 @@ criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bid_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model.py criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_request.py criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_resource.py -criteo_api_retailmedia_preview/model/retailer_brand.py -criteo_api_retailmedia_preview/model/retailer_category.py criteo_api_retailmedia_preview/model/section.py criteo_api_retailmedia_preview/model/seller_preview.py criteo_api_retailmedia_preview/model/seller_preview_response.py @@ -163,6 +181,8 @@ criteo_api_retailmedia_preview/model/sku_slim_data_preview.py criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py criteo_api_retailmedia_preview/model/sku_slim_data_v2.py criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py +criteo_api_retailmedia_preview/model/status_response.py +criteo_api_retailmedia_preview/model/status_response_resource.py criteo_api_retailmedia_preview/model/template.py criteo_api_retailmedia_preview/model/template_list_response.py criteo_api_retailmedia_preview/model/template_response.py @@ -170,24 +190,43 @@ criteo_api_retailmedia_preview/model/template_variable.py criteo_api_retailmedia_preview/model/template_variable_value.py criteo_api_retailmedia_preview/model/text_variable_specification.py criteo_api_retailmedia_preview/model/text_variable_value.py +criteo_api_retailmedia_preview/model/update_balance_model_request.py criteo_api_retailmedia_preview/model/user_behavior_details.py criteo_api_retailmedia_preview/model/user_behavior_details_v2.py criteo_api_retailmedia_preview/model_utils.py criteo_api_retailmedia_preview/models/__init__.py criteo_api_retailmedia_preview/rest.py +docs/AddFundsToBalanceRequest.md docs/AnalyticsApi.md docs/ApplicationSummaryModel.md docs/ApplicationSummaryModelResource.md docs/ApplicationSummaryModelResponse.md +docs/AsyncCampaignReport.md +docs/AsyncCampaignReportRequest.md +docs/AsyncCampaignReportResource.md +docs/AsyncLineItemReport.md +docs/AsyncLineItemReportRequest.md +docs/AsyncLineItemReportResource.md +docs/AsyncReportResponse.md +docs/AsyncRevenueReport.md +docs/AsyncRevenueReportRequest.md +docs/AsyncRevenueReportResource.md +docs/AttributedTransactionReportRequest.md +docs/AttributedTransactionReportResource.md +docs/AttributedTransactionsReport.md docs/AudienceApi.md -docs/BadRequest.md +docs/BalanceResponse.md +docs/BalanceResponsePagedListResponse.md +docs/Brand.md docs/BrandPreview.md docs/BrandPreviewListResponse.md docs/CampaignApi.md docs/CampaignReport.md docs/CampaignReportRequest.md docs/CampaignReportResource.md +docs/Category.md docs/Category202204.md +docs/ChangeDatesOfBalanceRequest.md docs/ChoiceOption.md docs/ChoiceVariableSpecification.md docs/ChoiceVariableValue.md @@ -198,6 +237,7 @@ docs/CommonStatusCodeResponse.md docs/CommonWarning.md docs/CpcRateCardPreview.md docs/CpcRateCardPreviewResponse.md +docs/CreateBalanceRequest.md docs/CreateRetailMediaAudience.md docs/CreateRetailMediaAudienceAttributes.md docs/CreateRetailMediaAudienceBody.md @@ -214,23 +254,24 @@ docs/Creative202210Response.md docs/CreativeCreateModel202207.md docs/CreativeUpdateModel202207.md docs/CustomerListDetails.md -docs/EnvelopeReportRequest.md -docs/EnvelopeReportStatus.md -docs/Error.md docs/ExportReportColumn.md docs/ExportReportMetaData.md docs/ExternalAccount.md +docs/ExternalAddFundsToBalance.md +docs/ExternalBalanceResponse.md docs/ExternalBrand.md docs/ExternalCatalogRequestPreview.md docs/ExternalCatalogStatus.md +docs/ExternalChangeDatesOfBalance.md +docs/ExternalCreateBalance.md docs/ExternalProductButtonRequest.md docs/ExternalProductButtonResponse.md docs/ExternalRetailer.md +docs/ExternalUpdateBalanceModel.md docs/FilesVariableValue.md docs/FilesVariablesSpecification.md docs/GatewayApi.md docs/GetPageOfAudiencesByAccountIdResponse.md -docs/GlobalBrand.md docs/HyperlinkVariableValue.md docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md @@ -250,7 +291,6 @@ docs/LineItemBidMultipliersResponse.md docs/LineItemReport.md docs/LineItemReportRequest.md docs/LineItemReportResource.md -docs/MapString.md docs/PageMetadata.md docs/PageTypeEnvironment.md docs/PlacementPreview.md @@ -262,13 +302,13 @@ docs/ProductButtonRequest.md docs/ProductButtonResponse.md docs/ReportDataResponseResource.md docs/ReportOutcome.md -docs/ReportRequest.md -docs/ReportRequestAttributes.md docs/ReportResponse.md -docs/ReportStatus.md -docs/ReportStatusAttributes.md +docs/ResourceOfAddFundsToBalance.md +docs/ResourceOfBalanceResponse.md docs/ResourceOfBrandPreview.md +docs/ResourceOfChangeDatesOfBalance.md docs/ResourceOfCpcRateCardPreview.md +docs/ResourceOfCreateBalance.md docs/ResourceOfCreative202210.md docs/ResourceOfLineItemBidMultipliers.md docs/ResourceOfPlacementPreview.md @@ -282,6 +322,7 @@ docs/ResourceOfSkuSearchRequestSlimV2Preview.md docs/ResourceOfSkuSlimDataPreview.md docs/ResourceOfSkuSlimDataV2.md docs/ResourceOfTemplate.md +docs/ResourceOfUpdateBalanceModel.md docs/RetailMediaAudience.md docs/RetailMediaAudienceAttributes.md docs/RetailMediaAudienceV2.md @@ -306,8 +347,6 @@ docs/RetailMediaExternalv1SetBidModel.md docs/RetailMediaExternalv1SetBidsModel.md docs/RetailMediaExternalv1SetBidsModelRequest.md docs/RetailMediaExternalv1SetBidsModelResource.md -docs/RetailerBrand.md -docs/RetailerCategory.md docs/Section.md docs/SellerPreview.md docs/SellerPreviewResponse.md @@ -323,6 +362,8 @@ docs/SkuSlimDataPreview.md docs/SkuSlimDataPreviewListResponse.md docs/SkuSlimDataV2.md docs/SkuSlimDataV2ListResponse.md +docs/StatusResponse.md +docs/StatusResponseResource.md docs/Template.md docs/TemplateListResponse.md docs/TemplateResponse.md @@ -330,6 +371,7 @@ docs/TemplateVariable.md docs/TemplateVariableValue.md docs/TextVariableSpecification.md docs/TextVariableValue.md +docs/UpdateBalanceModelRequest.md docs/UserBehaviorDetails.md docs/UserBehaviorDetailsV2.md git_push.sh diff --git a/sdks/retailmedia_preview/README.md b/sdks/retailmedia_preview/README.md index 92382423..8f3cdb95 100644 --- a/sdks/retailmedia_preview/README.md +++ b/sdks/retailmedia_preview/README.md @@ -8,7 +8,7 @@ More information: [https://developers.criteo.com/](https://developers.criteo.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- Package version: 0.0.230601 +- Package version: 0.0.230726 ## Requirements @@ -18,9 +18,9 @@ Python 2.7 and 3.5+ ### pip install ```sh -pip install criteo-api-retailmedia-sdk==0.0.230601 +pip install criteo-api-retailmedia-sdk==0.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.230726`) Then import the package: ```python @@ -60,16 +60,34 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AddFundsToBalanceRequest](docs/AddFundsToBalanceRequest.md) - [ApplicationSummaryModel](docs/ApplicationSummaryModel.md) - [ApplicationSummaryModelResource](docs/ApplicationSummaryModelResource.md) - [ApplicationSummaryModelResponse](docs/ApplicationSummaryModelResponse.md) - - [BadRequest](docs/BadRequest.md) + - [AsyncCampaignReport](docs/AsyncCampaignReport.md) + - [AsyncCampaignReportRequest](docs/AsyncCampaignReportRequest.md) + - [AsyncCampaignReportResource](docs/AsyncCampaignReportResource.md) + - [AsyncLineItemReport](docs/AsyncLineItemReport.md) + - [AsyncLineItemReportRequest](docs/AsyncLineItemReportRequest.md) + - [AsyncLineItemReportResource](docs/AsyncLineItemReportResource.md) + - [AsyncReportResponse](docs/AsyncReportResponse.md) + - [AsyncRevenueReport](docs/AsyncRevenueReport.md) + - [AsyncRevenueReportRequest](docs/AsyncRevenueReportRequest.md) + - [AsyncRevenueReportResource](docs/AsyncRevenueReportResource.md) + - [AttributedTransactionReportRequest](docs/AttributedTransactionReportRequest.md) + - [AttributedTransactionReportResource](docs/AttributedTransactionReportResource.md) + - [AttributedTransactionsReport](docs/AttributedTransactionsReport.md) + - [BalanceResponse](docs/BalanceResponse.md) + - [BalanceResponsePagedListResponse](docs/BalanceResponsePagedListResponse.md) + - [Brand](docs/Brand.md) - [BrandPreview](docs/BrandPreview.md) - [BrandPreviewListResponse](docs/BrandPreviewListResponse.md) - [CampaignReport](docs/CampaignReport.md) - [CampaignReportRequest](docs/CampaignReportRequest.md) - [CampaignReportResource](docs/CampaignReportResource.md) + - [Category](docs/Category.md) - [Category202204](docs/Category202204.md) + - [ChangeDatesOfBalanceRequest](docs/ChangeDatesOfBalanceRequest.md) - [ChoiceOption](docs/ChoiceOption.md) - [ChoiceVariableSpecification](docs/ChoiceVariableSpecification.md) - [ChoiceVariableValue](docs/ChoiceVariableValue.md) @@ -80,6 +98,7 @@ Class | Method | HTTP request | Description - [CommonWarning](docs/CommonWarning.md) - [CpcRateCardPreview](docs/CpcRateCardPreview.md) - [CpcRateCardPreviewResponse](docs/CpcRateCardPreviewResponse.md) + - [CreateBalanceRequest](docs/CreateBalanceRequest.md) - [CreateRetailMediaAudience](docs/CreateRetailMediaAudience.md) - [CreateRetailMediaAudienceAttributes](docs/CreateRetailMediaAudienceAttributes.md) - [CreateRetailMediaAudienceBody](docs/CreateRetailMediaAudienceBody.md) @@ -96,22 +115,23 @@ Class | Method | HTTP request | Description - [CreativeCreateModel202207](docs/CreativeCreateModel202207.md) - [CreativeUpdateModel202207](docs/CreativeUpdateModel202207.md) - [CustomerListDetails](docs/CustomerListDetails.md) - - [EnvelopeReportRequest](docs/EnvelopeReportRequest.md) - - [EnvelopeReportStatus](docs/EnvelopeReportStatus.md) - - [Error](docs/Error.md) - [ExportReportColumn](docs/ExportReportColumn.md) - [ExportReportMetaData](docs/ExportReportMetaData.md) - [ExternalAccount](docs/ExternalAccount.md) + - [ExternalAddFundsToBalance](docs/ExternalAddFundsToBalance.md) + - [ExternalBalanceResponse](docs/ExternalBalanceResponse.md) - [ExternalBrand](docs/ExternalBrand.md) - [ExternalCatalogRequestPreview](docs/ExternalCatalogRequestPreview.md) - [ExternalCatalogStatus](docs/ExternalCatalogStatus.md) + - [ExternalChangeDatesOfBalance](docs/ExternalChangeDatesOfBalance.md) + - [ExternalCreateBalance](docs/ExternalCreateBalance.md) - [ExternalProductButtonRequest](docs/ExternalProductButtonRequest.md) - [ExternalProductButtonResponse](docs/ExternalProductButtonResponse.md) - [ExternalRetailer](docs/ExternalRetailer.md) + - [ExternalUpdateBalanceModel](docs/ExternalUpdateBalanceModel.md) - [FilesVariableValue](docs/FilesVariableValue.md) - [FilesVariablesSpecification](docs/FilesVariablesSpecification.md) - [GetPageOfAudiencesByAccountIdResponse](docs/GetPageOfAudiencesByAccountIdResponse.md) - - [GlobalBrand](docs/GlobalBrand.md) - [HyperlinkVariableValue](docs/HyperlinkVariableValue.md) - [JsonApiBodyWithIdOfInt64AndAccountAndAccount](docs/JsonApiBodyWithIdOfInt64AndAccountAndAccount.md) - [JsonApiBodyWithIdOfInt64AndBrandAndBrand](docs/JsonApiBodyWithIdOfInt64AndBrandAndBrand.md) @@ -131,7 +151,6 @@ Class | Method | HTTP request | Description - [LineItemReport](docs/LineItemReport.md) - [LineItemReportRequest](docs/LineItemReportRequest.md) - [LineItemReportResource](docs/LineItemReportResource.md) - - [MapString](docs/MapString.md) - [PageMetadata](docs/PageMetadata.md) - [PageTypeEnvironment](docs/PageTypeEnvironment.md) - [PlacementPreview](docs/PlacementPreview.md) @@ -143,13 +162,13 @@ Class | Method | HTTP request | Description - [ProductButtonResponse](docs/ProductButtonResponse.md) - [ReportDataResponseResource](docs/ReportDataResponseResource.md) - [ReportOutcome](docs/ReportOutcome.md) - - [ReportRequest](docs/ReportRequest.md) - - [ReportRequestAttributes](docs/ReportRequestAttributes.md) - [ReportResponse](docs/ReportResponse.md) - - [ReportStatus](docs/ReportStatus.md) - - [ReportStatusAttributes](docs/ReportStatusAttributes.md) + - [ResourceOfAddFundsToBalance](docs/ResourceOfAddFundsToBalance.md) + - [ResourceOfBalanceResponse](docs/ResourceOfBalanceResponse.md) - [ResourceOfBrandPreview](docs/ResourceOfBrandPreview.md) + - [ResourceOfChangeDatesOfBalance](docs/ResourceOfChangeDatesOfBalance.md) - [ResourceOfCpcRateCardPreview](docs/ResourceOfCpcRateCardPreview.md) + - [ResourceOfCreateBalance](docs/ResourceOfCreateBalance.md) - [ResourceOfCreative202210](docs/ResourceOfCreative202210.md) - [ResourceOfLineItemBidMultipliers](docs/ResourceOfLineItemBidMultipliers.md) - [ResourceOfPlacementPreview](docs/ResourceOfPlacementPreview.md) @@ -163,6 +182,7 @@ Class | Method | HTTP request | Description - [ResourceOfSkuSlimDataPreview](docs/ResourceOfSkuSlimDataPreview.md) - [ResourceOfSkuSlimDataV2](docs/ResourceOfSkuSlimDataV2.md) - [ResourceOfTemplate](docs/ResourceOfTemplate.md) + - [ResourceOfUpdateBalanceModel](docs/ResourceOfUpdateBalanceModel.md) - [RetailMediaAudience](docs/RetailMediaAudience.md) - [RetailMediaAudienceAttributes](docs/RetailMediaAudienceAttributes.md) - [RetailMediaAudienceV2](docs/RetailMediaAudienceV2.md) @@ -187,8 +207,6 @@ Class | Method | HTTP request | Description - [RetailMediaExternalv1SetBidsModel](docs/RetailMediaExternalv1SetBidsModel.md) - [RetailMediaExternalv1SetBidsModelRequest](docs/RetailMediaExternalv1SetBidsModelRequest.md) - [RetailMediaExternalv1SetBidsModelResource](docs/RetailMediaExternalv1SetBidsModelResource.md) - - [RetailerBrand](docs/RetailerBrand.md) - - [RetailerCategory](docs/RetailerCategory.md) - [Section](docs/Section.md) - [SellerPreview](docs/SellerPreview.md) - [SellerPreviewResponse](docs/SellerPreviewResponse.md) @@ -204,6 +222,8 @@ Class | Method | HTTP request | Description - [SkuSlimDataPreviewListResponse](docs/SkuSlimDataPreviewListResponse.md) - [SkuSlimDataV2](docs/SkuSlimDataV2.md) - [SkuSlimDataV2ListResponse](docs/SkuSlimDataV2ListResponse.md) + - [StatusResponse](docs/StatusResponse.md) + - [StatusResponseResource](docs/StatusResponseResource.md) - [Template](docs/Template.md) - [TemplateListResponse](docs/TemplateListResponse.md) - [TemplateResponse](docs/TemplateResponse.md) @@ -211,6 +231,7 @@ Class | Method | HTTP request | Description - [TemplateVariableValue](docs/TemplateVariableValue.md) - [TextVariableSpecification](docs/TextVariableSpecification.md) - [TextVariableValue](docs/TextVariableValue.md) + - [UpdateBalanceModelRequest](docs/UpdateBalanceModelRequest.md) - [UserBehaviorDetails](docs/UserBehaviorDetails.md) - [UserBehaviorDetailsV2](docs/UserBehaviorDetailsV2.md) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py index 4e1bd66c..c8719719 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/__init__.py @@ -1,14 +1,14 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech """ -__version__ = "0.0.230601" +__version__ = "0.0.230726" # import ApiClient from criteo_api_retailmedia_preview.api_client import ApiClient diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/analytics_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/analytics_api.py index f845b008..d987245b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/analytics_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/analytics_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -21,10 +21,12 @@ none_type, validate_and_convert_types ) -from criteo_api_retailmedia_preview.model.bad_request import BadRequest +from criteo_api_retailmedia_preview.model.async_campaign_report_request import AsyncCampaignReportRequest +from criteo_api_retailmedia_preview.model.async_line_item_report_request import AsyncLineItemReportRequest +from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_preview.model.async_revenue_report_request import AsyncRevenueReportRequest +from criteo_api_retailmedia_preview.model.attributed_transaction_report_request import AttributedTransactionReportRequest from criteo_api_retailmedia_preview.model.campaign_report_request import CampaignReportRequest -from criteo_api_retailmedia_preview.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_preview.model.envelope_report_status import EnvelopeReportStatus from criteo_api_retailmedia_preview.model.line_item_report_request import LineItemReportRequest from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome from criteo_api_retailmedia_preview.model.report_response import ReportResponse @@ -41,23 +43,25 @@ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client - self.get_campaign_reports_endpoint = _Endpoint( + self.generate_async_campaign_report_endpoint = _Endpoint( settings={ - 'response_type': (ReportResponse,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/reports/sync/campaigns', - 'operation_id': 'get_campaign_reports', + 'endpoint_path': '/preview/retail-media/reports/campaigns', + 'operation_id': 'generate_async_campaign_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'campaign_report_request', + 'async_campaign_report_request', + ], + 'required': [ + 'async_campaign_report_request', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -71,13 +75,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'campaign_report_request': - (CampaignReportRequest,), + 'async_campaign_report_request': + (AsyncCampaignReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'campaign_report_request': 'body', + 'async_campaign_report_request': 'body', }, 'collection_format_map': { } @@ -97,23 +101,25 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_line_items_reports_endpoint = _Endpoint( + self.generate_async_line_items_report_endpoint = _Endpoint( settings={ - 'response_type': (ReportResponse,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/reports/sync/line-items', - 'operation_id': 'get_line_items_reports', + 'endpoint_path': '/preview/retail-media/reports/line-items', + 'operation_id': 'generate_async_line_items_report', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'line_item_report_request', + 'async_line_item_report_request', + ], + 'required': [ + 'async_line_item_report_request', ], - 'required': [], 'nullable': [ ], 'enum': [ @@ -127,13 +133,13 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'line_item_report_request': - (LineItemReportRequest,), + 'async_line_item_report_request': + (AsyncLineItemReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'line_item_report_request': 'body', + 'async_line_item_report_request': 'body', }, 'collection_format_map': { } @@ -153,24 +159,24 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.get_report_output_endpoint = _Endpoint( + self.generate_async_revenue_report_endpoint = _Endpoint( settings={ - 'response_type': (int,), + 'response_type': (AsyncReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/reports/{reportId}/output', - 'operation_id': 'get_report_output', - 'http_method': 'GET', + 'endpoint_path': '/preview/retail-media/reports/revenue', + 'operation_id': 'generate_async_revenue_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'async_revenue_report_request', ], 'required': [ - 'report_id', + 'async_revenue_report_request', ], 'nullable': [ ], @@ -185,44 +191,50 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'async_revenue_report_request': + (AsyncRevenueReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'async_revenue_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/octet-stream' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [], + 'content_type': [ + 'application/json-patch+json', + 'application/json', + 'text/json', + 'application/*+json' + ] }, api_client=api_client ) - self.get_report_status_endpoint = _Endpoint( + self.generate_attributed_transactions_report_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (ReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/reports/{reportId}/status', - 'operation_id': 'get_report_status', - 'http_method': 'GET', + 'endpoint_path': '/preview/retail-media/reports/sync/attributed-transactions', + 'operation_id': 'generate_attributed_transactions_report', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'report_id', + 'attributed_transaction_report_request', ], 'required': [ - 'report_id', + 'attributed_transaction_report_request', ], 'nullable': [ ], @@ -237,44 +249,49 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'report_id': - (str,), + 'attributed_transaction_report_request': + (AttributedTransactionReportRequest,), }, 'attribute_map': { - 'report_id': 'reportId', }, 'location_map': { - 'report_id': 'path', + 'attributed_transaction_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], - 'content_type': [], + 'content_type': [ + 'application/json', + 'text/json', + 'application/*+json' + ] }, api_client=api_client ) - self.request_campaign_report_endpoint = _Endpoint( + self.generate_campaign_reports_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (ReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/reports/campaigns', - 'operation_id': 'request_campaign_report', + 'endpoint_path': '/preview/retail-media/reports/sync/campaigns', + 'operation_id': 'generate_campaign_reports', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'campaign_report_request', ], 'required': [ - 'envelope_report_request', + 'campaign_report_request', ], 'nullable': [ ], @@ -289,45 +306,49 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'campaign_report_request': + (CampaignReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'envelope_report_request': 'body', + 'campaign_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ - 'application/json' + 'application/json', + 'text/json', + 'application/*+json' ] }, api_client=api_client ) - self.request_line_item_report_endpoint = _Endpoint( + self.generate_line_items_reports_endpoint = _Endpoint( settings={ - 'response_type': (EnvelopeReportStatus,), + 'response_type': (ReportResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/reports/line-items', - 'operation_id': 'request_line_item_report', + 'endpoint_path': '/preview/retail-media/reports/sync/line-items', + 'operation_id': 'generate_line_items_reports', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'envelope_report_request', + 'line_item_report_request', ], 'required': [ - 'envelope_report_request', + 'line_item_report_request', ], 'nullable': [ ], @@ -342,44 +363,158 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'envelope_report_request': - (EnvelopeReportRequest,), + 'line_item_report_request': + (LineItemReportRequest,), }, 'attribute_map': { }, 'location_map': { - 'envelope_report_request': 'body', + 'line_item_report_request': 'body', }, 'collection_format_map': { } }, headers_map={ 'accept': [ - 'application/json' + 'text/plain', + 'application/json', + 'text/json' ], 'content_type': [ - 'application/json' + 'application/json', + 'text/json', + 'application/*+json' ] }, api_client=api_client ) + self.get_async_export_output_endpoint = _Endpoint( + settings={ + 'response_type': (str,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/reports/{reportId}/output', + 'operation_id': 'get_async_export_output', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'report_id', + ], + 'required': [ + 'report_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'report_id': + (str,), + }, + 'attribute_map': { + 'report_id': 'reportId', + }, + 'location_map': { + 'report_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.get_async_export_status_endpoint = _Endpoint( + settings={ + 'response_type': (AsyncReportResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/reports/{reportId}/status', + 'operation_id': 'get_async_export_status', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'report_id', + ], + 'required': [ + 'report_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'report_id': + (str,), + }, + 'attribute_map': { + 'report_id': 'reportId', + }, + 'location_map': { + 'report_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'text/plain', + 'application/json', + 'text/json' + ], + 'content_type': [], + }, + api_client=api_client + ) - def get_campaign_reports( + def generate_async_campaign_report( self, + async_campaign_report_request, **kwargs ): - """get_campaign_reports # noqa: E501 + """generate_async_campaign_report # noqa: E501 - Return a Campaign Report # noqa: E501 + Return an async Campaign Report # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_campaign_reports(async_req=True) + >>> thread = api.generate_async_campaign_report(async_campaign_report_request, async_req=True) >>> result = thread.get() + Args: + async_campaign_report_request (AsyncCampaignReportRequest): Keyword Args: - campaign_report_request (CampaignReportRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -412,7 +547,7 @@ def get_campaign_reports( async_req (bool): execute request asynchronously Returns: - ReportResponse + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -441,24 +576,194 @@ def get_campaign_reports( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.get_campaign_reports_endpoint.call_with_http_info(**kwargs) + kwargs['async_campaign_report_request'] = \ + async_campaign_report_request + return self.generate_async_campaign_report_endpoint.call_with_http_info(**kwargs) - def get_line_items_reports( + def generate_async_line_items_report( self, + async_line_item_report_request, **kwargs ): - """get_line_items_reports # noqa: E501 + """generate_async_line_items_report # noqa: E501 - Return a Line Item Report # noqa: E501 + Return an async Line Item Report # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.generate_async_line_items_report(async_line_item_report_request, async_req=True) + >>> result = thread.get() + + Args: + async_line_item_report_request (AsyncLineItemReportRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AsyncReportResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['async_line_item_report_request'] = \ + async_line_item_report_request + return self.generate_async_line_items_report_endpoint.call_with_http_info(**kwargs) + + def generate_async_revenue_report( + self, + async_revenue_report_request, + **kwargs + ): + """generate_async_revenue_report # noqa: E501 + + Return an async Revenue Report # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.generate_async_revenue_report(async_revenue_report_request, async_req=True) + >>> result = thread.get() + + Args: + async_revenue_report_request (AsyncRevenueReportRequest): + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + AsyncReportResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['async_revenue_report_request'] = \ + async_revenue_report_request + return self.generate_async_revenue_report_endpoint.call_with_http_info(**kwargs) + + def generate_attributed_transactions_report( + self, + attributed_transaction_report_request, + **kwargs + ): + """generate_attributed_transactions_report # noqa: E501 + + Return an Attributed Transactions Report # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_line_items_reports(async_req=True) + >>> thread = api.generate_attributed_transactions_report(attributed_transaction_report_request, async_req=True) >>> result = thread.get() + Args: + attributed_transaction_report_request (AttributedTransactionReportRequest): Keyword Args: - line_item_report_request (LineItemReportRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -520,24 +825,26 @@ def get_line_items_reports( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.get_line_items_reports_endpoint.call_with_http_info(**kwargs) + kwargs['attributed_transaction_report_request'] = \ + attributed_transaction_report_request + return self.generate_attributed_transactions_report_endpoint.call_with_http_info(**kwargs) - def get_report_output( + def generate_campaign_reports( self, - report_id, + campaign_report_request, **kwargs ): - """get_report_output # noqa: E501 + """generate_campaign_reports # noqa: E501 - Request the report output # noqa: E501 + Return a Campaign Report # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_report_output(report_id, async_req=True) + >>> thread = api.generate_campaign_reports(campaign_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + campaign_report_request (CampaignReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -572,7 +879,7 @@ def get_report_output( async_req (bool): execute request asynchronously Returns: - int + ReportResponse If the method is called asynchronously, returns the request thread. """ @@ -601,26 +908,26 @@ def get_report_output( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['report_id'] = \ - report_id - return self.get_report_output_endpoint.call_with_http_info(**kwargs) + kwargs['campaign_report_request'] = \ + campaign_report_request + return self.generate_campaign_reports_endpoint.call_with_http_info(**kwargs) - def get_report_status( + def generate_line_items_reports( self, - report_id, + line_item_report_request, **kwargs ): - """get_report_status # noqa: E501 + """generate_line_items_reports # noqa: E501 - Get the status of the report # noqa: E501 + Return a Line Item Report # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_report_status(report_id, async_req=True) + >>> thread = api.generate_line_items_reports(line_item_report_request, async_req=True) >>> result = thread.get() Args: - report_id (str): report id + line_item_report_request (LineItemReportRequest): Keyword Args: _return_http_data_only (bool): response data without head status @@ -655,7 +962,7 @@ def get_report_status( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + ReportResponse If the method is called asynchronously, returns the request thread. """ @@ -684,26 +991,26 @@ def get_report_status( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['report_id'] = \ - report_id - return self.get_report_status_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_report_request'] = \ + line_item_report_request + return self.generate_line_items_reports_endpoint.call_with_http_info(**kwargs) - def request_campaign_report( + def get_async_export_output( self, - envelope_report_request, + report_id, **kwargs ): - """request_campaign_report # noqa: E501 + """get_async_export_output # noqa: E501 - Request a campaign report # noqa: E501 + Return the output of an async report # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.request_campaign_report(envelope_report_request, async_req=True) + >>> thread = api.get_async_export_output(report_id, async_req=True) >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -738,7 +1045,7 @@ def request_campaign_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + str If the method is called asynchronously, returns the request thread. """ @@ -767,26 +1074,26 @@ def request_campaign_report( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['envelope_report_request'] = \ - envelope_report_request - return self.request_campaign_report_endpoint.call_with_http_info(**kwargs) + kwargs['report_id'] = \ + report_id + return self.get_async_export_output_endpoint.call_with_http_info(**kwargs) - def request_line_item_report( + def get_async_export_status( self, - envelope_report_request, + report_id, **kwargs ): - """request_line_item_report # noqa: E501 + """get_async_export_status # noqa: E501 - Request a line item report # noqa: E501 + Return the status of an async report # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.request_line_item_report(envelope_report_request, async_req=True) + >>> thread = api.get_async_export_status(report_id, async_req=True) >>> result = thread.get() Args: - envelope_report_request (EnvelopeReportRequest): // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + report_id (str): The ID of the report to retrieve Keyword Args: _return_http_data_only (bool): response data without head status @@ -821,7 +1128,7 @@ def request_line_item_report( async_req (bool): execute request asynchronously Returns: - EnvelopeReportStatus + AsyncReportResponse If the method is called asynchronously, returns the request thread. """ @@ -850,7 +1157,7 @@ def request_line_item_report( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['envelope_report_request'] = \ - envelope_report_request - return self.request_line_item_report_endpoint.call_with_http_info(**kwargs) + kwargs['report_id'] = \ + report_id + return self.get_async_export_status_endpoint.call_with_http_info(**kwargs) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py index e90bf85a..26433114 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/audience_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_request': (CreateRetailMediaAudienceRequest,), }, @@ -135,7 +135,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'create_retail_media_audience_v2_request': (CreateRetailMediaAudienceV2Request,), }, @@ -263,7 +263,7 @@ def __init__(self, api_client=None): }, 'openapi_types': { 'account_id': - (str,), + (int,), 'limit_to_id': ([int],), 'page_size': @@ -312,7 +312,7 @@ def create_audience( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_request (CreateRetailMediaAudienceRequest): Keyword Args: @@ -399,7 +399,7 @@ def create_retail_media_audience_v2( >>> result = thread.get() Args: - account_id (str): ID of the account to which this audience belongs. + account_id (int): ID of the account to which this audience belongs. create_retail_media_audience_v2_request (CreateRetailMediaAudienceV2Request): Keyword Args: @@ -571,7 +571,7 @@ def get_retail_media_audience_v2_list_by_account_id( >>> result = thread.get() Args: - account_id (str): External account ID which owns audience. + account_id (int): External account ID which owns audience. Keyword Args: limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional] diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py index 550a3d94..9238ade9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/campaign_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -21,8 +21,13 @@ none_type, validate_and_convert_types ) +from criteo_api_retailmedia_preview.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from criteo_api_retailmedia_preview.model.balance_response_paged_list_response import BalanceResponsePagedListResponse from criteo_api_retailmedia_preview.model.brand_preview_list_response import BrandPreviewListResponse +from criteo_api_retailmedia_preview.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest from criteo_api_retailmedia_preview.model.cpc_rate_card_preview_response import CpcRateCardPreviewResponse +from criteo_api_retailmedia_preview.model.create_balance_request import CreateBalanceRequest from criteo_api_retailmedia_preview.model.creative202210_list_response import Creative202210ListResponse from criteo_api_retailmedia_preview.model.creative202210_response import Creative202210Response from criteo_api_retailmedia_preview.model.creative_create_model202207 import CreativeCreateModel202207 @@ -54,6 +59,7 @@ from criteo_api_retailmedia_preview.model.sku_slim_data_v2_list_response import SkuSlimDataV2ListResponse from criteo_api_retailmedia_preview.model.template_list_response import TemplateListResponse from criteo_api_retailmedia_preview.model.template_response import TemplateResponse +from criteo_api_retailmedia_preview.model.update_balance_model_request import UpdateBalanceModelRequest class CampaignApi(object): @@ -728,6 +734,74 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.get_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceResponsePagedListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances', + 'operation_id': 'get_api_v1_external_account_balances_by_account_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'limit_to_id', + 'page_index', + 'page_size', + ], + 'required': [ + 'account_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'limit_to_id': + ([str],), + 'page_index': + (int,), + 'page_size': + (int,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'limit_to_id': 'limitToId', + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'account_id': 'path', + 'limit_to_id': 'query', + 'page_index': 'query', + 'page_size': 'query', + }, + 'collection_format_map': { + 'limit_to_id': 'multi', + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_api_v1_external_account_brands_by_account_id_endpoint = _Endpoint( settings={ 'response_type': (JsonApiPageResponseOfBrand,), @@ -796,6 +870,64 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.get_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances/{balanceId}', + 'operation_id': 'get_api_v1_external_account_by_account_id_and_balance_id', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'balance_id', + ], + 'required': [ + 'account_id', + 'balance_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'balance_id': + (str,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'balance_id': 'balanceId', + }, + 'location_map': { + 'account_id': 'path', + 'balance_id': 'path', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_api_v1_external_account_retailers_by_account_id_endpoint = _Endpoint( settings={ 'response_type': (JsonApiPageResponseOfRetailer,), @@ -1169,6 +1301,70 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint( + settings={ + 'response_type': (BalanceResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances/{balanceId}', + 'operation_id': 'patch_api_v1_external_account_by_account_id_and_balance_id', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'balance_id', + 'update_balance_model_request', + ], + 'required': [ + 'account_id', + 'balance_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'balance_id': + (str,), + 'update_balance_model_request': + (UpdateBalanceModelRequest,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'balance_id': 'balanceId', + }, + 'location_map': { + 'account_id': 'path', + 'balance_id': 'path', + 'update_balance_model_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) self.post_api202210_external_account_creatives_by_account_id_endpoint = _Endpoint( settings={ 'response_type': (Creative202210Response,), @@ -1401,69 +1597,56 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_catalogs_sku_retrieval_endpoint = _Endpoint( + self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint = _Endpoint( settings={ - 'response_type': (SkuDataPreviewListResponse,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/catalogs/sku-retrieval', - 'operation_id': 'post_api_v1_external_catalogs_sku_retrieval', + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds', + 'operation_id': 'post_api_v1_external_account_add_funds_by_account_id_and_balance_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'page_index', - 'page_size', - 'request_body', + 'account_id', + 'balance_id', + 'add_funds_to_balance_request', + ], + 'required': [ + 'account_id', + 'balance_id', ], - 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ - 'page_index', - 'page_size', - 'request_body', ] }, root_map={ 'validations': { - ('page_index',): { - - 'inclusive_maximum': 500, - 'inclusive_minimum': 0, - }, - ('page_size',): { - - 'inclusive_maximum': 100, - 'inclusive_minimum': 1, - }, - ('request_body',): { - - }, }, 'allowed_values': { }, 'openapi_types': { - 'page_index': - (int,), - 'page_size': - (int,), - 'request_body': - ([str],), + 'account_id': + (str,), + 'balance_id': + (str,), + 'add_funds_to_balance_request': + (AddFundsToBalanceRequest,), }, 'attribute_map': { - 'page_index': 'pageIndex', - 'page_size': 'pageSize', + 'account_id': 'accountId', + 'balance_id': 'balanceId', }, 'location_map': { - 'page_index': 'query', - 'page_size': 'query', - 'request_body': 'body', + 'account_id': 'path', + 'balance_id': 'path', + 'add_funds_to_balance_request': 'body', }, 'collection_format_map': { } @@ -1478,65 +1661,50 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_catalogs_sku_search_endpoint = _Endpoint( + self.post_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint( settings={ - 'response_type': (SkuDataPreviewListResponse,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/catalogs/sku-search', - 'operation_id': 'post_api_v1_external_catalogs_sku_search', + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances', + 'operation_id': 'post_api_v1_external_account_balances_by_account_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'page_index', - 'page_size', - 'sku_search_request_preview_request', + 'account_id', + 'create_balance_request', + ], + 'required': [ + 'account_id', ], - 'required': [], 'nullable': [ ], 'enum': [ ], 'validation': [ - 'page_index', - 'page_size', ] }, root_map={ 'validations': { - ('page_index',): { - - 'inclusive_maximum': 500, - 'inclusive_minimum': 0, - }, - ('page_size',): { - - 'inclusive_maximum': 100, - 'inclusive_minimum': 1, - }, }, 'allowed_values': { }, 'openapi_types': { - 'page_index': - (int,), - 'page_size': - (int,), - 'sku_search_request_preview_request': - (SkuSearchRequestPreviewRequest,), + 'account_id': + (str,), + 'create_balance_request': + (CreateBalanceRequest,), }, 'attribute_map': { - 'page_index': 'pageIndex', - 'page_size': 'pageSize', + 'account_id': 'accountId', }, 'location_map': { - 'page_index': 'query', - 'page_size': 'query', - 'sku_search_request_preview_request': 'body', + 'account_id': 'path', + 'create_balance_request': 'body', }, 'collection_format_map': { } @@ -1551,42 +1719,256 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.post_api_v1_external_catalogs_sku_search_account_id_and_retailer_id_endpoint = _Endpoint( + self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint = _Endpoint( settings={ - 'response_type': (SkuSlimDataPreviewListResponse,), + 'response_type': (BalanceResponse,), 'auth': [ 'oauth', 'oauth' ], - 'endpoint_path': '/preview/retail-media/catalogs/sku-search/accounts/{account-id}/retailers/{retailer-id}', - 'operation_id': 'post_api_v1_external_catalogs_sku_search_account_id_and_retailer_id', + 'endpoint_path': '/preview/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates', + 'operation_id': 'post_api_v1_external_account_change_dates_by_account_id_and_balance_id', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ 'account_id', - 'retailer_id', - 'offset', - 'limit', - 'sku_search_request_slim_preview_request', + 'balance_id', + 'change_dates_of_balance_request', ], 'required': [ 'account_id', - 'retailer_id', + 'balance_id', ], 'nullable': [ ], 'enum': [ ], 'validation': [ - 'limit', ] }, root_map={ 'validations': { - ('limit',): { - + }, + 'allowed_values': { + }, + 'openapi_types': { + 'account_id': + (str,), + 'balance_id': + (str,), + 'change_dates_of_balance_request': + (ChangeDatesOfBalanceRequest,), + }, + 'attribute_map': { + 'account_id': 'accountId', + 'balance_id': 'balanceId', + }, + 'location_map': { + 'account_id': 'path', + 'balance_id': 'path', + 'change_dates_of_balance_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api_v1_external_catalogs_sku_retrieval_endpoint = _Endpoint( + settings={ + 'response_type': (SkuDataPreviewListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/catalogs/sku-retrieval', + 'operation_id': 'post_api_v1_external_catalogs_sku_retrieval', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'page_index', + 'page_size', + 'request_body', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'page_index', + 'page_size', + 'request_body', + ] + }, + root_map={ + 'validations': { + ('page_index',): { + + 'inclusive_maximum': 500, + 'inclusive_minimum': 0, + }, + ('page_size',): { + + 'inclusive_maximum': 1000, + 'inclusive_minimum': 1, + }, + ('request_body',): { + + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'page_index': + (int,), + 'page_size': + (int,), + 'request_body': + ([str],), + }, + 'attribute_map': { + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'page_index': 'query', + 'page_size': 'query', + 'request_body': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api_v1_external_catalogs_sku_search_endpoint = _Endpoint( + settings={ + 'response_type': (SkuDataPreviewListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/catalogs/sku-search', + 'operation_id': 'post_api_v1_external_catalogs_sku_search', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'page_index', + 'page_size', + 'sku_search_request_preview_request', + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'page_index', + 'page_size', + ] + }, + root_map={ + 'validations': { + ('page_index',): { + + 'inclusive_maximum': 500, + 'inclusive_minimum': 0, + }, + ('page_size',): { + + 'inclusive_maximum': 1000, + 'inclusive_minimum': 1, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'page_index': + (int,), + 'page_size': + (int,), + 'sku_search_request_preview_request': + (SkuSearchRequestPreviewRequest,), + }, + 'attribute_map': { + 'page_index': 'pageIndex', + 'page_size': 'pageSize', + }, + 'location_map': { + 'page_index': 'query', + 'page_size': 'query', + 'sku_search_request_preview_request': 'body', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.post_api_v1_external_catalogs_sku_search_account_id_and_retailer_id_endpoint = _Endpoint( + settings={ + 'response_type': (SkuSlimDataPreviewListResponse,), + 'auth': [ + 'oauth', + 'oauth' + ], + 'endpoint_path': '/preview/retail-media/catalogs/sku-search/accounts/{account-id}/retailers/{retailer-id}', + 'operation_id': 'post_api_v1_external_catalogs_sku_search_account_id_and_retailer_id', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'account_id', + 'retailer_id', + 'offset', + 'limit', + 'sku_search_request_slim_preview_request', + ], + 'required': [ + 'account_id', + 'retailer_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + 'limit', + ] + }, + root_map={ + 'validations': { + ('limit',): { + 'inclusive_maximum': 1500, 'inclusive_minimum': 1, }, @@ -2792,9 +3174,520 @@ def get_api202301_external_line_item_bid_multipliers_by_line_item_id( >>> result = thread.get() Args: - line_item_id (str): Long external id of the associated line item + line_item_id (str): Long external id of the associated line item + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfLineItemBidMultipliers + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['line_item_id'] = \ + line_item_id + return self.get_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v0_external_catalog_output_by_catalog_id( + self, + catalog_id, + **kwargs + ): + """get_api_v0_external_catalog_output_by_catalog_id # noqa: E501 + + Output the indicated catalog. Catalogs are only available for retrieval when their associated status request is at a Success status. Produces application/x-json-stream of CatalogProduct json objects. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v0_external_catalog_output_by_catalog_id(catalog_id, async_req=True) + >>> result = thread.get() + + Args: + catalog_id (str): A catalog ID returned from an account catalog request. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + None + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['catalog_id'] = \ + catalog_id + return self.get_api_v0_external_catalog_output_by_catalog_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v0_external_catalog_status_by_catalog_id( + self, + catalog_id, + **kwargs + ): + """get_api_v0_external_catalog_status_by_catalog_id # noqa: E501 + + Check the status of a catalog request. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v0_external_catalog_status_by_catalog_id(catalog_id, async_req=True) + >>> result = thread.get() + + Args: + catalog_id (str): A catalog ID returned from an account catalog request. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiSingleResponseOfCatalogStatus + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['catalog_id'] = \ + catalog_id + return self.get_api_v0_external_catalog_status_by_catalog_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_account_balances_by_account_id( + self, + account_id, + **kwargs + ): + """get_api_v1_external_account_balances_by_account_id # noqa: E501 + + Get page of balances for the given accountId. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_account_balances_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The account to get page of balances for + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0 + page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25 + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + BalanceResponsePagedListResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_account_brands_by_account_id( + self, + account_id, + **kwargs + ): + """get_api_v1_external_account_brands_by_account_id # noqa: E501 + + Gets page of retailer objects that are associated with the given account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_account_brands_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The given account id + + Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + JsonApiPageResponseOfBrand + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_brands_by_account_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_account_by_account_id_and_balance_id( + self, + account_id, + balance_id, + **kwargs + ): + """get_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 + + Get a balance for the given account id and balance id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The account of the balance + balance_id (str): The balance id + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + BalanceResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['account_id'] = \ + account_id + kwargs['balance_id'] = \ + balance_id + return self.get_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) + + def get_api_v1_external_account_retailers_by_account_id( + self, + account_id, + **kwargs + ): + """get_api_v1_external_account_retailers_by_account_id # noqa: E501 + + Gets page of retailer objects that are associated with the given account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_api_v1_external_account_retailers_by_account_id(account_id, async_req=True) + >>> result = thread.get() + + Args: + account_id (str): The given account id Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2827,7 +3720,7 @@ def get_api202301_external_line_item_bid_multipliers_by_line_item_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfLineItemBidMultipliers + JsonApiPageResponseOfRetailer If the method is called asynchronously, returns the request thread. """ @@ -2856,28 +3749,28 @@ def get_api202301_external_line_item_bid_multipliers_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.get_api202301_external_line_item_bid_multipliers_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.get_api_v1_external_account_retailers_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api_v0_external_catalog_output_by_catalog_id( + def get_api_v1_external_accounts( self, - catalog_id, **kwargs ): - """get_api_v0_external_catalog_output_by_catalog_id # noqa: E501 + """get_api_v1_external_accounts # noqa: E501 - Output the indicated catalog. Catalogs are only available for retrieval when their associated status request is at a Success status. Produces application/x-json-stream of CatalogProduct json objects. # noqa: E501 + Gets page of account objects that the current user can access # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v0_external_catalog_output_by_catalog_id(catalog_id, async_req=True) + >>> thread = api.get_api_v1_external_accounts(async_req=True) >>> result = thread.get() - Args: - catalog_id (str): A catalog ID returned from an account catalog request. Keyword Args: + limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] + page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] + page_size (int): The maximum number of items you would like to receive in this request. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2910,7 +3803,7 @@ def get_api_v0_external_catalog_output_by_catalog_id( async_req (bool): execute request asynchronously Returns: - None + JsonApiPageResponseOfAccount If the method is called asynchronously, returns the request thread. """ @@ -2939,28 +3832,28 @@ def get_api_v0_external_catalog_output_by_catalog_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['catalog_id'] = \ - catalog_id - return self.get_api_v0_external_catalog_output_by_catalog_id_endpoint.call_with_http_info(**kwargs) + return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs) - def get_api_v0_external_catalog_status_by_catalog_id( + def get_api_v1_external_retailer_brands_by_retailer_id( self, - catalog_id, + retailer_id, **kwargs ): - """get_api_v0_external_catalog_status_by_catalog_id # noqa: E501 + """get_api_v1_external_retailer_brands_by_retailer_id # noqa: E501 - Check the status of a catalog request. # noqa: E501 + Gets the brands for the given retailer # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v0_external_catalog_status_by_catalog_id(catalog_id, async_req=True) + >>> thread = api.get_api_v1_external_retailer_brands_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - catalog_id (str): A catalog ID returned from an account catalog request. + retailer_id (int): The retailer id for which brands should be fetched. Keyword Args: + sku_stock_type_filter (str): Filter to narrow down brands [first-party|third-party|first-and-third-party]. Defaults to first-and-third-party. [optional] + brand_type (str): Filter to narrow down brands [all|uc|retailer]. Defaults to uc. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2993,7 +3886,7 @@ def get_api_v0_external_catalog_status_by_catalog_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCatalogStatus + BrandPreviewListResponse If the method is called asynchronously, returns the request thread. """ @@ -3022,31 +3915,30 @@ def get_api_v0_external_catalog_status_by_catalog_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['catalog_id'] = \ - catalog_id - return self.get_api_v0_external_catalog_status_by_catalog_id_endpoint.call_with_http_info(**kwargs) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api_v1_external_retailer_brands_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_account_brands_by_account_id( + def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( self, - account_id, + retailer_id, + seller, **kwargs ): - """get_api_v1_external_account_brands_by_account_id # noqa: E501 + """get_api_v1_external_retailer_by_retailer_id_seller_by_seller # noqa: E501 - Gets page of retailer objects that are associated with the given account # noqa: E501 + Endpoint to get market place seller id and name # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_account_brands_by_account_id(account_id, async_req=True) + >>> thread = api.get_api_v1_external_retailer_by_retailer_id_seller_by_seller(retailer_id, seller, async_req=True) >>> result = thread.get() Args: - account_id (str): The given account id + retailer_id (int): The retailer id for which seller should be fetched. + seller (str): The seller id or seller name which should be validated. Keyword Args: - limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] - page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] - page_size (int): The maximum number of items you would like to receive in this request. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3079,7 +3971,7 @@ def get_api_v1_external_account_brands_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfBrand + SellerPreviewResponse If the method is called asynchronously, returns the request thread. """ @@ -3108,31 +4000,31 @@ def get_api_v1_external_account_brands_by_account_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['account_id'] = \ - account_id - return self.get_api_v1_external_account_brands_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['retailer_id'] = \ + retailer_id + kwargs['seller'] = \ + seller + return self.get_api_v1_external_retailer_by_retailer_id_seller_by_seller_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_account_retailers_by_account_id( + def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( self, - account_id, + retailer_id, **kwargs ): - """get_api_v1_external_account_retailers_by_account_id # noqa: E501 + """get_api_v1_external_retailer_category_cpc_rates_by_retailer_id # noqa: E501 - Gets page of retailer objects that are associated with the given account # noqa: E501 + Gets the minimum cpc bid for the retailer, and optionally the categories under the retailer # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_account_retailers_by_account_id(account_id, async_req=True) + >>> thread = api.get_api_v1_external_retailer_category_cpc_rates_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The given account id + retailer_id (str): The retailer id Keyword Args: - limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] - page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] - page_size (int): The maximum number of items you would like to receive in this request. [optional] + fields ([str]): The fields in the response that is to be included. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3165,7 +4057,7 @@ def get_api_v1_external_account_retailers_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfRetailer + CpcRateCardPreviewResponse If the method is called asynchronously, returns the request thread. """ @@ -3194,28 +4086,28 @@ def get_api_v1_external_account_retailers_by_account_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['account_id'] = \ - account_id - return self.get_api_v1_external_account_retailers_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api_v1_external_retailer_category_cpc_rates_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_accounts( + def get_api_v1_external_retailer_placements_by_retailer_id( self, + retailer_id, **kwargs ): - """get_api_v1_external_accounts # noqa: E501 + """get_api_v1_external_retailer_placements_by_retailer_id # noqa: E501 - Gets page of account objects that the current user can access # noqa: E501 + Gets all placement information for the given retailer # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_accounts(async_req=True) + >>> thread = api.get_api_v1_external_retailer_placements_by_retailer_id(retailer_id, async_req=True) >>> result = thread.get() + Args: + retailer_id (str): The retailer id for which placements should be fetched. Keyword Args: - limit_to_id ([str]): The ids that you would like to limit your result set to. [optional] - page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] - page_size (int): The maximum number of items you would like to receive in this request. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3248,7 +4140,7 @@ def get_api_v1_external_accounts( async_req (bool): execute request asynchronously Returns: - JsonApiPageResponseOfAccount + PlacementPreviewListResponse If the method is called asynchronously, returns the request thread. """ @@ -3277,28 +4169,31 @@ def get_api_v1_external_accounts( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs) + kwargs['retailer_id'] = \ + retailer_id + return self.get_api_v1_external_retailer_placements_by_retailer_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_brands_by_retailer_id( + def patch_api_v1_external_account_by_account_id_and_balance_id( self, - retailer_id, + account_id, + balance_id, **kwargs ): - """get_api_v1_external_retailer_brands_by_retailer_id # noqa: E501 + """patch_api_v1_external_account_by_account_id_and_balance_id # noqa: E501 - Gets the brands for the given retailer # noqa: E501 + Modify a balance for the given account id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_retailer_brands_by_retailer_id(retailer_id, async_req=True) + >>> thread = api.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True) >>> result = thread.get() Args: - retailer_id (int): The retailer id for which brands should be fetched. + account_id (str): The account of the balance + balance_id (str): The balance to change the dates Keyword Args: - sku_stock_type_filter (str): Filter to narrow down brands [first-party|third-party|first-and-third-party]. Defaults to first-and-third-party. [optional] - brand_type (str): Filter to narrow down brands [all|uc|retailer]. Defaults to uc. [optional] + update_balance_model_request (UpdateBalanceModelRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3331,7 +4226,7 @@ def get_api_v1_external_retailer_brands_by_retailer_id( async_req (bool): execute request asynchronously Returns: - BrandPreviewListResponse + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -3360,30 +4255,31 @@ def get_api_v1_external_retailer_brands_by_retailer_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['retailer_id'] = \ - retailer_id - return self.get_api_v1_external_retailer_brands_by_retailer_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + kwargs['balance_id'] = \ + balance_id + return self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( + def post_api202210_external_account_creatives_by_account_id( self, - retailer_id, - seller, + account_id, **kwargs ): - """get_api_v1_external_retailer_by_retailer_id_seller_by_seller # noqa: E501 + """post_api202210_external_account_creatives_by_account_id # noqa: E501 - Endpoint to get market place seller id and name # noqa: E501 + Create a creative for an account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_retailer_by_retailer_id_seller_by_seller(retailer_id, seller, async_req=True) + >>> thread = api.post_api202210_external_account_creatives_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - retailer_id (int): The retailer id for which seller should be fetched. - seller (str): The seller id or seller name which should be validated. + account_id (str): External account id to create a creative for Keyword Args: + creative_create_model202207 (CreativeCreateModel202207): The creative to create. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3416,7 +4312,7 @@ def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( async_req (bool): execute request asynchronously Returns: - SellerPreviewResponse + Creative202210Response If the method is called asynchronously, returns the request thread. """ @@ -3445,31 +4341,29 @@ def get_api_v1_external_retailer_by_retailer_id_seller_by_seller( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['retailer_id'] = \ - retailer_id - kwargs['seller'] = \ - seller - return self.get_api_v1_external_retailer_by_retailer_id_seller_by_seller_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.post_api202210_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( + def post_api202210_external_account_creatives_search_by_account_id( self, - retailer_id, + account_id, **kwargs ): - """get_api_v1_external_retailer_category_cpc_rates_by_retailer_id # noqa: E501 + """post_api202210_external_account_creatives_search_by_account_id # noqa: E501 - Gets the minimum cpc bid for the retailer, and optionally the categories under the retailer # noqa: E501 + Get account creatives # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_retailer_category_cpc_rates_by_retailer_id(retailer_id, async_req=True) + >>> thread = api.post_api202210_external_account_creatives_search_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - retailer_id (str): The retailer id + account_id (str): External account id to retrieve creatives for Keyword Args: - fields ([str]): The fields in the response that is to be included. [optional] + creative_ids ([str]): Creatives to filter by. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3502,7 +4396,7 @@ def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( async_req (bool): execute request asynchronously Returns: - CpcRateCardPreviewResponse + Creative202210ListResponse If the method is called asynchronously, returns the request thread. """ @@ -3531,28 +4425,29 @@ def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['retailer_id'] = \ - retailer_id - return self.get_api_v1_external_retailer_category_cpc_rates_by_retailer_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.post_api202210_external_account_creatives_search_by_account_id_endpoint.call_with_http_info(**kwargs) - def get_api_v1_external_retailer_placements_by_retailer_id( + def post_api202210_external_line_item_product_buttons_create_by_line_item_id( self, - retailer_id, + line_item_id, **kwargs ): - """get_api_v1_external_retailer_placements_by_retailer_id # noqa: E501 + """post_api202210_external_line_item_product_buttons_create_by_line_item_id # noqa: E501 - Gets all placement information for the given retailer # noqa: E501 + Append new product buttons to a line item # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_api_v1_external_retailer_placements_by_retailer_id(retailer_id, async_req=True) + >>> thread = api.post_api202210_external_line_item_product_buttons_create_by_line_item_id(line_item_id, async_req=True) >>> result = thread.get() Args: - retailer_id (str): The retailer id for which placements should be fetched. + line_item_id (str): Long external id of the associated line item Keyword Args: + product_button_list_request (ProductButtonListRequest): List of product buttons to append to the specified line item. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3585,7 +4480,7 @@ def get_api_v1_external_retailer_placements_by_retailer_id( async_req (bool): execute request asynchronously Returns: - PlacementPreviewListResponse + ProductButtonListResponse If the method is called asynchronously, returns the request thread. """ @@ -3614,29 +4509,29 @@ def get_api_v1_external_retailer_placements_by_retailer_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['retailer_id'] = \ - retailer_id - return self.get_api_v1_external_retailer_placements_by_retailer_id_endpoint.call_with_http_info(**kwargs) + kwargs['line_item_id'] = \ + line_item_id + return self.post_api202210_external_line_item_product_buttons_create_by_line_item_id_endpoint.call_with_http_info(**kwargs) - def post_api202210_external_account_creatives_by_account_id( + def post_api_v0_external_account_catalogs_by_account_id( self, account_id, **kwargs ): - """post_api202210_external_account_creatives_by_account_id # noqa: E501 + """post_api_v0_external_account_catalogs_by_account_id # noqa: E501 - Create a creative for an account # noqa: E501 + Create a request for a Catalog available to the indicated account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202210_external_account_creatives_by_account_id(account_id, async_req=True) + >>> thread = api.post_api_v0_external_account_catalogs_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - account_id (str): External account id to create a creative for + account_id (str): The account to request the catalog for. Keyword Args: - creative_create_model202207 (CreativeCreateModel202207): The creative to create. [optional] + json_api_request_of_catalog_request_preview (JsonApiRequestOfCatalogRequestPreview): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3669,7 +4564,7 @@ def post_api202210_external_account_creatives_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202210Response + JsonApiSingleResponseOfCatalogStatus If the method is called asynchronously, returns the request thread. """ @@ -3700,27 +4595,29 @@ def post_api202210_external_account_creatives_by_account_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - return self.post_api202210_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs) + return self.post_api_v0_external_account_catalogs_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api202210_external_account_creatives_search_by_account_id( + def post_api_v1_external_account_add_funds_by_account_id_and_balance_id( self, account_id, + balance_id, **kwargs ): - """post_api202210_external_account_creatives_search_by_account_id # noqa: E501 + """post_api_v1_external_account_add_funds_by_account_id_and_balance_id # noqa: E501 - Get account creatives # noqa: E501 + Add funds to a balance for the given account id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202210_external_account_creatives_search_by_account_id(account_id, async_req=True) + >>> thread = api.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id, async_req=True) >>> result = thread.get() Args: - account_id (str): External account id to retrieve creatives for + account_id (str): The account of the balance + balance_id (str): The balance to add funds to Keyword Args: - creative_ids ([str]): Creatives to filter by. [optional] + add_funds_to_balance_request (AddFundsToBalanceRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3753,7 +4650,7 @@ def post_api202210_external_account_creatives_search_by_account_id( async_req (bool): execute request asynchronously Returns: - Creative202210ListResponse + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -3784,27 +4681,29 @@ def post_api202210_external_account_creatives_search_by_account_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - return self.post_api202210_external_account_creatives_search_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['balance_id'] = \ + balance_id + return self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) - def post_api202210_external_line_item_product_buttons_create_by_line_item_id( + def post_api_v1_external_account_balances_by_account_id( self, - line_item_id, + account_id, **kwargs ): - """post_api202210_external_line_item_product_buttons_create_by_line_item_id # noqa: E501 + """post_api_v1_external_account_balances_by_account_id # noqa: E501 - Append new product buttons to a line item # noqa: E501 + Create balance for the given account id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api202210_external_line_item_product_buttons_create_by_line_item_id(line_item_id, async_req=True) + >>> thread = api.post_api_v1_external_account_balances_by_account_id(account_id, async_req=True) >>> result = thread.get() Args: - line_item_id (str): Long external id of the associated line item + account_id (str): The account to create balances for Keyword Args: - product_button_list_request (ProductButtonListRequest): List of product buttons to append to the specified line item. [optional] + create_balance_request (CreateBalanceRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3837,7 +4736,7 @@ def post_api202210_external_line_item_product_buttons_create_by_line_item_id( async_req (bool): execute request asynchronously Returns: - ProductButtonListResponse + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -3866,29 +4765,31 @@ def post_api202210_external_line_item_product_buttons_create_by_line_item_id( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['line_item_id'] = \ - line_item_id - return self.post_api202210_external_line_item_product_buttons_create_by_line_item_id_endpoint.call_with_http_info(**kwargs) + kwargs['account_id'] = \ + account_id + return self.post_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs) - def post_api_v0_external_account_catalogs_by_account_id( + def post_api_v1_external_account_change_dates_by_account_id_and_balance_id( self, account_id, + balance_id, **kwargs ): - """post_api_v0_external_account_catalogs_by_account_id # noqa: E501 + """post_api_v1_external_account_change_dates_by_account_id_and_balance_id # noqa: E501 - Create a request for a Catalog available to the indicated account. # noqa: E501 + Change dates of a balance for the given account id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.post_api_v0_external_account_catalogs_by_account_id(account_id, async_req=True) + >>> thread = api.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id, async_req=True) >>> result = thread.get() Args: - account_id (str): The account to request the catalog for. + account_id (str): The account of the balance + balance_id (str): The balance to change the dates Keyword Args: - json_api_request_of_catalog_request_preview (JsonApiRequestOfCatalogRequestPreview): [optional] + change_dates_of_balance_request (ChangeDatesOfBalanceRequest): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -3921,7 +4822,7 @@ def post_api_v0_external_account_catalogs_by_account_id( async_req (bool): execute request asynchronously Returns: - JsonApiSingleResponseOfCatalogStatus + BalanceResponse If the method is called asynchronously, returns the request thread. """ @@ -3952,7 +4853,9 @@ def post_api_v0_external_account_catalogs_by_account_id( kwargs['_request_auths'] = kwargs.get('_request_auths', None) kwargs['account_id'] = \ account_id - return self.post_api_v0_external_account_catalogs_by_account_id_endpoint.call_with_http_info(**kwargs) + kwargs['balance_id'] = \ + balance_id + return self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs) def post_api_v1_external_catalogs_sku_retrieval( self, diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/gateway_api.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/gateway_api.py index 141256ff..1422fcad 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/gateway_api.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api/gateway_api.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py index 2ecf1f0d..1e3590dd 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/api_client.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/0.0.230601/python' + self.user_agent = 'OpenAPI-Generator/0.0.230726/python' def __enter__(self): return self @@ -804,10 +804,10 @@ def __call__(self, *args, **kwargs): Example: api_instance = AnalyticsApi() - api_instance.get_campaign_reports # this is an instance of the class Endpoint - api_instance.get_campaign_reports() # this invokes api_instance.get_campaign_reports.__call__() + api_instance.generate_async_campaign_report # this is an instance of the class Endpoint + api_instance.generate_async_campaign_report() # this invokes api_instance.generate_async_campaign_report.__call__() which then invokes the callable functions stored in that endpoint at - api_instance.get_campaign_reports.callable or self.callable in this class + api_instance.generate_async_campaign_report.callable or self.callable in this class """ return self.callable(self, *args, **kwargs) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py index fbb5328e..70bcb344 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/configuration.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -395,7 +395,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: Preview\n"\ - "SDK Package Version: 0.0.230601".\ + "SDK Package Version: 0.0.230726".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/exceptions.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/exceptions.py index b222e869..56ddb6fe 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/exceptions.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/exceptions.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py new file mode 100644 index 00000000..d3526714 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/add_funds_to_balance_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance + globals()['ResourceOfAddFundsToBalance'] = ResourceOfAddFundsToBalance + + +class AddFundsToBalanceRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfAddFundsToBalance,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AddFundsToBalanceRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfAddFundsToBalance): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AddFundsToBalanceRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfAddFundsToBalance): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model.py index 59996e80..c47828eb 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_resource.py index 42938fe5..32e42cf1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_response.py index be8de7e2..8b34b79b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/application_summary_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_request_attributes.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report.py similarity index 77% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_request_attributes.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report.py index aa5c04ac..13cbc19c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_request_attributes.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,7 +30,7 @@ -class ReportRequestAttributes(ModelNormal): +class AsyncCampaignReport(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -55,31 +55,69 @@ class ReportRequestAttributes(ModelNormal): """ allowed_values = { - ('report_type',): { - 'SUMMARY': "summary", + ('metrics',): { + 'IMPRESSIONS': "impressions", + 'CLICKS': "clicks", + 'SPEND': "spend", + 'ATTRIBUTEDSALES': "attributedSales", + 'ATTRIBUTEDUNITS': "attributedUnits", + 'ATTRIBUTEDORDERS': "attributedOrders", + 'CTR': "ctr", + 'CPC': "cpc", + 'CPO': "cpo", + 'CPM': "cpm", + 'ROAS': "roas", + 'UNIQUEVISITORS': "uniqueVisitors", + 'FREQUENCY': "frequency", + }, + ('dimensions',): { + 'DATE': "date", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'PAGETYPENAME': "pageTypeName", 'KEYWORD': "keyword", - 'PAGETYPE': "pageType", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'SALESCHANNEL': "salesChannel", }, ('click_attribution_window',): { '7D': "7D", '14D': "14D", '30D': "30D", - }, - ('format',): { - 'CSV': "csv", - 'JSON': "json", - 'JSON-COMPACT': "json-compact", - 'JSON-NEWLINE': "json-newline", + 'NONE': "none", }, ('view_attribution_window',): { - 'NONE': "none", '1D': "1D", '7D': "7D", '14D': "14D", '30D': "30D", + 'NONE': "none", + }, + ('campaign_type',): { + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", }, } @@ -107,15 +145,19 @@ def openapi_types(): and the value is attribute type. """ return { - 'end_date': (date,), # noqa: E501 - 'report_type': (str,), # noqa: E501 - 'start_date': (date,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 'format': (str,), # noqa: E501 - 'id': (str,), # noqa: E501 + 'report_type': (str,), # noqa: E501 'ids': ([str],), # noqa: E501 - 'time_zone': (str,), # noqa: E501 - 'view_attribution_window': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 } @cached_property @@ -124,15 +166,19 @@ def discriminator(): attribute_map = { - 'end_date': 'endDate', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 'format': 'format', # noqa: E501 - 'id': 'id', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 'ids': 'ids', # noqa: E501 - 'time_zone': 'timeZone', # noqa: E501 - 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'id': 'id', # noqa: E501 } read_only_vars = { @@ -142,13 +188,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): # noqa: E501 - """ReportRequestAttributes - a model defined in OpenAPI + def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E501 + """AsyncCampaignReport - a model defined in OpenAPI Args: - end_date (date): YYYY-MM-DD, must not be before startDate and not more than 100 days later - report_type (str): One of \"summary\", \"keyword\", \"pageType\", \"productCategory\", \"product\", or \"attributedTransactions\" - start_date (date): YYYY-MM-DD + start_date (datetime): + end_date (datetime): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -181,12 +226,17 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - click_attribution_window (str): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 - id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - time_zone (str): [optional] # noqa: E501 - view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + format (str): [optional] # noqa: E501 + report_type (str): [optional] # noqa: E501 + ids ([str]): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -218,9 +268,8 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.end_date = end_date - self.report_type = report_type self.start_date = start_date + self.end_date = end_date for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -241,13 +290,12 @@ def _from_openapi_data(cls, end_date, report_type, start_date, *args, **kwargs): ]) @convert_js_args_to_python_args - def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: E501 - """ReportRequestAttributes - a model defined in OpenAPI + def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 + """AsyncCampaignReport - a model defined in OpenAPI Args: - end_date (date): YYYY-MM-DD, must not be before startDate and not more than 100 days later - report_type (str): One of \"summary\", \"keyword\", \"pageType\", \"productCategory\", \"product\", or \"attributedTransactions\" - start_date (date): YYYY-MM-DD + start_date (datetime): + end_date (datetime): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -280,12 +328,17 @@ def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - click_attribution_window (str): Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified. [optional] # noqa: E501 - format (str): One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\". [optional] if omitted the server will use the default value of "json" # noqa: E501 - id (str): The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - ids ([str]): The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both. [optional] # noqa: E501 - time_zone (str): [optional] # noqa: E501 - view_attribution_window (str): Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified.. [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + format (str): [optional] # noqa: E501 + report_type (str): [optional] # noqa: E501 + ids ([str]): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -315,9 +368,8 @@ def __init__(self, end_date, report_type, start_date, *args, **kwargs): # noqa: self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.end_date = end_date - self.report_type = report_type self.start_date = start_date + self.end_date = end_date for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_request.py new file mode 100644 index 00000000..30da5eee --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.async_campaign_report_resource import AsyncCampaignReportResource + globals()['AsyncCampaignReportResource'] = AsyncCampaignReportResource + + +class AsyncCampaignReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AsyncCampaignReportResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncCampaignReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AsyncCampaignReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncCampaignReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AsyncCampaignReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_resource.py new file mode 100644 index 00000000..5e44d7ec --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_campaign_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.async_campaign_report import AsyncCampaignReport + globals()['AsyncCampaignReport'] = AsyncCampaignReport + + +class AsyncCampaignReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AsyncCampaignReport,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncCampaignReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AsyncCampaignReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncCampaignReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AsyncCampaignReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report.py new file mode 100644 index 00000000..8aaa6b1e --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report.py @@ -0,0 +1,388 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class AsyncLineItemReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('metrics',): { + 'IMPRESSIONS': "impressions", + 'CLICKS': "clicks", + 'SPEND': "spend", + 'ATTRIBUTEDSALES': "attributedSales", + 'ATTRIBUTEDUNITS': "attributedUnits", + 'ATTRIBUTEDORDERS': "attributedOrders", + 'CTR': "ctr", + 'CPC': "cpc", + 'CPO': "cpo", + 'ROAS': "roas", + 'ASSISTEDUNITS': "assistedUnits", + 'ASSISTEDSALES': "assistedSales", + 'UNIQUEVISITORS': "uniqueVisitors", + 'FREQUENCY': "frequency", + }, + ('dimensions',): { + 'DATE': "date", + 'CAMPAIGNID': "campaignId", + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNTYPENAME': "campaignTypeName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTNAME': "advProductName", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'LINEITEMID': "lineItemId", + 'LINEITEMNAME': "lineItemName", + 'RETAILERID': "retailerId", + 'RETAILERNAME': "retailerName", + 'KEYWORD': "keyword", + 'PAGETYPENAME': "pageTypeName", + 'SALESCHANNEL': "salesChannel", + }, + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('view_attribution_window',): { + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + ('campaign_type',): { + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + ('format',): { + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('report_type',): { + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 + 'format': (str,), # noqa: E501 + 'report_type': (str,), # noqa: E501 + 'ids': ([str],), # noqa: E501 + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + 'format': 'format', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E501 + """AsyncLineItemReport - a model defined in OpenAPI + + Args: + start_date (datetime): + end_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + format (str): [optional] # noqa: E501 + report_type (str): [optional] # noqa: E501 + ids ([str]): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 + """AsyncLineItemReport - a model defined in OpenAPI + + Args: + start_date (datetime): + end_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + format (str): [optional] # noqa: E501 + report_type (str): [optional] # noqa: E501 + ids ([str]): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_request.py new file mode 100644 index 00000000..a2de5820 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.async_line_item_report_resource import AsyncLineItemReportResource + globals()['AsyncLineItemReportResource'] = AsyncLineItemReportResource + + +class AsyncLineItemReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AsyncLineItemReportResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncLineItemReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AsyncLineItemReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AsyncLineItemReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_resource.py new file mode 100644 index 00000000..a7e876b4 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_line_item_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.async_line_item_report import AsyncLineItemReport + globals()['AsyncLineItemReport'] = AsyncLineItemReport + + +class AsyncLineItemReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AsyncLineItemReport,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncLineItemReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AsyncLineItemReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncLineItemReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AsyncLineItemReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_report_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_report_response.py new file mode 100644 index 00000000..3c45e527 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_report_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.status_response_resource import StatusResponseResource + globals()['CommonProblem'] = CommonProblem + globals()['StatusResponseResource'] = StatusResponseResource + + +class AsyncReportResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (StatusResponseResource,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncReportResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (StatusResponseResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncReportResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (StatusResponseResource): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py new file mode 100644 index 00000000..d33aa7df --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report.py @@ -0,0 +1,364 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class AsyncRevenueReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('report_type',): { + 'ADVERTISER': "advertiser", + 'ENVIRONMENT': "environment", + 'PAGETYPE': "pageType", + 'PAGECATEGORY': "pageCategory", + 'BRAND': "brand", + }, + ('revenue_type',): { + 'AUCTION': "auction", + 'PREFERRED': "preferred", + }, + ('metrics',): { + 'CLICKS': "clicks", + 'SPEND': "spend", + 'ATTRIBUTEDORDERS': "attributedOrders", + 'ATTRIBUTEDSALES': "attributedSales", + 'ATTRIBUTEDUNITS': "attributedUnits", + 'CPC': "cpc", + 'CPO': "cpo", + 'ROAS': "roas", + 'OPENAUCTIONREVENUE': "openAuctionRevenue", + 'PREFERREDDEALSREVENUE': "preferredDealsRevenue", + 'AVGCPC': "avgCpc", + 'AVGCPM': "avgCpm", + }, + ('dimensions',): { + 'DATE': "date", + 'ACCOUNTID': "accountId", + 'ACCOUNTNAME': "accountName", + 'ENVIRONMENT': "environment", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'BRANDID': "brandId", + 'BRANDNAME': "brandName", + 'PAGETYPENAME': "pageTypeName", + }, + ('format',): { + 'JSON': "json", + 'JSON-COMPACT': "json-compact", + 'JSON-NEWLINE': "json-newline", + 'CSV': "csv", + }, + ('campaign_type',): { + 'SPONSOREDPRODUCTS': "sponsoredProducts", + 'ONSITEDISPLAYS': "onSiteDisplays", + }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'report_type': (str,), # noqa: E501 + 'revenue_type': (str,), # noqa: E501 + 'ids': ([str],), # noqa: E501 + 'id': (str,), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 + 'format': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 + 'revenue_type': 'revenueType', # noqa: E501 + 'ids': 'ids', # noqa: E501 + 'id': 'id', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 + 'format': 'format', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, start_date, end_date, *args, **kwargs): # noqa: E501 + """AsyncRevenueReport - a model defined in OpenAPI + + Args: + start_date (datetime): + end_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 + ids ([str]): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): [optional] # noqa: E501 + format (str): [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, start_date, end_date, *args, **kwargs): # noqa: E501 + """AsyncRevenueReport - a model defined in OpenAPI + + Args: + start_date (datetime): + end_date (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 + revenue_type (str): [optional] # noqa: E501 + ids ([str]): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 + dimensions ([str]): [optional] # noqa: E501 + format (str): [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py new file mode 100644 index 00000000..54740c12 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.async_revenue_report_resource import AsyncRevenueReportResource + globals()['AsyncRevenueReportResource'] = AsyncRevenueReportResource + + +class AsyncRevenueReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AsyncRevenueReportResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncRevenueReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AsyncRevenueReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncRevenueReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AsyncRevenueReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py new file mode 100644 index 00000000..af7c6415 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/async_revenue_report_resource.py @@ -0,0 +1,273 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.async_revenue_report import AsyncRevenueReport + globals()['AsyncRevenueReport'] = AsyncRevenueReport + + +class AsyncRevenueReportResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'type': (str,), # noqa: E501 + 'attributes': (AsyncRevenueReport,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AsyncRevenueReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AsyncRevenueReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AsyncRevenueReportResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AsyncRevenueReport): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py new file mode 100644 index 00000000..386da88a --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.attributed_transaction_report_resource import AttributedTransactionReportResource + globals()['AttributedTransactionReportResource'] = AttributedTransactionReportResource + + +class AttributedTransactionReportRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (AttributedTransactionReportResource,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AttributedTransactionReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AttributedTransactionReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """AttributedTransactionReportRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (AttributedTransactionReportResource): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py similarity index 92% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py index 8413e59f..9bc8f174 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transaction_report_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_preview.model.report_request_attributes import ReportRequestAttributes - globals()['ReportRequestAttributes'] = ReportRequestAttributes + from criteo_api_retailmedia_preview.model.attributed_transactions_report import AttributedTransactionsReport + globals()['AttributedTransactionsReport'] = AttributedTransactionsReport -class ReportRequest(ModelNormal): +class AttributedTransactionReportResource(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,8 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'attributes': (ReportRequestAttributes,), # noqa: E501 'type': (str,), # noqa: E501 + 'attributes': (AttributedTransactionsReport,), # noqa: E501 } @cached_property @@ -97,8 +97,8 @@ def discriminator(): attribute_map = { - 'attributes': 'attributes', # noqa: E501 'type': 'type', # noqa: E501 + 'attributes': 'attributes', # noqa: E501 } read_only_vars = { @@ -108,12 +108,8 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, attributes, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """AttributedTransactionReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,6 +142,8 @@ def _from_openapi_data(cls, attributes, type, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AttributedTransactionsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -177,8 +175,6 @@ def _from_openapi_data(cls, attributes, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes - self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -199,12 +195,8 @@ def _from_openapi_data(cls, attributes, type, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, attributes, type, *args, **kwargs): # noqa: E501 - """ReportRequest - a model defined in OpenAPI - - Args: - attributes (ReportRequestAttributes): - type (str): Always \"RetailMediaReportRequest\" + def __init__(self, *args, **kwargs): # noqa: E501 + """AttributedTransactionReportResource - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -237,6 +229,8 @@ def __init__(self, attributes, type, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + type (str): [optional] # noqa: E501 + attributes (AttributedTransactionsReport): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,8 +260,6 @@ def __init__(self, attributes, type, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.attributes = attributes - self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py new file mode 100644 index 00000000..30ea8e36 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/attributed_transactions_report.py @@ -0,0 +1,370 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class AttributedTransactionsReport(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('dimensions',): { + 'CAMPAIGNNAME': "campaignName", + 'CAMPAIGNID': "campaignId", + 'LINEITEMID': "lineItemId", + 'PURCHASEDDATE': "purchasedDate", + 'PURCHASEDHOUR': "purchasedHour", + 'ADVDATE': "advDate", + 'ADVHOUR': "advHour", + 'DAYSDIFFERENCE': "daysDifference", + 'LINEITEMNAME': "lineItemName", + 'ADVPRODUCTID': "advProductId", + 'ADVPRODUCTGTIN': "advProductGtin", + 'ADVPRODUCTMPN': "advProductMpn", + 'ADVPRODUCTNAME': "advProductName", + 'ADVPRODUCTCATEGORY': "advProductCategory", + 'PURCHASEDPRODUCTID': "purchasedProductId", + 'PURCHASEDPRODUCTGTIN': "purchasedProductGtin", + 'PURCHASEDPRODUCTMPN': "purchasedProductMpn", + 'PURCHASEDPRODUCTNAME': "purchasedProductName", + 'PURCHASEDPRODUCTCATEGORY': "purchasedProductCategory", + 'ADVENGAGEMENT': "advEngagement", + 'ADVTOPURCHASEDPRODUCTRELATIONSHIP': "advToPurchasedProductRelationship", + 'SALESCHANNEL': "salesChannel", + 'PAGETYPENAME': "pageTypeName", + 'RETAILERNAME': "retailerName", + 'KEYWORD': "keyword", + 'ATTRIBUTIONWINDOW': "attributionWindow", + }, + ('metrics',): { + 'ATTRIBUTEDUNITS': "attributedUnits", + 'ATTRIBUTEDSALES': "attributedSales", + }, + ('sold_by',): { + 'DIRECTSOLD': "directSold", + 'INDIRECTSOLD': "indirectSold", + 'PRIVATEMARKET': "privateMarket", + }, + ('campaign_sub_type',): { + 'AUCTIONANDPREFERRED': "auctionAndPreferred", + 'LOCKOUT': "lockout", + }, + ('click_attribution_window',): { + '7D': "7D", + '14D': "14D", + '30D': "30D", + }, + ('view_attribution_window',): { + '1D': "1D", + '7D': "7D", + '14D': "14D", + '30D': "30D", + 'NONE': "none", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'account_id': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'campaign_ids': ([str],), # noqa: E501 + 'line_item_ids': ([str],), # noqa: E501 + 'dimensions': ([str],), # noqa: E501 + 'metrics': ([str],), # noqa: E501 + 'sold_by': (str,), # noqa: E501 + 'campaign_sub_type': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 + 'click_attribution_window': (str,), # noqa: E501 + 'view_attribution_window': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_id': 'accountId', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'campaign_ids': 'campaignIds', # noqa: E501 + 'line_item_ids': 'lineItemIds', # noqa: E501 + 'dimensions': 'dimensions', # noqa: E501 + 'metrics': 'metrics', # noqa: E501 + 'sold_by': 'soldBy', # noqa: E501 + 'campaign_sub_type': 'campaignSubType', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 + 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 + 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): # noqa: E501 + """AttributedTransactionsReport - a model defined in OpenAPI + + Args: + account_id (str): Account id to report on + start_date (datetime): Start date + end_date (datetime): End Date + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_ids ([str]): Campaign ids to report on. [optional] # noqa: E501 + line_item_ids ([str]): Line item ids to report on. [optional] # noqa: E501 + dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 + metrics ([str]): List of metrics to report on. [optional] # noqa: E501 + sold_by (str): Filter on the type of seller. [optional] # noqa: E501 + campaign_sub_type (str): Filter on the campaign sub type. [optional] # noqa: E501 + timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 + view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: E501 + """AttributedTransactionsReport - a model defined in OpenAPI + + Args: + account_id (str): Account id to report on + start_date (datetime): Start date + end_date (datetime): End Date + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + campaign_ids ([str]): Campaign ids to report on. [optional] # noqa: E501 + line_item_ids ([str]): Line item ids to report on. [optional] # noqa: E501 + dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 + metrics ([str]): List of metrics to report on. [optional] # noqa: E501 + sold_by (str): Filter on the type of seller. [optional] # noqa: E501 + campaign_sub_type (str): Filter on the campaign sub type. [optional] # noqa: E501 + timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 + click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 + view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_id = account_id + self.start_date = start_date + self.end_date = end_date + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py new file mode 100644 index 00000000..e6e42c71 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.resource_of_balance_response import ResourceOfBalanceResponse + globals()['CommonProblem'] = CommonProblem + globals()['ResourceOfBalanceResponse'] = ResourceOfBalanceResponse + + +class BalanceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfBalanceResponse,), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """BalanceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfBalanceResponse): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """BalanceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfBalanceResponse): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py new file mode 100644 index 00000000..04e20152 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/balance_response_paged_list_response.py @@ -0,0 +1,287 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.common_problem import CommonProblem + from criteo_api_retailmedia_preview.model.page_metadata import PageMetadata + from criteo_api_retailmedia_preview.model.resource_of_balance_response import ResourceOfBalanceResponse + globals()['CommonProblem'] = CommonProblem + globals()['PageMetadata'] = PageMetadata + globals()['ResourceOfBalanceResponse'] = ResourceOfBalanceResponse + + +class BalanceResponsePagedListResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'metadata': (PageMetadata,), # noqa: E501 + 'data': ([ResourceOfBalanceResponse],), # noqa: E501 + 'warnings': ([CommonProblem],), # noqa: E501 + 'errors': ([CommonProblem],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'metadata': 'metadata', # noqa: E501 + 'data': 'data', # noqa: E501 + 'warnings': 'warnings', # noqa: E501 + 'errors': 'errors', # noqa: E501 + } + + read_only_vars = { + 'warnings', # noqa: E501 + 'errors', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """BalanceResponsePagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfBalanceResponse]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """BalanceResponsePagedListResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadata (PageMetadata): [optional] # noqa: E501 + data ([ResourceOfBalanceResponse]): [optional] # noqa: E501 + warnings ([CommonProblem]): [optional] # noqa: E501 + errors ([CommonProblem]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/global_brand.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand.py similarity index 97% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/global_brand.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand.py index c4619b34..012d8e92 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/global_brand.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,7 +30,7 @@ -class GlobalBrand(ModelNormal): +class Brand(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -105,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """GlobalBrand - a model defined in OpenAPI + """Brand - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -138,7 +138,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name of the global brand.. [optional] # noqa: E501 + name (str): The name of the brand.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -191,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """GlobalBrand - a model defined in OpenAPI + """Brand - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -224,7 +224,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name of the global brand.. [optional] # noqa: E501 + name (str): The name of the brand.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview.py index cf596a99..e7ecfa1b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview_list_response.py index 00c740ed..1572b513 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/brand_preview_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py index 8fc24a65..f945d845 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -55,6 +55,13 @@ class CampaignReport(ModelNormal): """ allowed_values = { + ('report_type',): { + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + }, ('metrics',): { 'IMPRESSIONS': "impressions", 'CLICKS': "clicks", @@ -80,14 +87,9 @@ class CampaignReport(ModelNormal): 'ADVPRODUCTNAME': "advProductName", 'BRANDID': "brandId", 'BRANDNAME': "brandName", - }, - ('report_type',): { - 'SUMMARY': "summary", - 'PAGETYPE': "pageType", - 'KEYWORD': "keyWord", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'PAGETYPENAME': "pageTypeName", + 'KEYWORD': "keyword", + 'SALESCHANNEL': "salesChannel", }, ('click_attribution_window',): { '7D': "7D", @@ -105,6 +107,10 @@ class CampaignReport(ModelNormal): 'SPONSOREDPRODUCTS': "sponsoredProducts", 'ONSITEDISPLAYS': "onSiteDisplays", }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, } validations = { @@ -134,14 +140,15 @@ def openapi_types(): 'account_id': (str,), # noqa: E501 'start_date': (datetime,), # noqa: E501 'end_date': (datetime,), # noqa: E501 + 'report_type': (str,), # noqa: E501 'campaign_ids': ([str],), # noqa: E501 'metrics': ([str],), # noqa: E501 'dimensions': ([str],), # noqa: E501 - 'report_type': (str,), # noqa: E501 'timezone': (str,), # noqa: E501 'click_attribution_window': (str,), # noqa: E501 'view_attribution_window': (str,), # noqa: E501 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 } @cached_property @@ -153,14 +160,15 @@ def discriminator(): 'account_id': 'accountId', # noqa: E501 'start_date': 'startDate', # noqa: E501 'end_date': 'endDate', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 'campaign_ids': 'campaignIds', # noqa: E501 'metrics': 'metrics', # noqa: E501 'dimensions': 'dimensions', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 'timezone': 'timezone', # noqa: E501 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 } read_only_vars = { @@ -209,14 +217,15 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 campaign_ids ([str]): List of campaign Ids to filter. [optional] # noqa: E501 metrics ([str]): List of Metrics to report on. [optional] # noqa: E501 dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 - report_type (str): Type of report, if no Dimensions / Metrics are provided fall back to summary reportType. [optional] # noqa: E501 timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 campaign_type (str): Filter the type of campaign to report on. [optional] # noqa: E501 + sales_channel (str): Filter on the channel of sales. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -310,14 +319,15 @@ def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + report_type (str): [optional] # noqa: E501 campaign_ids ([str]): List of campaign Ids to filter. [optional] # noqa: E501 metrics ([str]): List of Metrics to report on. [optional] # noqa: E501 dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 - report_type (str): Type of report, if no Dimensions / Metrics are provided fall back to summary reportType. [optional] # noqa: E501 timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 campaign_type (str): Filter the type of campaign to report on. [optional] # noqa: E501 + sales_channel (str): Filter on the channel of sales. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_request.py index c2d17030..f05a4b27 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py index 1b499984..b5c5d9ca 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/campaign_report_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_category.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py similarity index 98% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_category.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py index c2dd99a3..da983423 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retailer_category.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,7 +30,7 @@ -class RetailerCategory(ModelNormal): +class Category(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -105,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """RetailerCategory - a model defined in OpenAPI + """Category - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """RetailerCategory - a model defined in OpenAPI + """Category - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category202204.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category202204.py index da3d3428..7cffa4c5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category202204.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/category202204.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py new file mode 100644 index 00000000..6982c13f --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/change_dates_of_balance_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance + globals()['ResourceOfChangeDatesOfBalance'] = ResourceOfChangeDatesOfBalance + + +class ChangeDatesOfBalanceRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfChangeDatesOfBalance,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ChangeDatesOfBalanceRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfChangeDatesOfBalance): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ChangeDatesOfBalanceRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfChangeDatesOfBalance): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_option.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_option.py index c188891e..8ce3a9b9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_option.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_option.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_specification.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_specification.py index 15ff9e3d..6e9884b6 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_specification.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_value.py index dbe86536..e4034eb2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_value.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/choice_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/color_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/color_variable_value.py index 69c20f07..842a4969 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/color_variable_value.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/color_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_error.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_error.py index db951d19..e40ccbf9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_error.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_error.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_problem.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_problem.py index 4a8970e1..a99442b6 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_problem.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_problem.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_status_code_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_status_code_response.py index 9065504f..376d1c36 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_status_code_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_status_code_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_warning.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_warning.py index 75eb4fb3..7a9d979d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_warning.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/common_warning.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py index e26900c9..2386b1c7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py index 5e501c03..24a952ef 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/bad_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_request.py similarity index 94% rename from sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/bad_request.py rename to sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_request.py index ac60d4ba..ba914720 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/bad_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_balance_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,11 +30,11 @@ def lazy_import(): - from criteo_api_retailmedia_preview.model.error import Error - globals()['Error'] = Error + from criteo_api_retailmedia_preview.model.resource_of_create_balance import ResourceOfCreateBalance + globals()['ResourceOfCreateBalance'] = ResourceOfCreateBalance -class BadRequest(ModelNormal): +class CreateBalanceRequest(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'errors': ([Error],), # noqa: E501 + 'data': (ResourceOfCreateBalance,), # noqa: E501 } @cached_property @@ -96,7 +96,7 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'data': 'data', # noqa: E501 } read_only_vars = { @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """BadRequest - a model defined in OpenAPI + """CreateBalanceRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -140,7 +140,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - errors ([Error]): The errors. [optional] # noqa: E501 + data (ResourceOfCreateBalance): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -193,7 +193,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """BadRequest - a model defined in OpenAPI + """CreateBalanceRequest - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -226,7 +226,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - errors ([Error]): The errors. [optional] # noqa: E501 + data (ResourceOfCreateBalance): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py index 21fcaa0f..2a5cda48 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py index 808c0bd4..a60962e4 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -98,10 +98,10 @@ def openapi_types(): return { 'user_type': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 } @cached_property @@ -131,7 +131,7 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -165,8 +165,8 @@ def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -228,7 +228,7 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Args: user_type (str): Type of the user lookback_window (str): Length of lookback window - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -262,8 +262,8 @@ def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwarg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - brand_ids ([str]): The brands to target. [optional] # noqa: E501 - category_ids ([str]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py index bd38d9a8..db7f221d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_body.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_request.py index 9f69909e..cd178a00 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py index 93d1ddd5..dfbefe64 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py index f5274035..5a5365f7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py index 66c11a6d..abb1657e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -87,7 +87,7 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'name': (str,), # noqa: E501 } @@ -114,7 +114,7 @@ def _from_openapi_data(cls, retailer_id, user_behavior_details, name, *args, **k """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience user_behavior_details (UserBehaviorDetailsV2): name (str): Name of the audience. @@ -207,7 +207,7 @@ def __init__(self, retailer_id, user_behavior_details, name, *args, **kwargs): """CreateRetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience user_behavior_details (UserBehaviorDetailsV2): name (str): Name of the audience. diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py index 9eb4534d..68c6d821 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py index ac385c02..69436d00 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_retail_media_audience_v2_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py index 72bd8be8..5dcd57c2 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -99,8 +99,8 @@ def openapi_types(): return { 'user_action': (str,), # noqa: E501 'lookback_window': (str,), # noqa: E501 - 'category_ids': ([str],), # noqa: E501 - 'brand_ids': ([str],), # noqa: E501 + 'category_ids': ([int],), # noqa: E501 + 'brand_ids': ([int],), # noqa: E501 'min_price': (float,), # noqa: E501 'max_price': (float,), # noqa: E501 } @@ -166,8 +166,8 @@ def _from_openapi_data(cls, user_action, lookback_window, *args, **kwargs): # n Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - category_ids ([str]): The categories to target. [optional] # noqa: E501 - brand_ids ([str]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 min_price (float): The min price of targeted skus.. [optional] # noqa: E501 max_price (float): The max price of targeted skus.. [optional] # noqa: E501 """ @@ -261,8 +261,8 @@ def __init__(self, user_action, lookback_window, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - category_ids ([str]): The categories to target. [optional] # noqa: E501 - brand_ids ([str]): The brands to target. [optional] # noqa: E501 + category_ids ([int]): The categories to target. [optional] # noqa: E501 + brand_ids ([int]): The brands to target. [optional] # noqa: E501 min_price (float): The min price of targeted skus.. [optional] # noqa: E501 max_price (float): The max price of targeted skus.. [optional] # noqa: E501 """ diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py index 4fa485a1..0f11abad 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_list_response.py index 62fab7fa..3967aae9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_response.py index be374889..5980f4ce 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative202210_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_create_model202207.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_create_model202207.py index 9af68919..29e40272 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_create_model202207.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_create_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_update_model202207.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_update_model202207.py index 24aa6dca..8c48fdea 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_update_model202207.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/creative_update_model202207.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/customer_list_details.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/customer_list_details.py index fb18fba1..d223b05e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/customer_list_details.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/customer_list_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_column.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_column.py index 579ec69d..4d4a2a1b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_column.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_column.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_meta_data.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_meta_data.py index 0b95e9ba..3b7adb62 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_meta_data.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/export_report_meta_data.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_account.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_account.py index ecc865c0..2c6f77c7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_account.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py new file mode 100644 index 00000000..4e702cd4 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_add_funds_to_balance.py @@ -0,0 +1,279 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class ExternalAddFundsToBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'delta_amount': (float,), # noqa: E501 + 'memo': (str,), # noqa: E501 + 'po_number': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'delta_amount': 'deltaAmount', # noqa: E501 + 'memo': 'memo', # noqa: E501 + 'po_number': 'poNumber', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, delta_amount, memo, *args, **kwargs): # noqa: E501 + """ExternalAddFundsToBalance - a model defined in OpenAPI + + Args: + delta_amount (float): Amount of billable funds to be added / decreased allotted to the balance. + memo (str): Memo + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + po_number (str): Purchase Order number.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.delta_amount = delta_amount + self.memo = memo + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, delta_amount, memo, *args, **kwargs): # noqa: E501 + """ExternalAddFundsToBalance - a model defined in OpenAPI + + Args: + delta_amount (float): Amount of billable funds to be added / decreased allotted to the balance. + memo (str): Memo + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + po_number (str): Purchase Order number.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.delta_amount = delta_amount + self.memo = memo + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py new file mode 100644 index 00000000..5e645470 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_balance_response.py @@ -0,0 +1,362 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class ExternalBalanceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'UNKNOWN': "unknown", + 'SCHEDULED': "scheduled", + 'ACTIVE': "active", + 'ENDED': "ended", + }, + ('balance_type',): { + 'UNKNOWN': "unknown", + 'CAPPED': "capped", + 'UNCAPPED': "uncapped", + }, + ('spend_type',): { + 'ONSITE': "Onsite", + 'OFFSITE': "Offsite", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'po_number': (str,), # noqa: E501 + 'memo': (str,), # noqa: E501 + 'deposited': (float, none_type,), # noqa: E501 + 'spent': (float, none_type,), # noqa: E501 + 'remaining': (float, none_type,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'created_at': (datetime,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'balance_type': (str,), # noqa: E501 + 'sales_force_id': (str,), # noqa: E501 + 'spend_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'po_number': 'poNumber', # noqa: E501 + 'memo': 'memo', # noqa: E501 + 'deposited': 'deposited', # noqa: E501 + 'spent': 'spent', # noqa: E501 + 'remaining': 'remaining', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'status': 'status', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'updated_at': 'updatedAt', # noqa: E501 + 'balance_type': 'balanceType', # noqa: E501 + 'sales_force_id': 'salesForceId', # noqa: E501 + 'spend_type': 'spendType', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, po_number, memo, deposited, spent, remaining, start_date, end_date, status, created_at, updated_at, balance_type, sales_force_id, spend_type, *args, **kwargs): # noqa: E501 + """ExternalBalanceResponse - a model defined in OpenAPI + + Args: + name (str): Name of the balance. + po_number (str): Purchase Order number. + memo (str): Memo + deposited (float, none_type): Amount of billable funds allotted to the balance. + spent (float, none_type): + remaining (float, none_type): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + created_at (datetime): + updated_at (datetime): + balance_type (str): Type of the balance + sales_force_id (str): SalesForceId the balance is linked to. + spend_type (str): Spend Type of the balance. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.po_number = po_number + self.memo = memo + self.deposited = deposited + self.spent = spent + self.remaining = remaining + self.start_date = start_date + self.end_date = end_date + self.status = status + self.created_at = created_at + self.updated_at = updated_at + self.balance_type = balance_type + self.sales_force_id = sales_force_id + self.spend_type = spend_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, po_number, memo, deposited, spent, remaining, start_date, end_date, status, created_at, updated_at, balance_type, sales_force_id, spend_type, *args, **kwargs): # noqa: E501 + """ExternalBalanceResponse - a model defined in OpenAPI + + Args: + name (str): Name of the balance. + po_number (str): Purchase Order number. + memo (str): Memo + deposited (float, none_type): Amount of billable funds allotted to the balance. + spent (float, none_type): + remaining (float, none_type): + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + status (str): + created_at (datetime): + updated_at (datetime): + balance_type (str): Type of the balance + sales_force_id (str): SalesForceId the balance is linked to. + spend_type (str): Spend Type of the balance. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.po_number = po_number + self.memo = memo + self.deposited = deposited + self.spent = spent + self.remaining = remaining + self.start_date = start_date + self.end_date = end_date + self.status = status + self.created_at = created_at + self.updated_at = updated_at + self.balance_type = balance_type + self.sales_force_id = sales_force_id + self.spend_type = spend_type + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_brand.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_brand.py index 4aa84fdb..b8950dab 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_brand.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_request_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_request_preview.py index 65bcdec7..25cf8f74 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_request_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_request_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_status.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_status.py index 464e306b..0414d2d4 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_status.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py new file mode 100644 index 00000000..93364b63 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_change_dates_of_balance.py @@ -0,0 +1,281 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class ExternalChangeDatesOfBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'memo': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'memo': 'memo', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, start_date, end_date, memo, *args, **kwargs): # noqa: E501 + """ExternalChangeDatesOfBalance - a model defined in OpenAPI + + Args: + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + memo (str): Memo + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + self.memo = memo + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, start_date, end_date, memo, *args, **kwargs): # noqa: E501 + """ExternalChangeDatesOfBalance - a model defined in OpenAPI + + Args: + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + memo (str): Memo + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.start_date = start_date + self.end_date = end_date + self.memo = memo + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py new file mode 100644 index 00000000..b5cdd4ae --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_create_balance.py @@ -0,0 +1,313 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class ExternalCreateBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('spend_type',): { + 'ONSITE': "Onsite", + 'OFFSITE': "Offsite", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'deposited': (float, none_type,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'spend_type': (str,), # noqa: E501 + 'memo': (str,), # noqa: E501 + 'sales_force_id': (str,), # noqa: E501 + 'po_number': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'deposited': 'deposited', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'spend_type': 'spendType', # noqa: E501 + 'memo': 'memo', # noqa: E501 + 'sales_force_id': 'salesForceId', # noqa: E501 + 'po_number': 'poNumber', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, deposited, start_date, end_date, spend_type, memo, sales_force_id, *args, **kwargs): # noqa: E501 + """ExternalCreateBalance - a model defined in OpenAPI + + Args: + name (str): Name of the balance. + deposited (float, none_type): Amount of billable funds allotted to the balance. + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + spend_type (str): Type of the balance spend. + memo (str): Memo + sales_force_id (str): SalesForceId the balance is linked to. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + po_number (str): Purchase Order number.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.deposited = deposited + self.start_date = start_date + self.end_date = end_date + self.spend_type = spend_type + self.memo = memo + self.sales_force_id = sales_force_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, deposited, start_date, end_date, spend_type, memo, sales_force_id, *args, **kwargs): # noqa: E501 + """ExternalCreateBalance - a model defined in OpenAPI + + Args: + name (str): Name of the balance. + deposited (float, none_type): Amount of billable funds allotted to the balance. + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD + spend_type (str): Type of the balance spend. + memo (str): Memo + sales_force_id (str): SalesForceId the balance is linked to. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + po_number (str): Purchase Order number.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + self.deposited = deposited + self.start_date = start_date + self.end_date = end_date + self.spend_type = spend_type + self.memo = memo + self.sales_force_id = sales_force_id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_request.py index fd69c18f..ae5b6b7b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_response.py index 0edbb782..a55c782a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_product_button_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_retailer.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_retailer.py index 97912a35..2cf47645 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_retailer.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py new file mode 100644 index 00000000..36ba0fea --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/external_update_balance_model.py @@ -0,0 +1,283 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class ExternalUpdateBalanceModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'po_number': (str,), # noqa: E501 + 'sales_force_id': (str,), # noqa: E501 + 'start_date': (date,), # noqa: E501 + 'end_date': (date,), # noqa: E501 + 'memo': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'po_number': 'poNumber', # noqa: E501 + 'sales_force_id': 'salesForceId', # noqa: E501 + 'start_date': 'startDate', # noqa: E501 + 'end_date': 'endDate', # noqa: E501 + 'memo': 'memo', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ExternalUpdateBalanceModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the balance.. [optional] # noqa: E501 + po_number (str): Purchase Order number.. [optional] # noqa: E501 + sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501 + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + memo (str): Memo. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ExternalUpdateBalanceModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): Name of the balance.. [optional] # noqa: E501 + po_number (str): Purchase Order number.. [optional] # noqa: E501 + sales_force_id (str): SalesForceId the balance is linked to.. [optional] # noqa: E501 + start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD. [optional] # noqa: E501 + memo (str): Memo. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variable_value.py index 2f92c131..175dc47f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variable_value.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variables_specification.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variables_specification.py index e614bd76..0b097531 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variables_specification.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/files_variables_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py index dd5b9695..b747e8d5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/hyperlink_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/hyperlink_variable_value.py index 6329095a..d407b12a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/hyperlink_variable_value.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/hyperlink_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py index 3c8196b6..5d262f11 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_brand_and_brand.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_brand_and_brand.py index 96db55f6..29d7c083 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_brand_and_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py index f625f5d1..ae7c958f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py index 5f805731..a1fc608d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py index 7093130f..1ef919f6 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py index 86b0c38f..f8ce2c98 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py index 3be32f21..20528cf1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py index a56d9481..8841125e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py index fda5f2e8..0e1bf7dc 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_request_of_catalog_request_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_request_of_catalog_request_preview.py index b83b5da6..a7843aca 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_request_of_catalog_request_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_request_of_catalog_request_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py index 37bd491c..5c44007d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers.py index b707dc01..336581b6 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/json_api_single_response_of_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers.py index e673f80b..a97fa2df 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_request.py index 8e24c36f..4676de8b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_response.py index 353065ac..70c4206f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_bid_multipliers_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py index 3ea64784..4ac8d6e5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -55,6 +55,13 @@ class LineItemReport(ModelNormal): """ allowed_values = { + ('report_type',): { + 'SUMMARY': "summary", + 'PAGETYPE': "pageType", + 'KEYWORD': "keyword", + 'PRODUCTCATEGORY': "productCategory", + 'PRODUCT': "product", + }, ('metrics',): { 'IMPRESSIONS': "impressions", 'CLICKS': "clicks", @@ -64,6 +71,7 @@ class LineItemReport(ModelNormal): 'ATTRIBUTEDORDERS': "attributedOrders", 'CTR': "ctr", 'CPC': "cpc", + 'CPO': "cpo", 'ROAS': "roas", 'ASSISTEDUNITS': "assistedUnits", 'ASSISTEDSALES': "assistedSales", @@ -84,19 +92,15 @@ class LineItemReport(ModelNormal): 'LINEITEMNAME': "lineItemName", 'RETAILERID': "retailerId", 'RETAILERNAME': "retailerName", - }, - ('report_type',): { - 'SUMMARY': "summary", - 'PAGETYPE': "pageType", 'KEYWORD': "keyword", - 'PRODUCTCATEGORY': "productCategory", - 'PRODUCT': "product", - 'ATTRIBUTEDTRANSACTIONS': "attributedTransactions", + 'PAGETYPENAME': "pageTypeName", + 'SALESCHANNEL': "salesChannel", }, ('click_attribution_window',): { '7D': "7D", '14D': "14D", '30D': "30D", + 'NONE': "none", }, ('view_attribution_window',): { '1D': "1D", @@ -109,6 +113,10 @@ class LineItemReport(ModelNormal): 'SPONSOREDPRODUCTS': "sponsoredProducts", 'ONSITEDISPLAYS': "onSiteDisplays", }, + ('sales_channel',): { + 'OFFLINE': "offline", + 'ONLINE': "online", + }, } validations = { @@ -138,14 +146,16 @@ def openapi_types(): 'account_id': (str,), # noqa: E501 'start_date': (datetime,), # noqa: E501 'end_date': (datetime,), # noqa: E501 + 'report_type': (str,), # noqa: E501 'line_item_ids': ([str],), # noqa: E501 + 'campaign_ids': ([str],), # noqa: E501 'metrics': ([str],), # noqa: E501 'dimensions': ([str],), # noqa: E501 - 'report_type': (str,), # noqa: E501 'timezone': (str,), # noqa: E501 'click_attribution_window': (str,), # noqa: E501 'view_attribution_window': (str,), # noqa: E501 'campaign_type': (str,), # noqa: E501 + 'sales_channel': (str,), # noqa: E501 } @cached_property @@ -157,14 +167,16 @@ def discriminator(): 'account_id': 'accountId', # noqa: E501 'start_date': 'startDate', # noqa: E501 'end_date': 'endDate', # noqa: E501 + 'report_type': 'reportType', # noqa: E501 'line_item_ids': 'lineItemIds', # noqa: E501 + 'campaign_ids': 'campaignIds', # noqa: E501 'metrics': 'metrics', # noqa: E501 'dimensions': 'dimensions', # noqa: E501 - 'report_type': 'reportType', # noqa: E501 'timezone': 'timezone', # noqa: E501 'click_attribution_window': 'clickAttributionWindow', # noqa: E501 'view_attribution_window': 'viewAttributionWindow', # noqa: E501 'campaign_type': 'campaignType', # noqa: E501 + 'sales_channel': 'salesChannel', # noqa: E501 } read_only_vars = { @@ -178,9 +190,9 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): """LineItemReport - a model defined in OpenAPI Args: - account_id (str): Account id to report on - start_date (datetime): Start date - end_date (datetime): End Date + account_id (str): + start_date (datetime): + end_date (datetime): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -213,14 +225,16 @@ def _from_openapi_data(cls, account_id, start_date, end_date, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - line_item_ids ([str]): Line item ids to report on. [optional] # noqa: E501 - metrics ([str]): List of metrics to report on. [optional] # noqa: E501 + report_type (str): [optional] # noqa: E501 + line_item_ids ([str]): [optional] # noqa: E501 + campaign_ids ([str]): [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 - report_type (str): Type of report, if no Dimensions / Metrics are provided fall back to summary reportType. [optional] # noqa: E501 - timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 - click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 - view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 - campaign_type (str): Filter the type of campaign to report on. [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -279,9 +293,9 @@ def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: """LineItemReport - a model defined in OpenAPI Args: - account_id (str): Account id to report on - start_date (datetime): Start date - end_date (datetime): End Date + account_id (str): + start_date (datetime): + end_date (datetime): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -314,14 +328,16 @@ def __init__(self, account_id, start_date, end_date, *args, **kwargs): # noqa: Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - line_item_ids ([str]): Line item ids to report on. [optional] # noqa: E501 - metrics ([str]): List of metrics to report on. [optional] # noqa: E501 + report_type (str): [optional] # noqa: E501 + line_item_ids ([str]): [optional] # noqa: E501 + campaign_ids ([str]): [optional] # noqa: E501 + metrics ([str]): [optional] # noqa: E501 dimensions ([str]): List of dimensions to report on. [optional] # noqa: E501 - report_type (str): Type of report, if no Dimensions / Metrics are provided fall back to summary reportType. [optional] # noqa: E501 - timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501 - click_attribution_window (str): Click Attribution Window. [optional] if omitted the server will use the default value of "7D" # noqa: E501 - view_attribution_window (str): View Attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501 - campaign_type (str): Filter the type of campaign to report on. [optional] # noqa: E501 + timezone (str): [optional] # noqa: E501 + click_attribution_window (str): [optional] # noqa: E501 + view_attribution_window (str): [optional] # noqa: E501 + campaign_type (str): [optional] # noqa: E501 + sales_channel (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_request.py index 8696e5dc..6f74ae85 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_resource.py index fd27e6ae..bf924d6b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/line_item_report_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_metadata.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_metadata.py index 78c25fa2..14bcff4a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_metadata.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_metadata.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_type_environment.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_type_environment.py index 6584e02e..c327c36c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_type_environment.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/page_type_environment.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview.py index b7f2994c..504c10a7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview_list_response.py index 3bc8ccdf..2a800202 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/placement_preview_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/problem_details.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/problem_details.py index bde27fe1..b7bb314e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/problem_details.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_request.py index 421265a1..cf020a5b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_response.py index b34c63cb..d1dd3764 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_request.py index 1c2860f9..52afb632 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_response.py index 1fd3fa03..717351cd 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/product_button_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_data_response_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_data_response_resource.py index 8ba0ca6d..fbb04b63 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_data_response_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_data_response_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -137,7 +137,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str): [optional] # noqa: E501 - attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]): Data response format. [optional] # noqa: E501 + attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -224,7 +224,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) type (str): [optional] # noqa: E501 - attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]): Data response format. [optional] # noqa: E501 + attributes ([[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_outcome.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_outcome.py index a82e2ece..6f8cdb80 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_outcome.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_outcome.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_response.py index 466180ca..b4218bcf 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/report_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py new file mode 100644 index 00000000..9be89213 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.external_add_funds_to_balance import ExternalAddFundsToBalance + globals()['ExternalAddFundsToBalance'] = ExternalAddFundsToBalance + + +class ResourceOfAddFundsToBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (ExternalAddFundsToBalance,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfAddFundsToBalance - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalAddFundsToBalance): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfAddFundsToBalance - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalAddFundsToBalance): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py new file mode 100644 index 00000000..bbe440f5 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_balance_response.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.external_balance_response import ExternalBalanceResponse + globals()['ExternalBalanceResponse'] = ExternalBalanceResponse + + +class ResourceOfBalanceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (ExternalBalanceResponse,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfBalanceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalBalanceResponse): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfBalanceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalBalanceResponse): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_brand_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_brand_preview.py index 598fe880..7b773dd5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_brand_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_brand_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py new file mode 100644 index 00000000..cfbe9fd2 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance + globals()['ExternalChangeDatesOfBalance'] = ExternalChangeDatesOfBalance + + +class ResourceOfChangeDatesOfBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (ExternalChangeDatesOfBalance,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfChangeDatesOfBalance - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalChangeDatesOfBalance): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfChangeDatesOfBalance - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalChangeDatesOfBalance): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py index e0e2eb5e..833cea91 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_cpc_rate_card_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py new file mode 100644 index 00000000..3fd0967e --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_create_balance.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.external_create_balance import ExternalCreateBalance + globals()['ExternalCreateBalance'] = ExternalCreateBalance + + +class ResourceOfCreateBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (ExternalCreateBalance,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfCreateBalance - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalCreateBalance): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfCreateBalance - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalCreateBalance): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_creative202210.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_creative202210.py index c0bb949e..10128fc3 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_creative202210.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_creative202210.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers.py index 0db86477..7e543020 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_placement_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_placement_preview.py index 02edf231..7717bde3 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_placement_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_placement_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_request.py index 60b9e429..7454191b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_response.py index df5f47e6..a2c2901f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_product_button_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_seller_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_seller_preview.py index 9c7979c4..42baa89b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_seller_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_seller_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py index 2d863721..b85a9390 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py index 629d2899..c8fc6322 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py index 2dabb692..2e50d375 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py index f3f00db1..90fab188 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py index 77be3aab..5e0db23c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py index a30b2117..76994ed8 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_template.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_template.py index d3f2776f..9dac07b7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_template.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py new file mode 100644 index 00000000..eca04273 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/resource_of_update_balance_model.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.external_update_balance_model import ExternalUpdateBalanceModel + globals()['ExternalUpdateBalanceModel'] = ExternalUpdateBalanceModel + + +class ResourceOfUpdateBalanceModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (ExternalUpdateBalanceModel,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ResourceOfUpdateBalanceModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalUpdateBalanceModel): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ResourceOfUpdateBalanceModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (ExternalUpdateBalanceModel): [optional] # noqa: E501 + id (str): Id of the entity. [optional] # noqa: E501 + type (str): Canonical type name of the entity. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience.py index 1fb9d741..4543f479 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py index 85699023..16fbd546 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2.py index cfea2fa5..3cb1419f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py index 06d18c52..d691d515 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -89,7 +89,7 @@ def openapi_types(): """ lazy_import() return { - 'retailer_id': (str,), # noqa: E501 + 'retailer_id': (int,), # noqa: E501 'name': (str,), # noqa: E501 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501 'customer_list_details': (CustomerListDetails,), # noqa: E501 @@ -118,7 +118,7 @@ def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501 """RetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: @@ -211,7 +211,7 @@ def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501 """RetailMediaAudienceV2Attributes - a model defined in OpenAPI Args: - retailer_id (str): ID of the retailer associated with this audience + retailer_id (int): ID of the retailer associated with this audience name (str): Name of the audience. Keyword Args: diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py index 23f15037..5a43e2db 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py index aabb4aba..170f466d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_audience_v2_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keyword_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keyword_model.py index 5ddd40de..6b1bef0b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keyword_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keyword_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model.py index ca104b7d..bd15d67f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_request.py index b4bd153a..e9a66fde 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_resource.py index b42aa075..e7b0256b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_add_remove_keywords_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_input_keywords_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_input_keywords_model.py index 392df4f3..046395a6 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_input_keywords_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_input_keywords_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keyword_data_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keyword_data_model.py index bc6e7b8c..7ca2989c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keyword_data_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keyword_data_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model.py index 28121b3d..07a6b9a8 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_resource.py index 53e6b74a..7276137a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py index 65f904e1..b2bca736 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_keywords_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_problem_details.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_problem_details.py index bb3f773d..59d7abdd 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_problem_details.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_problem_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model.py index be51f642..859ba76c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py index ea72e397..e770d201 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py index 0e591e8f..313fff45 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_proposal_status_model_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py index 08234e5c..10a0c35a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_resource_outcome.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bid_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bid_model.py index 4f821e5b..802ba16e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bid_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bid_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model.py index 9e41fe50..703ce0a0 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_request.py index fc777ec0..0c63c8a7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_resource.py index 553c62b9..9435da12 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_resource.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/retail_media_externalv1_set_bids_model_resource.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/section.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/section.py index 0c404fdf..8af2a67f 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/section.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/section.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview.py index e856a148..9c7816b5 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview_response.py index 525017e9..9f73146c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/seller_preview_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview.py index be8b626f..3838c2c7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py index 7a2acefd..6ef59cb1 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview.py index 77ff7cdb..3eca86c7 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview_request.py index 267bc2a1..8d31305b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_preview_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py index 4c7b7c62..1e1e091a 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview_request.py index d7934d26..09f1c95e 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_preview_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview.py index debc0667..4373b8a9 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview_request.py index e25915df..b536ca6b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview_request.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview_request.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview.py index 16525ff2..293dad88 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -99,7 +99,7 @@ def openapi_types(): return { 'global_brand_id': (str,), # noqa: E501 'global_brand_name': (str,), # noqa: E501 - 'price': (float,), # noqa: E501 + 'price': (float, none_type,), # noqa: E501 'is_in_stock': (bool,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 'name': (str,), # noqa: E501 @@ -148,7 +148,7 @@ def _from_openapi_data(cls, global_brand_id, global_brand_name, price, is_in_sto Args: global_brand_id (str): The global brand id associated to the product. global_brand_name (str): The name of the global brand. - price (float): The price of the product on the retailer site. + price (float, none_type): The price of the product on the retailer site. Can be omitted in certain circumstances is_in_stock (bool): An indication of if the retailer currently has the product in stock. updated_at (datetime): The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string. @@ -254,7 +254,7 @@ def __init__(self, global_brand_id, global_brand_name, price, is_in_stock, updat Args: global_brand_id (str): The global brand id associated to the product. global_brand_name (str): The name of the global brand. - price (float): The price of the product on the retailer site. + price (float, none_type): The price of the product on the retailer site. Can be omitted in certain circumstances is_in_stock (bool): An indication of if the retailer currently has the product in stock. updated_at (datetime): The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string. diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py index 3b5b8b62..f16967f6 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2.py index ddd89bb6..496e8e37 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech @@ -30,12 +30,10 @@ def lazy_import(): - from criteo_api_retailmedia_preview.model.global_brand import GlobalBrand - from criteo_api_retailmedia_preview.model.retailer_brand import RetailerBrand - from criteo_api_retailmedia_preview.model.retailer_category import RetailerCategory - globals()['GlobalBrand'] = GlobalBrand - globals()['RetailerBrand'] = RetailerBrand - globals()['RetailerCategory'] = RetailerCategory + from criteo_api_retailmedia_preview.model.brand import Brand + from criteo_api_retailmedia_preview.model.category import Category + globals()['Brand'] = Brand + globals()['Category'] = Category class SkuSlimDataV2(ModelNormal): @@ -99,15 +97,13 @@ def openapi_types(): """ lazy_import() return { - 'price': (float,), # noqa: E501 + 'price': (float, none_type,), # noqa: E501 'is_in_stock': (bool,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 'name': (str,), # noqa: E501 'description': (str,), # noqa: E501 - 'retailer_category': (RetailerCategory,), # noqa: E501 - 'global_category_id': (str,), # noqa: E501 - 'global_brand': (GlobalBrand,), # noqa: E501 - 'retailer_brand': (RetailerBrand,), # noqa: E501 + 'category': (Category,), # noqa: E501 + 'brand': (Brand,), # noqa: E501 'gtin': (str,), # noqa: E501 'mpn': (str,), # noqa: E501 'image_url': (str,), # noqa: E501 @@ -124,10 +120,8 @@ def discriminator(): 'updated_at': 'updatedAt', # noqa: E501 'name': 'name', # noqa: E501 'description': 'description', # noqa: E501 - 'retailer_category': 'retailerCategory', # noqa: E501 - 'global_category_id': 'globalCategoryId', # noqa: E501 - 'global_brand': 'globalBrand', # noqa: E501 - 'retailer_brand': 'retailerBrand', # noqa: E501 + 'category': 'category', # noqa: E501 + 'brand': 'brand', # noqa: E501 'gtin': 'gtin', # noqa: E501 'mpn': 'mpn', # noqa: E501 'image_url': 'imageUrl', # noqa: E501 @@ -144,7 +138,7 @@ def _from_openapi_data(cls, price, is_in_stock, updated_at, *args, **kwargs): # """SkuSlimDataV2 - a model defined in OpenAPI Args: - price (float): The price of the product on the retailer site. + price (float, none_type): The price of the product on the retailer site. Can be omitted in certain circumstances is_in_stock (bool): An indication of if the retailer currently has the product in stock. updated_at (datetime): The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string. @@ -181,10 +175,8 @@ def _from_openapi_data(cls, price, is_in_stock, updated_at, *args, **kwargs): # _visited_composed_classes = (Animal,) name (str): A short product name.. [optional] # noqa: E501 description (str): A short description of the product.. [optional] # noqa: E501 - retailer_category (RetailerCategory): [optional] # noqa: E501 - global_category_id (str): The global category Id.. [optional] # noqa: E501 - global_brand (GlobalBrand): [optional] # noqa: E501 - retailer_brand (RetailerBrand): [optional] # noqa: E501 + category (Category): [optional] # noqa: E501 + brand (Brand): [optional] # noqa: E501 gtin (str): A GTIN identifier for the product if available. Covers variations such as EANs and UPCs.. [optional] # noqa: E501 mpn (str): The MPN for the product if available.. [optional] # noqa: E501 image_url (str): An http image resource provided by the retailer.. [optional] # noqa: E501 @@ -246,7 +238,7 @@ def __init__(self, price, is_in_stock, updated_at, *args, **kwargs): # noqa: E5 """SkuSlimDataV2 - a model defined in OpenAPI Args: - price (float): The price of the product on the retailer site. + price (float, none_type): The price of the product on the retailer site. Can be omitted in certain circumstances is_in_stock (bool): An indication of if the retailer currently has the product in stock. updated_at (datetime): The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string. @@ -283,10 +275,8 @@ def __init__(self, price, is_in_stock, updated_at, *args, **kwargs): # noqa: E5 _visited_composed_classes = (Animal,) name (str): A short product name.. [optional] # noqa: E501 description (str): A short description of the product.. [optional] # noqa: E501 - retailer_category (RetailerCategory): [optional] # noqa: E501 - global_category_id (str): The global category Id.. [optional] # noqa: E501 - global_brand (GlobalBrand): [optional] # noqa: E501 - retailer_brand (RetailerBrand): [optional] # noqa: E501 + category (Category): [optional] # noqa: E501 + brand (Brand): [optional] # noqa: E501 gtin (str): A GTIN identifier for the product if available. Covers variations such as EANs and UPCs.. [optional] # noqa: E501 mpn (str): The MPN for the product if available.. [optional] # noqa: E501 image_url (str): An http image resource provided by the retailer.. [optional] # noqa: E501 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py index 7ed4d15f..693985ce 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response.py new file mode 100644 index 00000000..07c1efed --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response.py @@ -0,0 +1,297 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + + +class StatusResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('status',): { + 'PENDING': "pending", + 'SUCCESS': "success", + 'FAILURE': "failure", + 'EXPIRED': "expired", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'status': (str,), # noqa: E501 + 'row_count': (int,), # noqa: E501 + 'file_size_bytes': (int,), # noqa: E501 + 'md5_check_sum': (str,), # noqa: E501 + 'created_at': (str,), # noqa: E501 + 'expires_at': (str,), # noqa: E501 + 'message': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status': 'status', # noqa: E501 + 'row_count': 'rowCount', # noqa: E501 + 'file_size_bytes': 'fileSizeBytes', # noqa: E501 + 'md5_check_sum': 'md5CheckSum', # noqa: E501 + 'created_at': 'createdAt', # noqa: E501 + 'expires_at': 'expiresAt', # noqa: E501 + 'message': 'message', # noqa: E501 + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StatusResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + row_count (int): [optional] # noqa: E501 + file_size_bytes (int): [optional] # noqa: E501 + md5_check_sum (str): [optional] # noqa: E501 + created_at (str): [optional] # noqa: E501 + expires_at (str): [optional] # noqa: E501 + message (str): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StatusResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + status (str): [optional] # noqa: E501 + row_count (int): [optional] # noqa: E501 + file_size_bytes (int): [optional] # noqa: E501 + md5_check_sum (str): [optional] # noqa: E501 + created_at (str): [optional] # noqa: E501 + expires_at (str): [optional] # noqa: E501 + message (str): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response_resource.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response_resource.py new file mode 100644 index 00000000..020f1aa1 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/status_response_resource.py @@ -0,0 +1,277 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.status_response import StatusResponse + globals()['StatusResponse'] = StatusResponse + + +class StatusResponseResource(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'attributes': (StatusResponse,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'attributes': 'attributes', # noqa: E501 + 'id': 'id', # noqa: E501 + 'type': 'type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """StatusResponseResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (StatusResponse): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """StatusResponseResource - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + attributes (StatusResponse): [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + type (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template.py index 2a1036e9..55daa20d 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_list_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_list_response.py index 4eccdcc7..b68dae49 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_list_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_list_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_response.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_response.py index 4e7884bd..73d7d7c4 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_response.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_response.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable.py index 84d43ba6..27f3280b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable_value.py index 8fc59ea0..59e92f0c 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable_value.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/template_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_specification.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_specification.py index d2cff1f5..4f44f4cf 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_specification.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_specification.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_value.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_value.py index 76b4dee2..e763be3b 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_value.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/text_variable_value.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py new file mode 100644 index 00000000..c5c841b0 --- /dev/null +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/update_balance_model_request.py @@ -0,0 +1,269 @@ +""" + Criteo API + + Criteo API - RetailMedia # noqa: E501 + + The version of the OpenAPI document: Preview + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from criteo_api_retailmedia_preview.exceptions import ApiAttributeError + + +def lazy_import(): + from criteo_api_retailmedia_preview.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel + globals()['ResourceOfUpdateBalanceModel'] = ResourceOfUpdateBalanceModel + + +class UpdateBalanceModelRequest(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'data': (ResourceOfUpdateBalanceModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """UpdateBalanceModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfUpdateBalanceModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """UpdateBalanceModelRequest - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + data (ResourceOfUpdateBalanceModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details.py index 10b74a19..120354b8 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details_v2.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details_v2.py index ed661654..4a4e3c14 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model/user_behavior_details_v2.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py index ae078044..e8a57113 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/model_utils.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py index 6c91b808..08d74e66 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/models/__init__.py @@ -9,16 +9,34 @@ # import sys # sys.setrecursionlimit(n) +from criteo_api_retailmedia_preview.model.add_funds_to_balance_request import AddFundsToBalanceRequest from criteo_api_retailmedia_preview.model.application_summary_model import ApplicationSummaryModel from criteo_api_retailmedia_preview.model.application_summary_model_resource import ApplicationSummaryModelResource from criteo_api_retailmedia_preview.model.application_summary_model_response import ApplicationSummaryModelResponse -from criteo_api_retailmedia_preview.model.bad_request import BadRequest +from criteo_api_retailmedia_preview.model.async_campaign_report import AsyncCampaignReport +from criteo_api_retailmedia_preview.model.async_campaign_report_request import AsyncCampaignReportRequest +from criteo_api_retailmedia_preview.model.async_campaign_report_resource import AsyncCampaignReportResource +from criteo_api_retailmedia_preview.model.async_line_item_report import AsyncLineItemReport +from criteo_api_retailmedia_preview.model.async_line_item_report_request import AsyncLineItemReportRequest +from criteo_api_retailmedia_preview.model.async_line_item_report_resource import AsyncLineItemReportResource +from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse +from criteo_api_retailmedia_preview.model.async_revenue_report import AsyncRevenueReport +from criteo_api_retailmedia_preview.model.async_revenue_report_request import AsyncRevenueReportRequest +from criteo_api_retailmedia_preview.model.async_revenue_report_resource import AsyncRevenueReportResource +from criteo_api_retailmedia_preview.model.attributed_transaction_report_request import AttributedTransactionReportRequest +from criteo_api_retailmedia_preview.model.attributed_transaction_report_resource import AttributedTransactionReportResource +from criteo_api_retailmedia_preview.model.attributed_transactions_report import AttributedTransactionsReport +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from criteo_api_retailmedia_preview.model.balance_response_paged_list_response import BalanceResponsePagedListResponse +from criteo_api_retailmedia_preview.model.brand import Brand from criteo_api_retailmedia_preview.model.brand_preview import BrandPreview from criteo_api_retailmedia_preview.model.brand_preview_list_response import BrandPreviewListResponse from criteo_api_retailmedia_preview.model.campaign_report import CampaignReport from criteo_api_retailmedia_preview.model.campaign_report_request import CampaignReportRequest from criteo_api_retailmedia_preview.model.campaign_report_resource import CampaignReportResource +from criteo_api_retailmedia_preview.model.category import Category from criteo_api_retailmedia_preview.model.category202204 import Category202204 +from criteo_api_retailmedia_preview.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest from criteo_api_retailmedia_preview.model.choice_option import ChoiceOption from criteo_api_retailmedia_preview.model.choice_variable_specification import ChoiceVariableSpecification from criteo_api_retailmedia_preview.model.choice_variable_value import ChoiceVariableValue @@ -29,6 +47,7 @@ from criteo_api_retailmedia_preview.model.common_warning import CommonWarning from criteo_api_retailmedia_preview.model.cpc_rate_card_preview import CpcRateCardPreview from criteo_api_retailmedia_preview.model.cpc_rate_card_preview_response import CpcRateCardPreviewResponse +from criteo_api_retailmedia_preview.model.create_balance_request import CreateBalanceRequest from criteo_api_retailmedia_preview.model.create_retail_media_audience import CreateRetailMediaAudience from criteo_api_retailmedia_preview.model.create_retail_media_audience_attributes import CreateRetailMediaAudienceAttributes from criteo_api_retailmedia_preview.model.create_retail_media_audience_body import CreateRetailMediaAudienceBody @@ -45,22 +64,23 @@ from criteo_api_retailmedia_preview.model.creative_create_model202207 import CreativeCreateModel202207 from criteo_api_retailmedia_preview.model.creative_update_model202207 import CreativeUpdateModel202207 from criteo_api_retailmedia_preview.model.customer_list_details import CustomerListDetails -from criteo_api_retailmedia_preview.model.envelope_report_request import EnvelopeReportRequest -from criteo_api_retailmedia_preview.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_preview.model.error import Error from criteo_api_retailmedia_preview.model.export_report_column import ExportReportColumn from criteo_api_retailmedia_preview.model.export_report_meta_data import ExportReportMetaData from criteo_api_retailmedia_preview.model.external_account import ExternalAccount +from criteo_api_retailmedia_preview.model.external_add_funds_to_balance import ExternalAddFundsToBalance +from criteo_api_retailmedia_preview.model.external_balance_response import ExternalBalanceResponse from criteo_api_retailmedia_preview.model.external_brand import ExternalBrand from criteo_api_retailmedia_preview.model.external_catalog_request_preview import ExternalCatalogRequestPreview from criteo_api_retailmedia_preview.model.external_catalog_status import ExternalCatalogStatus +from criteo_api_retailmedia_preview.model.external_change_dates_of_balance import ExternalChangeDatesOfBalance +from criteo_api_retailmedia_preview.model.external_create_balance import ExternalCreateBalance from criteo_api_retailmedia_preview.model.external_product_button_request import ExternalProductButtonRequest from criteo_api_retailmedia_preview.model.external_product_button_response import ExternalProductButtonResponse from criteo_api_retailmedia_preview.model.external_retailer import ExternalRetailer +from criteo_api_retailmedia_preview.model.external_update_balance_model import ExternalUpdateBalanceModel from criteo_api_retailmedia_preview.model.files_variable_value import FilesVariableValue from criteo_api_retailmedia_preview.model.files_variables_specification import FilesVariablesSpecification from criteo_api_retailmedia_preview.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse -from criteo_api_retailmedia_preview.model.global_brand import GlobalBrand from criteo_api_retailmedia_preview.model.hyperlink_variable_value import HyperlinkVariableValue from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_account_and_account import JsonApiBodyWithIdOfInt64AndAccountAndAccount from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_brand_and_brand import JsonApiBodyWithIdOfInt64AndBrandAndBrand @@ -80,7 +100,6 @@ from criteo_api_retailmedia_preview.model.line_item_report import LineItemReport from criteo_api_retailmedia_preview.model.line_item_report_request import LineItemReportRequest from criteo_api_retailmedia_preview.model.line_item_report_resource import LineItemReportResource -from criteo_api_retailmedia_preview.model.map_string import MapString from criteo_api_retailmedia_preview.model.page_metadata import PageMetadata from criteo_api_retailmedia_preview.model.page_type_environment import PageTypeEnvironment from criteo_api_retailmedia_preview.model.placement_preview import PlacementPreview @@ -92,13 +111,13 @@ from criteo_api_retailmedia_preview.model.product_button_response import ProductButtonResponse from criteo_api_retailmedia_preview.model.report_data_response_resource import ReportDataResponseResource from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome -from criteo_api_retailmedia_preview.model.report_request import ReportRequest -from criteo_api_retailmedia_preview.model.report_request_attributes import ReportRequestAttributes from criteo_api_retailmedia_preview.model.report_response import ReportResponse -from criteo_api_retailmedia_preview.model.report_status import ReportStatus -from criteo_api_retailmedia_preview.model.report_status_attributes import ReportStatusAttributes +from criteo_api_retailmedia_preview.model.resource_of_add_funds_to_balance import ResourceOfAddFundsToBalance +from criteo_api_retailmedia_preview.model.resource_of_balance_response import ResourceOfBalanceResponse from criteo_api_retailmedia_preview.model.resource_of_brand_preview import ResourceOfBrandPreview +from criteo_api_retailmedia_preview.model.resource_of_change_dates_of_balance import ResourceOfChangeDatesOfBalance from criteo_api_retailmedia_preview.model.resource_of_cpc_rate_card_preview import ResourceOfCpcRateCardPreview +from criteo_api_retailmedia_preview.model.resource_of_create_balance import ResourceOfCreateBalance from criteo_api_retailmedia_preview.model.resource_of_creative202210 import ResourceOfCreative202210 from criteo_api_retailmedia_preview.model.resource_of_line_item_bid_multipliers import ResourceOfLineItemBidMultipliers from criteo_api_retailmedia_preview.model.resource_of_placement_preview import ResourceOfPlacementPreview @@ -112,6 +131,7 @@ from criteo_api_retailmedia_preview.model.resource_of_sku_slim_data_preview import ResourceOfSkuSlimDataPreview from criteo_api_retailmedia_preview.model.resource_of_sku_slim_data_v2 import ResourceOfSkuSlimDataV2 from criteo_api_retailmedia_preview.model.resource_of_template import ResourceOfTemplate +from criteo_api_retailmedia_preview.model.resource_of_update_balance_model import ResourceOfUpdateBalanceModel from criteo_api_retailmedia_preview.model.retail_media_audience import RetailMediaAudience from criteo_api_retailmedia_preview.model.retail_media_audience_attributes import RetailMediaAudienceAttributes from criteo_api_retailmedia_preview.model.retail_media_audience_v2 import RetailMediaAudienceV2 @@ -136,8 +156,6 @@ from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model import RetailMediaExternalv1SetBidsModel from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model_request import RetailMediaExternalv1SetBidsModelRequest from criteo_api_retailmedia_preview.model.retail_media_externalv1_set_bids_model_resource import RetailMediaExternalv1SetBidsModelResource -from criteo_api_retailmedia_preview.model.retailer_brand import RetailerBrand -from criteo_api_retailmedia_preview.model.retailer_category import RetailerCategory from criteo_api_retailmedia_preview.model.section import Section from criteo_api_retailmedia_preview.model.seller_preview import SellerPreview from criteo_api_retailmedia_preview.model.seller_preview_response import SellerPreviewResponse @@ -153,6 +171,8 @@ from criteo_api_retailmedia_preview.model.sku_slim_data_preview_list_response import SkuSlimDataPreviewListResponse from criteo_api_retailmedia_preview.model.sku_slim_data_v2 import SkuSlimDataV2 from criteo_api_retailmedia_preview.model.sku_slim_data_v2_list_response import SkuSlimDataV2ListResponse +from criteo_api_retailmedia_preview.model.status_response import StatusResponse +from criteo_api_retailmedia_preview.model.status_response_resource import StatusResponseResource from criteo_api_retailmedia_preview.model.template import Template from criteo_api_retailmedia_preview.model.template_list_response import TemplateListResponse from criteo_api_retailmedia_preview.model.template_response import TemplateResponse @@ -160,5 +180,6 @@ from criteo_api_retailmedia_preview.model.template_variable_value import TemplateVariableValue from criteo_api_retailmedia_preview.model.text_variable_specification import TextVariableSpecification from criteo_api_retailmedia_preview.model.text_variable_value import TextVariableValue +from criteo_api_retailmedia_preview.model.update_balance_model_request import UpdateBalanceModelRequest from criteo_api_retailmedia_preview.model.user_behavior_details import UserBehaviorDetails from criteo_api_retailmedia_preview.model.user_behavior_details_v2 import UserBehaviorDetailsV2 diff --git a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py index 3850b4f8..aefac895 100644 --- a/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py +++ b/sdks/retailmedia_preview/criteo_api_retailmedia_preview/rest.py @@ -1,7 +1,7 @@ """ Criteo API - Criteo publicly exposed API # noqa: E501 + Criteo API - RetailMedia # noqa: E501 The version of the OpenAPI document: Preview Generated by: https://openapi-generator.tech diff --git a/sdks/retailmedia_preview/docs/AddFundsToBalanceRequest.md b/sdks/retailmedia_preview/docs/AddFundsToBalanceRequest.md new file mode 100644 index 00000000..d9b8210c --- /dev/null +++ b/sdks/retailmedia_preview/docs/AddFundsToBalanceRequest.md @@ -0,0 +1,13 @@ +# AddFundsToBalanceRequest + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfAddFundsToBalance**](ResourceOfAddFundsToBalance.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AnalyticsApi.md b/sdks/retailmedia_preview/docs/AnalyticsApi.md index 8ef2a9b2..f33f4736 100644 --- a/sdks/retailmedia_preview/docs/AnalyticsApi.md +++ b/sdks/retailmedia_preview/docs/AnalyticsApi.md @@ -4,20 +4,22 @@ All URIs are relative to *https://api.criteo.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**get_campaign_reports**](AnalyticsApi.md#get_campaign_reports) | **POST** /preview/retail-media/reports/sync/campaigns | -[**get_line_items_reports**](AnalyticsApi.md#get_line_items_reports) | **POST** /preview/retail-media/reports/sync/line-items | -[**get_report_output**](AnalyticsApi.md#get_report_output) | **GET** /preview/retail-media/reports/{reportId}/output | -[**get_report_status**](AnalyticsApi.md#get_report_status) | **GET** /preview/retail-media/reports/{reportId}/status | -[**request_campaign_report**](AnalyticsApi.md#request_campaign_report) | **POST** /preview/retail-media/reports/campaigns | -[**request_line_item_report**](AnalyticsApi.md#request_line_item_report) | **POST** /preview/retail-media/reports/line-items | +[**generate_async_campaign_report**](AnalyticsApi.md#generate_async_campaign_report) | **POST** /preview/retail-media/reports/campaigns | +[**generate_async_line_items_report**](AnalyticsApi.md#generate_async_line_items_report) | **POST** /preview/retail-media/reports/line-items | +[**generate_async_revenue_report**](AnalyticsApi.md#generate_async_revenue_report) | **POST** /preview/retail-media/reports/revenue | +[**generate_attributed_transactions_report**](AnalyticsApi.md#generate_attributed_transactions_report) | **POST** /preview/retail-media/reports/sync/attributed-transactions | +[**generate_campaign_reports**](AnalyticsApi.md#generate_campaign_reports) | **POST** /preview/retail-media/reports/sync/campaigns | +[**generate_line_items_reports**](AnalyticsApi.md#generate_line_items_reports) | **POST** /preview/retail-media/reports/sync/line-items | +[**get_async_export_output**](AnalyticsApi.md#get_async_export_output) | **GET** /preview/retail-media/reports/{reportId}/output | +[**get_async_export_status**](AnalyticsApi.md#get_async_export_status) | **GET** /preview/retail-media/reports/{reportId}/status | -# **get_campaign_reports** -> ReportResponse get_campaign_reports() +# **generate_async_campaign_report** +> AsyncReportResponse generate_async_campaign_report(async_campaign_report_request) -Return a Campaign Report +Return an async Campaign Report ### Example @@ -28,9 +30,9 @@ Return a Campaign Report import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api -from criteo_api_retailmedia_preview.model.report_response import ReportResponse +from criteo_api_retailmedia_preview.model.async_campaign_report_request import AsyncCampaignReportRequest from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome -from criteo_api_retailmedia_preview.model.campaign_report_request import CampaignReportRequest +from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -59,38 +61,39 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - campaign_report_request = CampaignReportRequest( - data=CampaignReportResource( + async_campaign_report_request = AsyncCampaignReportRequest( + data=AsyncCampaignReportResource( type="type_example", - attributes=CampaignReport( - campaign_ids=[ - "campaign_ids_example", - ], + attributes=AsyncCampaignReport( metrics=[ "impressions", ], dimensions=[ "date", ], - account_id="account_id_example", - report_type="summary", + click_attribution_window="7D", + view_attribution_window="1D", start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - timezone="UTC", - click_attribution_window="7D", - view_attribution_window="none", + timezone="timezone_example", campaign_type="sponsoredProducts", + sales_channel="offline", + format="json", + report_type="summary", + ids=[ + "ids_example", + ], + id="id_example", ), ), - ) # CampaignReportRequest | (optional) + ) # AsyncCampaignReportRequest | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_campaign_reports(campaign_report_request=campaign_report_request) + api_response = api_instance.generate_async_campaign_report(async_campaign_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->get_campaign_reports: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_campaign_report: %s\n" % e) ``` @@ -98,11 +101,11 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_report_request** | [**CampaignReportRequest**](CampaignReportRequest.md)| | [optional] + **async_campaign_report_request** | [**AsyncCampaignReportRequest**](AsyncCampaignReportRequest.md)| | ### Return type -[**ReportResponse**](ReportResponse.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -124,12 +127,12 @@ 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) -# **get_line_items_reports** -> ReportResponse get_line_items_reports() +# **generate_async_line_items_report** +> AsyncReportResponse generate_async_line_items_report(async_line_item_report_request) -Return a Line Item Report +Return an async Line Item Report ### Example @@ -140,9 +143,9 @@ Return a Line Item Report import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api -from criteo_api_retailmedia_preview.model.line_item_report_request import LineItemReportRequest -from criteo_api_retailmedia_preview.model.report_response import ReportResponse from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_preview.model.async_line_item_report_request import AsyncLineItemReportRequest +from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -171,38 +174,39 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - line_item_report_request = LineItemReportRequest( - data=LineItemReportResource( + async_line_item_report_request = AsyncLineItemReportRequest( + data=AsyncLineItemReportResource( type="type_example", - attributes=LineItemReport( - line_item_ids=[ - "line_item_ids_example", - ], + attributes=AsyncLineItemReport( metrics=[ "impressions", ], dimensions=[ "date", ], - account_id="account_id_example", - report_type="summary", + click_attribution_window="7D", + view_attribution_window="1D", start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), - timezone="UTC", - click_attribution_window="7D", - view_attribution_window="none", + timezone="timezone_example", campaign_type="sponsoredProducts", + sales_channel="offline", + format="json", + report_type="summary", + ids=[ + "ids_example", + ], + id="id_example", ), ), - ) # LineItemReportRequest | (optional) + ) # AsyncLineItemReportRequest | # example passing only required values which don't have defaults set - # and optional values try: - api_response = api_instance.get_line_items_reports(line_item_report_request=line_item_report_request) + api_response = api_instance.generate_async_line_items_report(async_line_item_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->get_line_items_reports: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_line_items_report: %s\n" % e) ``` @@ -210,11 +214,11 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **line_item_report_request** | [**LineItemReportRequest**](LineItemReportRequest.md)| | [optional] + **async_line_item_report_request** | [**AsyncLineItemReportRequest**](AsyncLineItemReportRequest.md)| | ### Return type -[**ReportResponse**](ReportResponse.md) +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -236,12 +240,12 @@ 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) -# **get_report_output** -> int get_report_output(report_id) +# **generate_async_revenue_report** +> AsyncReportResponse generate_async_revenue_report(async_revenue_report_request) -Request the report output +Return an async Revenue Report ### Example @@ -252,6 +256,9 @@ Request the report output import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api +from criteo_api_retailmedia_preview.model.async_revenue_report_request import AsyncRevenueReportRequest +from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -280,14 +287,38 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + async_revenue_report_request = AsyncRevenueReportRequest( + data=AsyncRevenueReportResource( + type="type_example", + attributes=AsyncRevenueReport( + report_type="advertiser", + revenue_type="auction", + ids=[ + "ids_example", + ], + id="id_example", + metrics=[ + "clicks", + ], + dimensions=[ + "date", + ], + format="json", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="timezone_example", + campaign_type="sponsoredProducts", + sales_channel="offline", + ), + ), + ) # AsyncRevenueReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.get_report_output(report_id) + api_response = api_instance.generate_async_revenue_report(async_revenue_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_output: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_async_revenue_report: %s\n" % e) ``` @@ -295,11 +326,11 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | + **async_revenue_report_request** | [**AsyncRevenueReportRequest**](AsyncRevenueReportRequest.md)| | ### Return type -**int** +[**AsyncReportResponse**](AsyncReportResponse.md) ### Authorization @@ -307,27 +338,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The output | * Content-Disposition - Returns a filename for the output
| -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | -**404** | ReportId not found | - | +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | [[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) -# **get_report_status** -> EnvelopeReportStatus get_report_status(report_id) +# **generate_attributed_transactions_report** +> ReportResponse generate_attributed_transactions_report(attributed_transaction_report_request) -Get the status of the report +Return an Attributed Transactions Report ### Example @@ -338,7 +368,9 @@ Get the status of the report import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api -from criteo_api_retailmedia_preview.model.envelope_report_status import EnvelopeReportStatus +from criteo_api_retailmedia_preview.model.report_response import ReportResponse +from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_preview.model.attributed_transaction_report_request import AttributedTransactionReportRequest from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -367,14 +399,40 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - report_id = "ee439121-13e3-4734-9f67-c504dd921a41" # str | report id + attributed_transaction_report_request = AttributedTransactionReportRequest( + data=AttributedTransactionReportResource( + type="type_example", + attributes=AttributedTransactionsReport( + campaign_ids=[ + "campaign_ids_example", + ], + line_item_ids=[ + "line_item_ids_example", + ], + dimensions=[ + "campaignName", + ], + metrics=[ + "attributedUnits", + ], + sold_by="directSold", + campaign_sub_type="auctionAndPreferred", + account_id="account_id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + click_attribution_window="7D", + view_attribution_window="none", + ), + ), + ) # AttributedTransactionReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.get_report_status(report_id) + api_response = api_instance.generate_attributed_transactions_report(attributed_transaction_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->get_report_status: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_attributed_transactions_report: %s\n" % e) ``` @@ -382,11 +440,11 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **report_id** | **str**| report id | + **attributed_transaction_report_request** | [**AttributedTransactionReportRequest**](AttributedTransactionReportRequest.md)| | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**ReportResponse**](ReportResponse.md) ### Authorization @@ -394,27 +452,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Returns the status of the report | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | -**404** | ReportId not found | - | +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | [[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_campaign_report** -> EnvelopeReportStatus request_campaign_report(envelope_report_request) +# **generate_campaign_reports** +> ReportResponse generate_campaign_reports(campaign_report_request) -Request a campaign report +Return a Campaign Report ### Example @@ -425,9 +482,9 @@ Request a campaign report import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api -from criteo_api_retailmedia_preview.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_preview.model.bad_request import BadRequest -from criteo_api_retailmedia_preview.model.envelope_report_request import EnvelopeReportRequest +from criteo_api_retailmedia_preview.model.report_response import ReportResponse +from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_preview.model.campaign_report_request import CampaignReportRequest from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -456,31 +513,38 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - envelope_report_request = EnvelopeReportRequest( - data=ReportRequest( - attributes=ReportRequestAttributes( - click_attribution_window="7D", - end_date=dateutil_parser('1970-01-01').date(), - format="json", - id="id_example", - ids=[ - "ids_example", - ], + campaign_report_request = CampaignReportRequest( + data=CampaignReportResource( + type="type_example", + attributes=CampaignReport( report_type="summary", - start_date=dateutil_parser('1970-01-01').date(), - time_zone="time_zone_example", + campaign_ids=[ + "campaign_ids_example", + ], + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + account_id="account_id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="UTC", + click_attribution_window="7D", view_attribution_window="none", + campaign_type="sponsoredProducts", + sales_channel="offline", ), - type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # CampaignReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.request_campaign_report(envelope_report_request) + api_response = api_instance.generate_campaign_reports(campaign_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->request_campaign_report: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_campaign_reports: %s\n" % e) ``` @@ -488,11 +552,11 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the campaign id to select \"ids\": Array[string], //the campaign ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **campaign_report_request** | [**CampaignReportRequest**](CampaignReportRequest.md)| | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**ReportResponse**](ReportResponse.md) ### Authorization @@ -500,27 +564,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Returns the status of the report | - | -**400** | Bad request | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | [[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_line_item_report** -> EnvelopeReportStatus request_line_item_report(envelope_report_request) +# **generate_line_items_reports** +> ReportResponse generate_line_items_reports(line_item_report_request) -Request a line item report +Return a Line Item Report ### Example @@ -531,9 +594,9 @@ Request a line item report import time import criteo_api_retailmedia_preview from criteo_api_retailmedia_preview.api import analytics_api -from criteo_api_retailmedia_preview.model.envelope_report_status import EnvelopeReportStatus -from criteo_api_retailmedia_preview.model.bad_request import BadRequest -from criteo_api_retailmedia_preview.model.envelope_report_request import EnvelopeReportRequest +from criteo_api_retailmedia_preview.model.line_item_report_request import LineItemReportRequest +from criteo_api_retailmedia_preview.model.report_response import ReportResponse +from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome from pprint import pprint # Defining the host is optional and defaults to https://api.criteo.com # See configuration.py for a list of all supported configuration parameters. @@ -562,31 +625,41 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = analytics_api.AnalyticsApi(api_client) - envelope_report_request = EnvelopeReportRequest( - data=ReportRequest( - attributes=ReportRequestAttributes( - click_attribution_window="7D", - end_date=dateutil_parser('1970-01-01').date(), - format="json", - id="id_example", - ids=[ - "ids_example", - ], + line_item_report_request = LineItemReportRequest( + data=LineItemReportResource( + type="type_example", + attributes=LineItemReport( report_type="summary", - start_date=dateutil_parser('1970-01-01').date(), - time_zone="time_zone_example", - view_attribution_window="none", + line_item_ids=[ + "line_item_ids_example", + ], + campaign_ids=[ + "campaign_ids_example", + ], + metrics=[ + "impressions", + ], + dimensions=[ + "date", + ], + account_id="account_id_example", + start_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + end_date=dateutil_parser('1970-01-01T00:00:00.00Z'), + timezone="timezone_example", + click_attribution_window="7D", + view_attribution_window="1D", + campaign_type="sponsoredProducts", + sales_channel="offline", ), - type="type_example", ), - ) # EnvelopeReportRequest | // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } + ) # LineItemReportRequest | # example passing only required values which don't have defaults set try: - api_response = api_instance.request_line_item_report(envelope_report_request) + api_response = api_instance.generate_line_items_reports(line_item_report_request) pprint(api_response) except criteo_api_retailmedia_preview.ApiException as e: - print("Exception when calling AnalyticsApi->request_line_item_report: %s\n" % e) + print("Exception when calling AnalyticsApi->generate_line_items_reports: %s\n" % e) ``` @@ -594,11 +667,11 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **envelope_report_request** | [**EnvelopeReportRequest**](EnvelopeReportRequest.md)| // Body of the request { \"data\": { \"type\": \"RetailMediaReportRequest\", \"attributes\": { \"reportType\": string, // the name of the report being requested //only one of \"id\" or \"ids\" can be provided for a request \"id\": string, // the line item id to select \"ids: Array[string] // the line item ids to select \"startDate\": string, // YYYY-MM-DD format \"endDate\": string, // YYYY-MM-DD format \"timeZone\": string, // examples: 'Europe/London', 'Asia/Tokyo', 'America/New_York' // both attribution windows must be specified when one is specified \"clickAttributionWindow\": \"7D\", \"14D\", or \"30D\" // optional. defaults to campaign's click attribution window \"viewAttributionWindow\": \"none\", \"1D\", \"7D\", \"14D\", \"30D\" // optional. defaults to campaign's view attribution window \"format\": One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" // output format, defaults to json-compact } } } | + **line_item_report_request** | [**LineItemReportRequest**](LineItemReportRequest.md)| | ### Return type -[**EnvelopeReportStatus**](EnvelopeReportStatus.md) +[**ReportResponse**](ReportResponse.md) ### Authorization @@ -606,18 +679,190 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: application/json, text/json, application/*+json + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Returns the status of the report | - | -**400** | Bad request | - | -**401** | Missing Authorization or token invalid | - | -**403** | Must have access to RetailMedia accounts | - | +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_async_export_output** +> str get_async_export_output(report_id) + + + +Return the output of an async report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import analytics_api +from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + report_id = "reportId_example" # str | The ID of the report to retrieve + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_async_export_output(report_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AnalyticsApi->get_async_export_output: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_id** | **str**| The ID of the report to retrieve | + +### Return type + +**str** + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | + +[[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) + +# **get_async_export_status** +> AsyncReportResponse get_async_export_status(report_id) + + + +Return the status of an async report + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import analytics_api +from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome +from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = analytics_api.AnalyticsApi(api_client) + report_id = "reportId_example" # str | The ID of the report to retrieve + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_async_export_status(report_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling AnalyticsApi->get_async_export_status: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **report_id** | **str**| The ID of the report to retrieve | + +### Return type + +[**AsyncReportResponse**](AsyncReportResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | +**400** | Bad Request | - | +**403** | Forbidden | - | [[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/sdks/retailmedia_preview/docs/AsyncCampaignReport.md b/sdks/retailmedia_preview/docs/AsyncCampaignReport.md new file mode 100644 index 00000000..f6fdd7b4 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncCampaignReport.md @@ -0,0 +1,25 @@ +# AsyncCampaignReport + +Campaign report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | | +**end_date** | **datetime** | | +**metrics** | **[str]** | | [optional] +**dimensions** | **[str]** | | [optional] +**click_attribution_window** | **str** | | [optional] +**view_attribution_window** | **str** | | [optional] +**timezone** | **str** | | [optional] +**campaign_type** | **str** | | [optional] +**sales_channel** | **str** | | [optional] +**format** | **str** | | [optional] +**report_type** | **str** | | [optional] +**ids** | **[str]** | | [optional] +**id** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncCampaignReportRequest.md b/sdks/retailmedia_preview/docs/AsyncCampaignReportRequest.md new file mode 100644 index 00000000..b89dea58 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncCampaignReportRequest.md @@ -0,0 +1,13 @@ +# AsyncCampaignReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncCampaignReportResource**](AsyncCampaignReportResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncCampaignReportResource.md b/sdks/retailmedia_preview/docs/AsyncCampaignReportResource.md new file mode 100644 index 00000000..e3d69dde --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncCampaignReportResource.md @@ -0,0 +1,14 @@ +# AsyncCampaignReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AsyncCampaignReport**](AsyncCampaignReport.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncLineItemReport.md b/sdks/retailmedia_preview/docs/AsyncLineItemReport.md new file mode 100644 index 00000000..291ea7f5 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncLineItemReport.md @@ -0,0 +1,25 @@ +# AsyncLineItemReport + +Line Item report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | | +**end_date** | **datetime** | | +**metrics** | **[str]** | | [optional] +**dimensions** | **[str]** | | [optional] +**click_attribution_window** | **str** | | [optional] +**view_attribution_window** | **str** | | [optional] +**timezone** | **str** | | [optional] +**campaign_type** | **str** | | [optional] +**sales_channel** | **str** | | [optional] +**format** | **str** | | [optional] +**report_type** | **str** | | [optional] +**ids** | **[str]** | | [optional] +**id** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncLineItemReportRequest.md b/sdks/retailmedia_preview/docs/AsyncLineItemReportRequest.md new file mode 100644 index 00000000..3f923cd9 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncLineItemReportRequest.md @@ -0,0 +1,13 @@ +# AsyncLineItemReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncLineItemReportResource**](AsyncLineItemReportResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncLineItemReportResource.md b/sdks/retailmedia_preview/docs/AsyncLineItemReportResource.md new file mode 100644 index 00000000..85c5c324 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncLineItemReportResource.md @@ -0,0 +1,14 @@ +# AsyncLineItemReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AsyncLineItemReport**](AsyncLineItemReport.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncReportResponse.md b/sdks/retailmedia_preview/docs/AsyncReportResponse.md new file mode 100644 index 00000000..4d49d5e3 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncReportResponse.md @@ -0,0 +1,15 @@ +# AsyncReportResponse + +Async Report response format + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**StatusResponseResource**](StatusResponseResource.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncRevenueReport.md b/sdks/retailmedia_preview/docs/AsyncRevenueReport.md new file mode 100644 index 00000000..661f0b28 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncRevenueReport.md @@ -0,0 +1,24 @@ +# AsyncRevenueReport + +Async Revenue report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **datetime** | | +**end_date** | **datetime** | | +**report_type** | **str** | | [optional] +**revenue_type** | **str** | | [optional] +**ids** | **[str]** | | [optional] +**id** | **str** | | [optional] +**metrics** | **[str]** | | [optional] +**dimensions** | **[str]** | | [optional] +**format** | **str** | | [optional] +**timezone** | **str** | | [optional] +**campaign_type** | **str** | | [optional] +**sales_channel** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncRevenueReportRequest.md b/sdks/retailmedia_preview/docs/AsyncRevenueReportRequest.md new file mode 100644 index 00000000..be978426 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncRevenueReportRequest.md @@ -0,0 +1,13 @@ +# AsyncRevenueReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AsyncRevenueReportResource**](AsyncRevenueReportResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AsyncRevenueReportResource.md b/sdks/retailmedia_preview/docs/AsyncRevenueReportResource.md new file mode 100644 index 00000000..7a0313ff --- /dev/null +++ b/sdks/retailmedia_preview/docs/AsyncRevenueReportResource.md @@ -0,0 +1,14 @@ +# AsyncRevenueReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AsyncRevenueReport**](AsyncRevenueReport.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md b/sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md new file mode 100644 index 00000000..edf2ac7a --- /dev/null +++ b/sdks/retailmedia_preview/docs/AttributedTransactionReportRequest.md @@ -0,0 +1,13 @@ +# AttributedTransactionReportRequest + +A top-level object that encapsulates a Criteo API request for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**AttributedTransactionReportResource**](AttributedTransactionReportResource.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AttributedTransactionReportResource.md b/sdks/retailmedia_preview/docs/AttributedTransactionReportResource.md new file mode 100644 index 00000000..9da38616 --- /dev/null +++ b/sdks/retailmedia_preview/docs/AttributedTransactionReportResource.md @@ -0,0 +1,14 @@ +# AttributedTransactionReportResource + +A top-level object that encapsulates a Criteo API response for a single value + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**attributes** | [**AttributedTransactionsReport**](AttributedTransactionsReport.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md b/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md new file mode 100644 index 00000000..77c5b15f --- /dev/null +++ b/sdks/retailmedia_preview/docs/AttributedTransactionsReport.md @@ -0,0 +1,24 @@ +# AttributedTransactionsReport + +Attributed transactions report body request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **str** | Account id to report on | +**start_date** | **datetime** | Start date | +**end_date** | **datetime** | End Date | +**campaign_ids** | **[str]** | Campaign ids to report on | [optional] +**line_item_ids** | **[str]** | Line item ids to report on | [optional] +**dimensions** | **[str]** | List of dimensions to report on | [optional] +**metrics** | **[str]** | List of metrics to report on | [optional] +**sold_by** | **str** | Filter on the type of seller | [optional] +**campaign_sub_type** | **str** | Filter on the campaign sub type | [optional] +**timezone** | **str** | Time zone : see criteo developer portal for supported time zones | [optional] if omitted the server will use the default value of "UTC" +**click_attribution_window** | **str** | Click Attribution Window | [optional] if omitted the server will use the default value of "7D" +**view_attribution_window** | **str** | View Attribution window | [optional] if omitted the server will use the default value of "none" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/AudienceApi.md b/sdks/retailmedia_preview/docs/AudienceApi.md index 2be0b784..6977fb07 100644 --- a/sdks/retailmedia_preview/docs/AudienceApi.md +++ b/sdks/retailmedia_preview/docs/AudienceApi.md @@ -56,7 +56,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_request = CreateRetailMediaAudienceRequest( data=CreateRetailMediaAudienceBody( type="RetailMediaAudience", @@ -64,12 +64,12 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: user_type="viewer", lookback_window="P7D", brand_ids=[ - "brand_ids_example", + 1, ], category_ids=[ - "category_ids_example", + 1, ], - retailer_id="68004146450571264", + retailer_id=6841, name="Test audience", ), ), @@ -88,7 +88,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_request** | [**CreateRetailMediaAudienceRequest**](CreateRetailMediaAudienceRequest.md)| | ### Return type @@ -165,31 +165,31 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | ID of the account to which this audience belongs. + account_id = 68004146450571264 # int | ID of the account to which this audience belongs. create_retail_media_audience_v2_request = CreateRetailMediaAudienceV2Request( data=CreateRetailMediaAudienceV2Data( type="RetailMediaAudience", attributes=CreateRetailMediaAudienceV2Attributes( - retailer_id="68004146450571264", + retailer_id=6041, user_behavior_details=UserBehaviorDetailsV2( inclusive_segment=CreateUserBehaviorSegmentV2( user_action="buy", lookback_window="P7D", category_ids=[ - "category_ids_example", + 1, ], brand_ids=[ - "brand_ids_example", + 1, ], ), exclusive_segment=CreateUserBehaviorSegmentV2( user_action="buy", lookback_window="P7D", category_ids=[ - "category_ids_example", + 1, ], brand_ids=[ - "brand_ids_example", + 1, ], ), ), @@ -211,7 +211,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| ID of the account to which this audience belongs. | + **account_id** | **int**| ID of the account to which this audience belongs. | **create_retail_media_audience_v2_request** | [**CreateRetailMediaAudienceV2Request**](CreateRetailMediaAudienceV2Request.md)| | ### Return type @@ -391,7 +391,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN' with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = audience_api.AudienceApi(api_client) - account_id = "68004146450571264" # str | External account ID which owns audience. + account_id = 68004146450571264 # int | External account ID which owns audience. limit_to_id = [ 1, ] # [int] | Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 (optional) @@ -419,7 +419,7 @@ with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **account_id** | **str**| External account ID which owns audience. | + **account_id** | **int**| External account ID which owns audience. | **limit_to_id** | **[int]**| Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2 | [optional] **page_size** | **int**| Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page | [optional] **page_index** | **int**| Returns the specified page of results given a pageSize; pages are 0-indexed | [optional] diff --git a/sdks/retailmedia_preview/docs/BalanceResponse.md b/sdks/retailmedia_preview/docs/BalanceResponse.md new file mode 100644 index 00000000..cd206467 --- /dev/null +++ b/sdks/retailmedia_preview/docs/BalanceResponse.md @@ -0,0 +1,15 @@ +# BalanceResponse + +Data model for response resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfBalanceResponse**](ResourceOfBalanceResponse.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/BalanceResponsePagedListResponse.md b/sdks/retailmedia_preview/docs/BalanceResponsePagedListResponse.md new file mode 100644 index 00000000..bbdc9788 --- /dev/null +++ b/sdks/retailmedia_preview/docs/BalanceResponsePagedListResponse.md @@ -0,0 +1,16 @@ +# BalanceResponsePagedListResponse + +Data model for a paged list of response resources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**PageMetadata**](PageMetadata.md) | | [optional] +**data** | [**[ResourceOfBalanceResponse]**](ResourceOfBalanceResponse.md) | | [optional] +**warnings** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**errors** | [**[CommonProblem]**](CommonProblem.md) | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/Brand.md b/sdks/retailmedia_preview/docs/Brand.md new file mode 100644 index 00000000..ed85fa22 --- /dev/null +++ b/sdks/retailmedia_preview/docs/Brand.md @@ -0,0 +1,13 @@ +# Brand + +Brand of the product. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the brand. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/CampaignApi.md b/sdks/retailmedia_preview/docs/CampaignApi.md index 3a7b3e3c..189d45fb 100644 --- a/sdks/retailmedia_preview/docs/CampaignApi.md +++ b/sdks/retailmedia_preview/docs/CampaignApi.md @@ -16,17 +16,23 @@ Method | HTTP request | Description [**get_api202301_external_line_item_bid_multipliers_by_line_item_id**](CampaignApi.md#get_api202301_external_line_item_bid_multipliers_by_line_item_id) | **GET** /preview/retail-media/line-items/{line-item-id}/bid-multipliers | [**get_api_v0_external_catalog_output_by_catalog_id**](CampaignApi.md#get_api_v0_external_catalog_output_by_catalog_id) | **GET** /preview/retail-media/catalogs/{catalogId}/output | [**get_api_v0_external_catalog_status_by_catalog_id**](CampaignApi.md#get_api_v0_external_catalog_status_by_catalog_id) | **GET** /preview/retail-media/catalogs/{catalogId}/status | +[**get_api_v1_external_account_balances_by_account_id**](CampaignApi.md#get_api_v1_external_account_balances_by_account_id) | **GET** /preview/retail-media/accounts/{accountId}/balances | [**get_api_v1_external_account_brands_by_account_id**](CampaignApi.md#get_api_v1_external_account_brands_by_account_id) | **GET** /preview/retail-media/accounts/{accountId}/brands | +[**get_api_v1_external_account_by_account_id_and_balance_id**](CampaignApi.md#get_api_v1_external_account_by_account_id_and_balance_id) | **GET** /preview/retail-media/accounts/{accountId}/balances/{balanceId} | [**get_api_v1_external_account_retailers_by_account_id**](CampaignApi.md#get_api_v1_external_account_retailers_by_account_id) | **GET** /preview/retail-media/accounts/{accountId}/retailers | [**get_api_v1_external_accounts**](CampaignApi.md#get_api_v1_external_accounts) | **GET** /preview/retail-media/accounts | [**get_api_v1_external_retailer_brands_by_retailer_id**](CampaignApi.md#get_api_v1_external_retailer_brands_by_retailer_id) | **GET** /preview/retail-media/retailers/{retailerId}/brands | [**get_api_v1_external_retailer_by_retailer_id_seller_by_seller**](CampaignApi.md#get_api_v1_external_retailer_by_retailer_id_seller_by_seller) | **GET** /preview/retail-media/retailers/{retailerId}/sellers/{seller} | [**get_api_v1_external_retailer_category_cpc_rates_by_retailer_id**](CampaignApi.md#get_api_v1_external_retailer_category_cpc_rates_by_retailer_id) | **GET** /preview/retail-media/retailers/{retailer-id}/cpc-rates | [**get_api_v1_external_retailer_placements_by_retailer_id**](CampaignApi.md#get_api_v1_external_retailer_placements_by_retailer_id) | **GET** /preview/retail-media/retailers/{retailer-id}/placements | +[**patch_api_v1_external_account_by_account_id_and_balance_id**](CampaignApi.md#patch_api_v1_external_account_by_account_id_and_balance_id) | **PATCH** /preview/retail-media/accounts/{accountId}/balances/{balanceId} | [**post_api202210_external_account_creatives_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_by_account_id) | **POST** /preview/retail-media/accounts/{account-id}/creatives | [**post_api202210_external_account_creatives_search_by_account_id**](CampaignApi.md#post_api202210_external_account_creatives_search_by_account_id) | **POST** /preview/retail-media/accounts/{account-id}/creatives/search | [**post_api202210_external_line_item_product_buttons_create_by_line_item_id**](CampaignApi.md#post_api202210_external_line_item_product_buttons_create_by_line_item_id) | **POST** /preview/retail-media/line-items/{line-item-id}/product-buttons/create | [**post_api_v0_external_account_catalogs_by_account_id**](CampaignApi.md#post_api_v0_external_account_catalogs_by_account_id) | **POST** /preview/retail-media/accounts/{accountId}/catalogs | +[**post_api_v1_external_account_add_funds_by_account_id_and_balance_id**](CampaignApi.md#post_api_v1_external_account_add_funds_by_account_id_and_balance_id) | **POST** /preview/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds | +[**post_api_v1_external_account_balances_by_account_id**](CampaignApi.md#post_api_v1_external_account_balances_by_account_id) | **POST** /preview/retail-media/accounts/{accountId}/balances | +[**post_api_v1_external_account_change_dates_by_account_id_and_balance_id**](CampaignApi.md#post_api_v1_external_account_change_dates_by_account_id_and_balance_id) | **POST** /preview/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates | [**post_api_v1_external_catalogs_sku_retrieval**](CampaignApi.md#post_api_v1_external_catalogs_sku_retrieval) | **POST** /preview/retail-media/catalogs/sku-retrieval | [**post_api_v1_external_catalogs_sku_search**](CampaignApi.md#post_api_v1_external_catalogs_sku_search) | **POST** /preview/retail-media/catalogs/sku-search | [**post_api_v1_external_catalogs_sku_search_account_id_and_retailer_id**](CampaignApi.md#post_api_v1_external_catalogs_sku_search_account_id_and_retailer_id) | **POST** /preview/retail-media/catalogs/sku-search/accounts/{account-id}/retailers/{retailer-id} | @@ -1081,6 +1087,106 @@ 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) +# **get_api_v1_external_account_balances_by_account_id** +> BalanceResponsePagedListResponse get_api_v1_external_account_balances_by_account_id(account_id) + + + +Get page of balances for the given accountId. + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import campaign_api +from criteo_api_retailmedia_preview.model.balance_response_paged_list_response import BalanceResponsePagedListResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account to get page of balances for + limit_to_id = [ + "limitToId_example", + ] # [str] | The ids that you would like to limit your result set to (optional) + page_index = 0 # int | The 0 indexed page index you would like to receive given the page size (optional) if omitted the server will use the default value of 0 + page_size = 25 # int | The maximum number of items you would like to receive in this request (optional) if omitted the server will use the default value of 25 + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v1_external_account_balances_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_balances_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.get_api_v1_external_account_balances_by_account_id(account_id, limit_to_id=limit_to_id, page_index=page_index, page_size=page_size) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_balances_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account to get page of balances for | + **limit_to_id** | **[str]**| The ids that you would like to limit your result set to | [optional] + **page_index** | **int**| The 0 indexed page index you would like to receive given the page size | [optional] if omitted the server will use the default value of 0 + **page_size** | **int**| The maximum number of items you would like to receive in this request | [optional] if omitted the server will use the default value of 25 + +### Return type + +[**BalanceResponsePagedListResponse**](BalanceResponsePagedListResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + # **get_api_v1_external_account_brands_by_account_id** > JsonApiPageResponseOfBrand get_api_v1_external_account_brands_by_account_id(account_id) @@ -1173,6 +1279,92 @@ Name | Type | Description | Notes - **Accept**: application/json +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **get_api_v1_external_account_by_account_id_and_balance_id** +> BalanceResponse get_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) + + + +Get a balance for the given account id and balance id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import campaign_api +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account of the balance + balance_id = "balanceId_example" # str | The balance id + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.get_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->get_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account of the balance | + **balance_id** | **str**| The balance id | + +### Return type + +[**BalanceResponse**](BalanceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + ### HTTP response details | Status code | Description | Response headers | @@ -1736,6 +1928,116 @@ 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) +# **patch_api_v1_external_account_by_account_id_and_balance_id** +> BalanceResponse patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) + + + +Modify a balance for the given account id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import campaign_api +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from criteo_api_retailmedia_preview.model.update_balance_model_request import UpdateBalanceModelRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account of the balance + balance_id = "balanceId_example" # str | The balance to change the dates + update_balance_model_request = UpdateBalanceModelRequest( + data=ResourceOfUpdateBalanceModel( + attributes=ExternalUpdateBalanceModel( + name="name_example", + po_number="po_number_example", + sales_force_id="sales_force_id_example", + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + memo="memo_example", + ), + id="id_example", + type="type_example", + ), + ) # UpdateBalanceModelRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->patch_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, update_balance_model_request=update_balance_model_request) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->patch_api_v1_external_account_by_account_id_and_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account of the balance | + **balance_id** | **str**| The balance to change the dates | + **update_balance_model_request** | [**UpdateBalanceModelRequest**](UpdateBalanceModelRequest.md)| | [optional] + +### Return type + +[**BalanceResponse**](BalanceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + # **post_api202210_external_account_creatives_by_account_id** > Creative202210Response post_api202210_external_account_creatives_by_account_id(account_id) @@ -2168,6 +2470,330 @@ 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) +# **post_api_v1_external_account_add_funds_by_account_id_and_balance_id** +> BalanceResponse post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id) + + + +Add funds to a balance for the given account id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import campaign_api +from criteo_api_retailmedia_preview.model.add_funds_to_balance_request import AddFundsToBalanceRequest +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account of the balance + balance_id = "balanceId_example" # str | The balance to add funds to + add_funds_to_balance_request = AddFundsToBalanceRequest( + data=ResourceOfAddFundsToBalance( + attributes=ExternalAddFundsToBalance( + delta_amount=3.14, + po_number="po_number_example", + memo="memo_example", + ), + id="id_example", + type="type_example", + ), + ) # AddFundsToBalanceRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_add_funds_by_account_id_and_balance_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id, add_funds_to_balance_request=add_funds_to_balance_request) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_add_funds_by_account_id_and_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account of the balance | + **balance_id** | **str**| The balance to add funds to | + **add_funds_to_balance_request** | [**AddFundsToBalanceRequest**](AddFundsToBalanceRequest.md)| | [optional] + +### Return type + +[**BalanceResponse**](BalanceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **post_api_v1_external_account_balances_by_account_id** +> BalanceResponse post_api_v1_external_account_balances_by_account_id(account_id) + + + +Create balance for the given account id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import campaign_api +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from criteo_api_retailmedia_preview.model.create_balance_request import CreateBalanceRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account to create balances for + create_balance_request = CreateBalanceRequest( + data=ResourceOfCreateBalance( + attributes=ExternalCreateBalance( + name="name_example", + po_number="po_number_example", + deposited=3.14, + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + spend_type="Onsite", + memo="memo_example", + sales_force_id="sales_force_id_example", + ), + id="id_example", + type="type_example", + ), + ) # CreateBalanceRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api_v1_external_account_balances_by_account_id(account_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_balances_by_account_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api_v1_external_account_balances_by_account_id(account_id, create_balance_request=create_balance_request) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_balances_by_account_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account to create balances for | + **create_balance_request** | [**CreateBalanceRequest**](CreateBalanceRequest.md)| | [optional] + +### Return type + +[**BalanceResponse**](BalanceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success | - | + +[[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) + +# **post_api_v1_external_account_change_dates_by_account_id_and_balance_id** +> BalanceResponse post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id) + + + +Change dates of a balance for the given account id + +### Example + +* OAuth Authentication (oauth): +* OAuth Authentication (oauth): + +```python +import time +import criteo_api_retailmedia_preview +from criteo_api_retailmedia_preview.api import campaign_api +from criteo_api_retailmedia_preview.model.balance_response import BalanceResponse +from criteo_api_retailmedia_preview.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest +from pprint import pprint +# Defining the host is optional and defaults to https://api.criteo.com +# See configuration.py for a list of all supported configuration parameters. +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Configure OAuth2 access token for authorization: oauth +configuration = criteo_api_retailmedia_preview.Configuration( + host = "https://api.criteo.com" +) +configuration.access_token = 'YOUR_ACCESS_TOKEN' + +# Enter a context with an instance of the API client +with criteo_api_retailmedia_preview.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = campaign_api.CampaignApi(api_client) + account_id = "accountId_example" # str | The account of the balance + balance_id = "balanceId_example" # str | The balance to change the dates + change_dates_of_balance_request = ChangeDatesOfBalanceRequest( + data=ResourceOfChangeDatesOfBalance( + attributes=ExternalChangeDatesOfBalance( + start_date=dateutil_parser('1970-01-01').date(), + end_date=dateutil_parser('1970-01-01').date(), + memo="memo_example", + ), + id="id_example", + type="type_example", + ), + ) # ChangeDatesOfBalanceRequest | (optional) + + # example passing only required values which don't have defaults set + try: + api_response = api_instance.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_change_dates_by_account_id_and_balance_id: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + api_response = api_instance.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id, change_dates_of_balance_request=change_dates_of_balance_request) + pprint(api_response) + except criteo_api_retailmedia_preview.ApiException as e: + print("Exception when calling CampaignApi->post_api_v1_external_account_change_dates_by_account_id_and_balance_id: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| The account of the balance | + **balance_id** | **str**| The balance to change the dates | + **change_dates_of_balance_request** | [**ChangeDatesOfBalanceRequest**](ChangeDatesOfBalanceRequest.md)| | [optional] + +### Return type + +[**BalanceResponse**](BalanceResponse.md) + +### Authorization + +[oauth](../README.md#oauth), [oauth](../README.md#oauth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + # **post_api_v1_external_catalogs_sku_retrieval** > SkuDataPreviewListResponse post_api_v1_external_catalogs_sku_retrieval() diff --git a/sdks/retailmedia_preview/docs/CampaignReport.md b/sdks/retailmedia_preview/docs/CampaignReport.md index d912eedf..c014cfc9 100644 --- a/sdks/retailmedia_preview/docs/CampaignReport.md +++ b/sdks/retailmedia_preview/docs/CampaignReport.md @@ -8,14 +8,15 @@ Name | Type | Description | Notes **account_id** | **str** | Account id to report on | **start_date** | **datetime** | Start date | **end_date** | **datetime** | End Date | +**report_type** | **str** | | [optional] **campaign_ids** | **[str]** | List of campaign Ids to filter | [optional] **metrics** | **[str]** | List of Metrics to report on | [optional] **dimensions** | **[str]** | List of dimensions to report on | [optional] -**report_type** | **str** | Type of report, if no Dimensions / Metrics are provided fall back to summary reportType | [optional] **timezone** | **str** | Time zone : see criteo developer portal for supported time zones | [optional] if omitted the server will use the default value of "UTC" **click_attribution_window** | **str** | Click Attribution Window | [optional] if omitted the server will use the default value of "7D" **view_attribution_window** | **str** | View Attribution window | [optional] if omitted the server will use the default value of "none" **campaign_type** | **str** | Filter the type of campaign to report on | [optional] +**sales_channel** | **str** | Filter on the channel of sales | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/RetailerCategory.md b/sdks/retailmedia_preview/docs/Category.md similarity index 96% rename from sdks/retailmedia_preview/docs/RetailerCategory.md rename to sdks/retailmedia_preview/docs/Category.md index 5f01e427..e81cc355 100644 --- a/sdks/retailmedia_preview/docs/RetailerCategory.md +++ b/sdks/retailmedia_preview/docs/Category.md @@ -1,4 +1,4 @@ -# RetailerCategory +# Category Retailer Category. diff --git a/sdks/retailmedia_preview/docs/ChangeDatesOfBalanceRequest.md b/sdks/retailmedia_preview/docs/ChangeDatesOfBalanceRequest.md new file mode 100644 index 00000000..373fa90a --- /dev/null +++ b/sdks/retailmedia_preview/docs/ChangeDatesOfBalanceRequest.md @@ -0,0 +1,13 @@ +# ChangeDatesOfBalanceRequest + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfChangeDatesOfBalance**](ResourceOfChangeDatesOfBalance.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/CreateBalanceRequest.md b/sdks/retailmedia_preview/docs/CreateBalanceRequest.md new file mode 100644 index 00000000..cada2d97 --- /dev/null +++ b/sdks/retailmedia_preview/docs/CreateBalanceRequest.md @@ -0,0 +1,13 @@ +# CreateBalanceRequest + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfCreateBalance**](ResourceOfCreateBalance.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md index cc255e6a..26d16ce9 100644 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md +++ b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceAttributes.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_type** | **str** | Type of the user | **lookback_window** | **str** | Length of lookback window | -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | -**brand_ids** | **[str]** | The brands to target | [optional] -**category_ids** | **[str]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Attributes.md b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Attributes.md index fc54b858..5069a7bd 100644 --- a/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Attributes.md +++ b/sdks/retailmedia_preview/docs/CreateRetailMediaAudienceV2Attributes.md @@ -5,7 +5,7 @@ Parameters needed to create an audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | **name** | **str** | Name of the audience. | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_preview/docs/CreateUserBehaviorSegmentV2.md b/sdks/retailmedia_preview/docs/CreateUserBehaviorSegmentV2.md index c9cf462c..19dd22af 100644 --- a/sdks/retailmedia_preview/docs/CreateUserBehaviorSegmentV2.md +++ b/sdks/retailmedia_preview/docs/CreateUserBehaviorSegmentV2.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_action** | **str** | Type of shopper activity used to generate the audience. | **lookback_window** | **str** | Length of lookback window | -**category_ids** | **[str]** | The categories to target | [optional] -**brand_ids** | **[str]** | The brands to target | [optional] +**category_ids** | **[int]** | The categories to target | [optional] +**brand_ids** | **[int]** | The brands to target | [optional] **min_price** | **float** | The min price of targeted skus. | [optional] [readonly] **max_price** | **float** | The max price of targeted skus. | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/sdks/retailmedia_preview/docs/ExternalAddFundsToBalance.md b/sdks/retailmedia_preview/docs/ExternalAddFundsToBalance.md new file mode 100644 index 00000000..8c174fc6 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ExternalAddFundsToBalance.md @@ -0,0 +1,15 @@ +# ExternalAddFundsToBalance + +An object that represents the available options of adding funds to a balance. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delta_amount** | **float** | Amount of billable funds to be added / decreased allotted to the balance. | +**memo** | **str** | Memo | +**po_number** | **str** | Purchase Order number. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md b/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md new file mode 100644 index 00000000..022aff32 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ExternalBalanceResponse.md @@ -0,0 +1,26 @@ +# ExternalBalanceResponse + +A Retail Media Balance used to determine the funds available for any or all campaigns in an account + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the balance. | +**po_number** | **str** | Purchase Order number. | +**memo** | **str** | Memo | +**deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | +**spent** | **float, none_type** | | +**remaining** | **float, none_type** | | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**status** | **str** | | +**created_at** | **datetime** | | +**updated_at** | **datetime** | | +**balance_type** | **str** | Type of the balance | +**sales_force_id** | **str** | SalesForceId the balance is linked to. | +**spend_type** | **str** | Spend Type of the balance. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ExternalChangeDatesOfBalance.md b/sdks/retailmedia_preview/docs/ExternalChangeDatesOfBalance.md new file mode 100644 index 00000000..aea1551a --- /dev/null +++ b/sdks/retailmedia_preview/docs/ExternalChangeDatesOfBalance.md @@ -0,0 +1,15 @@ +# ExternalChangeDatesOfBalance + +An object that represents the available options to modify schedule of a balance. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**memo** | **str** | Memo | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ExternalCreateBalance.md b/sdks/retailmedia_preview/docs/ExternalCreateBalance.md new file mode 100644 index 00000000..33d7a367 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ExternalCreateBalance.md @@ -0,0 +1,20 @@ +# ExternalCreateBalance + +An object that represents the available options to set when creating a Retail Media Balance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the balance. | +**deposited** | **float, none_type** | Amount of billable funds allotted to the balance. | +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | +**spend_type** | **str** | Type of the balance spend. | +**memo** | **str** | Memo | +**sales_force_id** | **str** | SalesForceId the balance is linked to. | +**po_number** | **str** | Purchase Order number. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ExternalUpdateBalanceModel.md b/sdks/retailmedia_preview/docs/ExternalUpdateBalanceModel.md new file mode 100644 index 00000000..7a6c9fe8 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ExternalUpdateBalanceModel.md @@ -0,0 +1,18 @@ +# ExternalUpdateBalanceModel + +An object that represents the available options to set when updating a Retail Media Balance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the balance. | [optional] +**po_number** | **str** | Purchase Order number. | [optional] +**sales_force_id** | **str** | SalesForceId the balance is linked to. | [optional] +**start_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] +**end_date** | **date** | Represents the Date as a year, month, and day in the format YYYY-MM-DD | [optional] +**memo** | **str** | Memo | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/LineItemReport.md b/sdks/retailmedia_preview/docs/LineItemReport.md index 021e16c1..4c5935d3 100644 --- a/sdks/retailmedia_preview/docs/LineItemReport.md +++ b/sdks/retailmedia_preview/docs/LineItemReport.md @@ -5,17 +5,19 @@ Line item report body request ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**account_id** | **str** | Account id to report on | -**start_date** | **datetime** | Start date | -**end_date** | **datetime** | End Date | -**line_item_ids** | **[str]** | Line item ids to report on | [optional] -**metrics** | **[str]** | List of metrics to report on | [optional] +**account_id** | **str** | | +**start_date** | **datetime** | | +**end_date** | **datetime** | | +**report_type** | **str** | | [optional] +**line_item_ids** | **[str]** | | [optional] +**campaign_ids** | **[str]** | | [optional] +**metrics** | **[str]** | | [optional] **dimensions** | **[str]** | List of dimensions to report on | [optional] -**report_type** | **str** | Type of report, if no Dimensions / Metrics are provided fall back to summary reportType | [optional] -**timezone** | **str** | Time zone : see criteo developer portal for supported time zones | [optional] if omitted the server will use the default value of "UTC" -**click_attribution_window** | **str** | Click Attribution Window | [optional] if omitted the server will use the default value of "7D" -**view_attribution_window** | **str** | View Attribution window | [optional] if omitted the server will use the default value of "none" -**campaign_type** | **str** | Filter the type of campaign to report on | [optional] +**timezone** | **str** | | [optional] +**click_attribution_window** | **str** | | [optional] +**view_attribution_window** | **str** | | [optional] +**campaign_type** | **str** | | [optional] +**sales_channel** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/MapString.md b/sdks/retailmedia_preview/docs/MapString.md deleted file mode 100644 index c73c2ae8..00000000 --- a/sdks/retailmedia_preview/docs/MapString.md +++ /dev/null @@ -1,12 +0,0 @@ -# MapString - -(OPTIONAL) A machine-readable structure to reference to the exact location(s) causing the error(s). - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**any string name** | **str** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ReportDataResponseResource.md b/sdks/retailmedia_preview/docs/ReportDataResponseResource.md index 055f72cf..14eb4eff 100644 --- a/sdks/retailmedia_preview/docs/ReportDataResponseResource.md +++ b/sdks/retailmedia_preview/docs/ReportDataResponseResource.md @@ -6,7 +6,7 @@ A top-level object that encapsulates a Criteo API response for a single value Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | [optional] -**attributes** | **[[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]** | Data response format | [optional] +**attributes** | **[[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]]** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ReportRequest.md b/sdks/retailmedia_preview/docs/ReportRequest.md deleted file mode 100644 index 8ad71920..00000000 --- a/sdks/retailmedia_preview/docs/ReportRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# ReportRequest - -Report Request - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**ReportRequestAttributes**](ReportRequestAttributes.md) | | -**type** | **str** | Always \"RetailMediaReportRequest\" | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ReportRequestAttributes.md b/sdks/retailmedia_preview/docs/ReportRequestAttributes.md deleted file mode 100644 index b2e02b85..00000000 --- a/sdks/retailmedia_preview/docs/ReportRequestAttributes.md +++ /dev/null @@ -1,21 +0,0 @@ -# ReportRequestAttributes - -Report Request Attributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**end_date** | **date** | YYYY-MM-DD, must not be before startDate and not more than 100 days later | -**report_type** | **str** | One of \"summary\", \"keyword\", \"pageType\", \"productCategory\", \"product\", or \"attributedTransactions\" | -**start_date** | **date** | YYYY-MM-DD | -**click_attribution_window** | **str** | Defaults to value from campaign or one of \"7D\", \"14D\", or \"30D\". If specified, viewAttributionWindow must also be specified | [optional] -**format** | **str** | One of \"json\" (default),\"json-compact\",\"json-newline\" or \"csv\" | [optional] if omitted the server will use the default value of "json" -**id** | **str** | The id of the campaign or line item. Either 'id' or 'ids' must be specified, but not both | [optional] -**ids** | **[str]** | The ids of the campaigns or line items. Either 'id' or 'ids' must be specified, but not both | [optional] -**time_zone** | **str** | | [optional] -**view_attribution_window** | **str** | Defaults to value from campaign or one of \"none\", \"1D\", \"7D\", \"14D\", or \"30D\". If specified, must be less than clickAttributionWindow, which must also be specified. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ReportStatus.md b/sdks/retailmedia_preview/docs/ReportStatus.md deleted file mode 100644 index 888d4c93..00000000 --- a/sdks/retailmedia_preview/docs/ReportStatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# ReportStatus - -Report Status - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**ReportStatusAttributes**](ReportStatusAttributes.md) | | -**id** | **str** | The reportId | -**type** | **str** | Always \"RetailMediaReportStatus\" | -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ReportStatusAttributes.md b/sdks/retailmedia_preview/docs/ReportStatusAttributes.md deleted file mode 100644 index 87e2e332..00000000 --- a/sdks/retailmedia_preview/docs/ReportStatusAttributes.md +++ /dev/null @@ -1,19 +0,0 @@ -# ReportStatusAttributes - -Report Status Attributes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | One of \"pending\", \"success\", \"failure\", or \"expired\" | -**created_at** | **datetime** | Timestamp when the report started to execute | [optional] -**expires_at** | **datetime** | Timestamp when the cached report will expire | [optional] -**file_size_bytes** | **int** | Total size of file, only populated on success | [optional] -**md5_checksum** | **str** | The MD5 checksum of the content, only populated on success | [optional] -**message** | **str** | Failure message, only populated on failure | [optional] -**row_count** | **int** | Rows of data in report, only populated on success | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ResourceOfAddFundsToBalance.md b/sdks/retailmedia_preview/docs/ResourceOfAddFundsToBalance.md new file mode 100644 index 00000000..2b881eb4 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfAddFundsToBalance.md @@ -0,0 +1,15 @@ +# ResourceOfAddFundsToBalance + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ExternalAddFundsToBalance**](ExternalAddFundsToBalance.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ResourceOfBalanceResponse.md b/sdks/retailmedia_preview/docs/ResourceOfBalanceResponse.md new file mode 100644 index 00000000..78d048b2 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfBalanceResponse.md @@ -0,0 +1,15 @@ +# ResourceOfBalanceResponse + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ExternalBalanceResponse**](ExternalBalanceResponse.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ResourceOfChangeDatesOfBalance.md b/sdks/retailmedia_preview/docs/ResourceOfChangeDatesOfBalance.md new file mode 100644 index 00000000..86aa3d3e --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfChangeDatesOfBalance.md @@ -0,0 +1,15 @@ +# ResourceOfChangeDatesOfBalance + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ExternalChangeDatesOfBalance**](ExternalChangeDatesOfBalance.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ResourceOfCreateBalance.md b/sdks/retailmedia_preview/docs/ResourceOfCreateBalance.md new file mode 100644 index 00000000..428f8782 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfCreateBalance.md @@ -0,0 +1,15 @@ +# ResourceOfCreateBalance + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ExternalCreateBalance**](ExternalCreateBalance.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/ResourceOfUpdateBalanceModel.md b/sdks/retailmedia_preview/docs/ResourceOfUpdateBalanceModel.md new file mode 100644 index 00000000..0e063e94 --- /dev/null +++ b/sdks/retailmedia_preview/docs/ResourceOfUpdateBalanceModel.md @@ -0,0 +1,15 @@ +# ResourceOfUpdateBalanceModel + +Data model for a Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ExternalUpdateBalanceModel**](ExternalUpdateBalanceModel.md) | | [optional] +**id** | **str** | Id of the entity | [optional] +**type** | **str** | Canonical type name of the entity | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/RetailMediaAudienceV2Attributes.md b/sdks/retailmedia_preview/docs/RetailMediaAudienceV2Attributes.md index aeff7153..38c93ec6 100644 --- a/sdks/retailmedia_preview/docs/RetailMediaAudienceV2Attributes.md +++ b/sdks/retailmedia_preview/docs/RetailMediaAudienceV2Attributes.md @@ -5,7 +5,7 @@ Properties of the returned Audience ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**retailer_id** | **str** | ID of the retailer associated with this audience | +**retailer_id** | **int** | ID of the retailer associated with this audience | **name** | **str** | Name of the audience. | **user_behavior_details** | [**UserBehaviorDetailsV2**](UserBehaviorDetailsV2.md) | | [optional] **customer_list_details** | [**CustomerListDetails**](CustomerListDetails.md) | | [optional] diff --git a/sdks/retailmedia_preview/docs/SkuSlimDataPreview.md b/sdks/retailmedia_preview/docs/SkuSlimDataPreview.md index 30b34887..b37b7f3e 100644 --- a/sdks/retailmedia_preview/docs/SkuSlimDataPreview.md +++ b/sdks/retailmedia_preview/docs/SkuSlimDataPreview.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **global_brand_id** | **str** | The global brand id associated to the product. | **global_brand_name** | **str** | The name of the global brand. | -**price** | **float** | The price of the product on the retailer site. | +**price** | **float, none_type** | The price of the product on the retailer site. Can be omitted in certain circumstances | **is_in_stock** | **bool** | An indication of if the retailer currently has the product in stock. | **updated_at** | **datetime** | The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string. | **name** | **str** | A short product name. | [optional] diff --git a/sdks/retailmedia_preview/docs/SkuSlimDataV2.md b/sdks/retailmedia_preview/docs/SkuSlimDataV2.md index 79a5c1a7..8eface95 100644 --- a/sdks/retailmedia_preview/docs/SkuSlimDataV2.md +++ b/sdks/retailmedia_preview/docs/SkuSlimDataV2.md @@ -5,15 +5,13 @@ Slim version of Sku Data model ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**price** | **float** | The price of the product on the retailer site. | +**price** | **float, none_type** | The price of the product on the retailer site. Can be omitted in certain circumstances | **is_in_stock** | **bool** | An indication of if the retailer currently has the product in stock. | **updated_at** | **datetime** | The last time this product was updated in the Retail Media Catalog. Represented as a UTC ISO8601 string. | **name** | **str** | A short product name. | [optional] **description** | **str** | A short description of the product. | [optional] -**retailer_category** | [**RetailerCategory**](RetailerCategory.md) | | [optional] -**global_category_id** | **str** | The global category Id. | [optional] -**global_brand** | [**GlobalBrand**](GlobalBrand.md) | | [optional] -**retailer_brand** | [**RetailerBrand**](RetailerBrand.md) | | [optional] +**category** | [**Category**](Category.md) | | [optional] +**brand** | [**Brand**](Brand.md) | | [optional] **gtin** | **str** | A GTIN identifier for the product if available. Covers variations such as EANs and UPCs. | [optional] **mpn** | **str** | The MPN for the product if available. | [optional] **image_url** | **str** | An http image resource provided by the retailer. | [optional] diff --git a/sdks/retailmedia_preview/docs/StatusResponse.md b/sdks/retailmedia_preview/docs/StatusResponse.md new file mode 100644 index 00000000..25580c23 --- /dev/null +++ b/sdks/retailmedia_preview/docs/StatusResponse.md @@ -0,0 +1,20 @@ +# StatusResponse + +Status of an async report request + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] +**row_count** | **int** | | [optional] +**file_size_bytes** | **int** | | [optional] +**md5_check_sum** | **str** | | [optional] +**created_at** | **str** | | [optional] +**expires_at** | **str** | | [optional] +**message** | **str** | | [optional] +**id** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/StatusResponseResource.md b/sdks/retailmedia_preview/docs/StatusResponseResource.md new file mode 100644 index 00000000..3e1617db --- /dev/null +++ b/sdks/retailmedia_preview/docs/StatusResponseResource.md @@ -0,0 +1,15 @@ +# StatusResponseResource + +A class that represents a domain entity exposed by an API + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**StatusResponse**](StatusResponse.md) | | [optional] +**id** | **str** | | [optional] +**type** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/docs/UpdateBalanceModelRequest.md b/sdks/retailmedia_preview/docs/UpdateBalanceModelRequest.md new file mode 100644 index 00000000..827b24f9 --- /dev/null +++ b/sdks/retailmedia_preview/docs/UpdateBalanceModelRequest.md @@ -0,0 +1,13 @@ +# UpdateBalanceModelRequest + +Data model for an input resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ResourceOfUpdateBalanceModel**](ResourceOfUpdateBalanceModel.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/sdks/retailmedia_preview/setup.py b/sdks/retailmedia_preview/setup.py index 01130760..2deae4c6 100644 --- a/sdks/retailmedia_preview/setup.py +++ b/sdks/retailmedia_preview/setup.py @@ -3,7 +3,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "criteo-api-retailmedia-sdk" -VERSION = "0.0.230601" +VERSION = "0.0.230726" # To install the library, run the following # # python setup.py install @@ -24,9 +24,9 @@ ```sh -pip install criteo-api-retailmedia-sdk==0.0.230601 +pip install criteo-api-retailmedia-sdk==0.0.230726 ``` -(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.230601`) +(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.230726`) Then import the package: ```python